Commit | Line | Data |
---|---|---|
68a576e1 BI |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69 for mediagoblin 0.4.0.dev. | |
4 | # | |
5 | # Report bugs to <cwebber@gnu.org>. | |
6 | # | |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | as_myself= | |
93 | case $0 in #(( | |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | # Use a proper internal environment variable to ensure we don't fall | |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
162 | if test "x$CONFIG_SHELL" = x; then | |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
201 | if (eval "$as_required") 2>/dev/null; then : | |
202 | as_have_required=yes | |
203 | else | |
204 | as_have_required=no | |
205 | fi | |
206 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
207 | ||
208 | else | |
209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
210 | as_found=false | |
211 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212 | do | |
213 | IFS=$as_save_IFS | |
214 | test -z "$as_dir" && as_dir=. | |
215 | as_found=: | |
216 | case $as_dir in #( | |
217 | /*) | |
218 | for as_base in sh bash ksh sh5; do | |
219 | # Try only shells that exist, to save several forks. | |
220 | as_shell=$as_dir/$as_base | |
221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
222 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
223 | CONFIG_SHELL=$as_shell as_have_required=yes | |
224 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
225 | break 2 | |
226 | fi | |
227 | fi | |
228 | done;; | |
229 | esac | |
230 | as_found=false | |
231 | done | |
232 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
234 | CONFIG_SHELL=$SHELL as_have_required=yes | |
235 | fi; } | |
236 | IFS=$as_save_IFS | |
237 | ||
238 | ||
239 | if test "x$CONFIG_SHELL" != x; then : | |
240 | export CONFIG_SHELL | |
241 | # We cannot yet assume a decent shell, so we have to provide a | |
242 | # neutralization value for shells without unset; and this also | |
243 | # works around shells that cannot unset nonexistent variables. | |
244 | # Preserve -v and -x to the replacement shell. | |
245 | BASH_ENV=/dev/null | |
246 | ENV=/dev/null | |
247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
248 | case $- in # (((( | |
249 | *v*x* | *x*v* ) as_opts=-vx ;; | |
250 | *v* ) as_opts=-v ;; | |
251 | *x* ) as_opts=-x ;; | |
252 | * ) as_opts= ;; | |
253 | esac | |
254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
255 | # Admittedly, this is quite paranoid, since all the known shells bail | |
256 | # out after a failed `exec'. | |
257 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
258 | exit 255 | |
259 | fi | |
260 | ||
261 | if test x$as_have_required = xno; then : | |
262 | $as_echo "$0: This script requires a shell more modern than all" | |
263 | $as_echo "$0: the shells that I found on your system." | |
264 | if test x${ZSH_VERSION+set} = xset ; then | |
265 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
266 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
267 | else | |
268 | $as_echo "$0: Please tell bug-autoconf@gnu.org and cwebber@gnu.org | |
269 | $0: about your system, including any error possibly output | |
270 | $0: before this message. Then install a modern shell, or | |
271 | $0: manually run the script under such a shell if you do | |
272 | $0: have one." | |
273 | fi | |
274 | exit 1 | |
275 | fi | |
276 | fi | |
277 | fi | |
278 | SHELL=${CONFIG_SHELL-/bin/sh} | |
279 | export SHELL | |
280 | # Unset more variables known to interfere with behavior of common tools. | |
281 | CLICOLOR_FORCE= GREP_OPTIONS= | |
282 | unset CLICOLOR_FORCE GREP_OPTIONS | |
283 | ||
284 | ## --------------------- ## | |
285 | ## M4sh Shell Functions. ## | |
286 | ## --------------------- ## | |
287 | # as_fn_unset VAR | |
288 | # --------------- | |
289 | # Portably unset VAR. | |
290 | as_fn_unset () | |
291 | { | |
292 | { eval $1=; unset $1;} | |
293 | } | |
294 | as_unset=as_fn_unset | |
295 | ||
296 | # as_fn_set_status STATUS | |
297 | # ----------------------- | |
298 | # Set $? to STATUS, without forking. | |
299 | as_fn_set_status () | |
300 | { | |
301 | return $1 | |
302 | } # as_fn_set_status | |
303 | ||
304 | # as_fn_exit STATUS | |
305 | # ----------------- | |
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | as_fn_exit () | |
308 | { | |
309 | set +e | |
310 | as_fn_set_status $1 | |
311 | exit $1 | |
312 | } # as_fn_exit | |
313 | ||
314 | # as_fn_mkdir_p | |
315 | # ------------- | |
316 | # Create "$as_dir" as a directory, including parents if necessary. | |
317 | as_fn_mkdir_p () | |
318 | { | |
319 | ||
320 | case $as_dir in #( | |
321 | -*) as_dir=./$as_dir;; | |
322 | esac | |
323 | test -d "$as_dir" || eval $as_mkdir_p || { | |
324 | as_dirs= | |
325 | while :; do | |
326 | case $as_dir in #( | |
327 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
328 | *) as_qdir=$as_dir;; | |
329 | esac | |
330 | as_dirs="'$as_qdir' $as_dirs" | |
331 | as_dir=`$as_dirname -- "$as_dir" || | |
332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
333 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
334 | X"$as_dir" : 'X\(//\)$' \| \ | |
335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
336 | $as_echo X"$as_dir" | | |
337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
338 | s//\1/ | |
339 | q | |
340 | } | |
341 | /^X\(\/\/\)[^/].*/{ | |
342 | s//\1/ | |
343 | q | |
344 | } | |
345 | /^X\(\/\/\)$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\).*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | s/.*/./; q'` | |
354 | test -d "$as_dir" && break | |
355 | done | |
356 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
357 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
358 | ||
359 | ||
360 | } # as_fn_mkdir_p | |
361 | ||
362 | # as_fn_executable_p FILE | |
363 | # ----------------------- | |
364 | # Test if FILE is an executable regular file. | |
365 | as_fn_executable_p () | |
366 | { | |
367 | test -f "$1" && test -x "$1" | |
368 | } # as_fn_executable_p | |
369 | # as_fn_append VAR VALUE | |
370 | # ---------------------- | |
371 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
372 | # advantage of any shell optimizations that allow amortized linear growth over | |
373 | # repeated appends, instead of the typical quadratic growth present in naive | |
374 | # implementations. | |
375 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
376 | eval 'as_fn_append () | |
377 | { | |
378 | eval $1+=\$2 | |
379 | }' | |
380 | else | |
381 | as_fn_append () | |
382 | { | |
383 | eval $1=\$$1\$2 | |
384 | } | |
385 | fi # as_fn_append | |
386 | ||
387 | # as_fn_arith ARG... | |
388 | # ------------------ | |
389 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
390 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
391 | # must be portable across $(()) and expr. | |
392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
393 | eval 'as_fn_arith () | |
394 | { | |
395 | as_val=$(( $* )) | |
396 | }' | |
397 | else | |
398 | as_fn_arith () | |
399 | { | |
400 | as_val=`expr "$@" || test $? -eq 1` | |
401 | } | |
402 | fi # as_fn_arith | |
403 | ||
404 | ||
405 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
406 | # ---------------------------------------- | |
407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
409 | # script with STATUS, using 1 if that was 0. | |
410 | as_fn_error () | |
411 | { | |
412 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
413 | if test "$4"; then | |
414 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
416 | fi | |
417 | $as_echo "$as_me: error: $2" >&2 | |
418 | as_fn_exit $as_status | |
419 | } # as_fn_error | |
420 | ||
421 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
423 | as_expr=expr | |
424 | else | |
425 | as_expr=false | |
426 | fi | |
427 | ||
428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
429 | as_basename=basename | |
430 | else | |
431 | as_basename=false | |
432 | fi | |
433 | ||
434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
435 | as_dirname=dirname | |
436 | else | |
437 | as_dirname=false | |
438 | fi | |
439 | ||
440 | as_me=`$as_basename -- "$0" || | |
441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
442 | X"$0" : 'X\(//\)$' \| \ | |
443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
444 | $as_echo X/"$0" | | |
445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
446 | s//\1/ | |
447 | q | |
448 | } | |
449 | /^X\/\(\/\/\)$/{ | |
450 | s//\1/ | |
451 | q | |
452 | } | |
453 | /^X\/\(\/\).*/{ | |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | s/.*/./; q'` | |
458 | ||
459 | # Avoid depending upon Character Ranges. | |
460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
463 | as_cr_digits='0123456789' | |
464 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
465 | ||
466 | ||
467 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
468 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
469 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
470 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
471 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
472 | sed -n ' | |
473 | p | |
474 | /[$]LINENO/= | |
475 | ' <$as_myself | | |
476 | sed ' | |
477 | s/[$]LINENO.*/&-/ | |
478 | t lineno | |
479 | b | |
480 | :lineno | |
481 | N | |
482 | :loop | |
483 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
484 | t loop | |
485 | s/-\n.*// | |
486 | ' >$as_me.lineno && | |
487 | chmod +x "$as_me.lineno" || | |
488 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
489 | ||
490 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
491 | # already done that, so ensure we don't try to do so again and fall | |
492 | # in an infinite loop. This has already happened in practice. | |
493 | _as_can_reexec=no; export _as_can_reexec | |
494 | # Don't try to exec as it changes $[0], causing all sort of problems | |
495 | # (the dirname of $[0] is not the place where we might find the | |
496 | # original and so on. Autoconf is especially sensitive to this). | |
497 | . "./$as_me.lineno" | |
498 | # Exit status is that of the last command. | |
499 | exit | |
500 | } | |
501 | ||
502 | ECHO_C= ECHO_N= ECHO_T= | |
503 | case `echo -n x` in #((((( | |
504 | -n*) | |
505 | case `echo 'xy\c'` in | |
506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
507 | xy) ECHO_C='\c';; | |
508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
509 | ECHO_T=' ';; | |
510 | esac;; | |
511 | *) | |
512 | ECHO_N='-n';; | |
513 | esac | |
514 | ||
515 | rm -f conf$$ conf$$.exe conf$$.file | |
516 | if test -d conf$$.dir; then | |
517 | rm -f conf$$.dir/conf$$.file | |
518 | else | |
519 | rm -f conf$$.dir | |
520 | mkdir conf$$.dir 2>/dev/null | |
521 | fi | |
522 | if (echo >conf$$.file) 2>/dev/null; then | |
523 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
524 | as_ln_s='ln -s' | |
525 | # ... but there are two gotchas: | |
526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
528 | # In both cases, we have to default to `cp -pR'. | |
529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
530 | as_ln_s='cp -pR' | |
531 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
532 | as_ln_s=ln | |
533 | else | |
534 | as_ln_s='cp -pR' | |
535 | fi | |
536 | else | |
537 | as_ln_s='cp -pR' | |
538 | fi | |
539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
540 | rmdir conf$$.dir 2>/dev/null | |
541 | ||
542 | if mkdir -p . 2>/dev/null; then | |
543 | as_mkdir_p='mkdir -p "$as_dir"' | |
544 | else | |
545 | test -d ./-p && rmdir ./-p | |
546 | as_mkdir_p=false | |
547 | fi | |
548 | ||
549 | as_test_x='test -x' | |
550 | as_executable_p=as_fn_executable_p | |
551 | ||
552 | # Sed expression to map a string onto a valid CPP name. | |
553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
554 | ||
555 | # Sed expression to map a string onto a valid variable name. | |
556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
557 | ||
558 | ||
559 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
560 | exec 6>&1 | |
561 | ||
562 | # Name of the host. | |
563 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
564 | # so uname gets run too. | |
565 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
566 | ||
567 | # | |
568 | # Initializations. | |
569 | # | |
570 | ac_default_prefix=/usr/local | |
571 | ac_clean_files= | |
572 | ac_config_libobj_dir=. | |
573 | LIBOBJS= | |
574 | cross_compiling=no | |
575 | subdirs= | |
576 | MFLAGS= | |
577 | MAKEFLAGS= | |
578 | ||
579 | # Identity of this package. | |
580 | PACKAGE_NAME='mediagoblin' | |
581 | PACKAGE_TARNAME='mediagoblin' | |
582 | PACKAGE_VERSION='0.4.0.dev' | |
583 | PACKAGE_STRING='mediagoblin 0.4.0.dev' | |
584 | PACKAGE_BUGREPORT='cwebber@gnu.org' | |
585 | PACKAGE_URL='' | |
586 | ||
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | pkgpyexecdir | |
590 | pyexecdir | |
591 | PYTHON_EXEC_PREFIX | |
592 | pkgpythondir | |
593 | pythondir | |
594 | PYTHON_PREFIX | |
595 | POSTGRES | |
596 | SQLITE | |
597 | INSTALL_DATA | |
598 | INSTALL_SCRIPT | |
599 | INSTALL_PROGRAM | |
600 | MKDIR_P | |
601 | SPHINXBUILD | |
602 | VIRTUALENV_FLAGS | |
603 | VIRTUALENV | |
604 | PYTHON_CONFIG | |
605 | PYTHON | |
606 | target_alias | |
607 | host_alias | |
608 | build_alias | |
609 | LIBS | |
610 | ECHO_T | |
611 | ECHO_N | |
612 | ECHO_C | |
613 | DEFS | |
614 | mandir | |
615 | localedir | |
616 | libdir | |
617 | psdir | |
618 | pdfdir | |
619 | dvidir | |
620 | htmldir | |
621 | infodir | |
622 | docdir | |
623 | oldincludedir | |
624 | includedir | |
625 | localstatedir | |
626 | sharedstatedir | |
627 | sysconfdir | |
628 | datadir | |
629 | datarootdir | |
630 | libexecdir | |
631 | sbindir | |
632 | bindir | |
633 | program_transform_name | |
634 | prefix | |
635 | exec_prefix | |
636 | PACKAGE_URL | |
637 | PACKAGE_BUGREPORT | |
638 | PACKAGE_STRING | |
639 | PACKAGE_VERSION | |
640 | PACKAGE_TARNAME | |
641 | PACKAGE_NAME | |
642 | PATH_SEPARATOR | |
643 | SHELL' | |
644 | ac_subst_files='' | |
645 | ac_user_opts=' | |
646 | enable_option_checking | |
647 | with_virtualenv | |
648 | ' | |
649 | ac_precious_vars='build_alias | |
650 | host_alias | |
651 | target_alias | |
652 | PYTHON | |
653 | PYTHON_CONFIG | |
654 | VIRTUALENV_FLAGS' | |
655 | ||
656 | ||
657 | # Initialize some variables set by options. | |
658 | ac_init_help= | |
659 | ac_init_version=false | |
660 | ac_unrecognized_opts= | |
661 | ac_unrecognized_sep= | |
662 | # The variables have the same names as the options, with | |
663 | # dashes changed to underlines. | |
664 | cache_file=/dev/null | |
665 | exec_prefix=NONE | |
666 | no_create= | |
667 | no_recursion= | |
668 | prefix=NONE | |
669 | program_prefix=NONE | |
670 | program_suffix=NONE | |
671 | program_transform_name=s,x,x, | |
672 | silent= | |
673 | site= | |
674 | srcdir= | |
675 | verbose= | |
676 | x_includes=NONE | |
677 | x_libraries=NONE | |
678 | ||
679 | # Installation directory options. | |
680 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
681 | # and all the variables that are supposed to be based on exec_prefix | |
682 | # by default will actually change. | |
683 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
684 | # (The list follows the same order as the GNU Coding Standards.) | |
685 | bindir='${exec_prefix}/bin' | |
686 | sbindir='${exec_prefix}/sbin' | |
687 | libexecdir='${exec_prefix}/libexec' | |
688 | datarootdir='${prefix}/share' | |
689 | datadir='${datarootdir}' | |
690 | sysconfdir='${prefix}/etc' | |
691 | sharedstatedir='${prefix}/com' | |
692 | localstatedir='${prefix}/var' | |
693 | includedir='${prefix}/include' | |
694 | oldincludedir='/usr/include' | |
695 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
696 | infodir='${datarootdir}/info' | |
697 | htmldir='${docdir}' | |
698 | dvidir='${docdir}' | |
699 | pdfdir='${docdir}' | |
700 | psdir='${docdir}' | |
701 | libdir='${exec_prefix}/lib' | |
702 | localedir='${datarootdir}/locale' | |
703 | mandir='${datarootdir}/man' | |
704 | ||
705 | ac_prev= | |
706 | ac_dashdash= | |
707 | for ac_option | |
708 | do | |
709 | # If the previous option needs an argument, assign it. | |
710 | if test -n "$ac_prev"; then | |
711 | eval $ac_prev=\$ac_option | |
712 | ac_prev= | |
713 | continue | |
714 | fi | |
715 | ||
716 | case $ac_option in | |
717 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
718 | *=) ac_optarg= ;; | |
719 | *) ac_optarg=yes ;; | |
720 | esac | |
721 | ||
722 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
723 | ||
724 | case $ac_dashdash$ac_option in | |
725 | --) | |
726 | ac_dashdash=yes ;; | |
727 | ||
728 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
729 | ac_prev=bindir ;; | |
730 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
731 | bindir=$ac_optarg ;; | |
732 | ||
733 | -build | --build | --buil | --bui | --bu) | |
734 | ac_prev=build_alias ;; | |
735 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
736 | build_alias=$ac_optarg ;; | |
737 | ||
738 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
739 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
740 | ac_prev=cache_file ;; | |
741 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
742 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
743 | cache_file=$ac_optarg ;; | |
744 | ||
745 | --config-cache | -C) | |
746 | cache_file=config.cache ;; | |
747 | ||
748 | -datadir | --datadir | --datadi | --datad) | |
749 | ac_prev=datadir ;; | |
750 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
751 | datadir=$ac_optarg ;; | |
752 | ||
753 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
754 | | --dataroo | --dataro | --datar) | |
755 | ac_prev=datarootdir ;; | |
756 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
757 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
758 | datarootdir=$ac_optarg ;; | |
759 | ||
760 | -disable-* | --disable-*) | |
761 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
762 | # Reject names that are not valid shell variable names. | |
763 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
764 | as_fn_error $? "invalid feature name: $ac_useropt" | |
765 | ac_useropt_orig=$ac_useropt | |
766 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
767 | case $ac_user_opts in | |
768 | *" | |
769 | "enable_$ac_useropt" | |
770 | "*) ;; | |
771 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
772 | ac_unrecognized_sep=', ';; | |
773 | esac | |
774 | eval enable_$ac_useropt=no ;; | |
775 | ||
776 | -docdir | --docdir | --docdi | --doc | --do) | |
777 | ac_prev=docdir ;; | |
778 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
779 | docdir=$ac_optarg ;; | |
780 | ||
781 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
782 | ac_prev=dvidir ;; | |
783 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
784 | dvidir=$ac_optarg ;; | |
785 | ||
786 | -enable-* | --enable-*) | |
787 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
788 | # Reject names that are not valid shell variable names. | |
789 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
790 | as_fn_error $? "invalid feature name: $ac_useropt" | |
791 | ac_useropt_orig=$ac_useropt | |
792 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
793 | case $ac_user_opts in | |
794 | *" | |
795 | "enable_$ac_useropt" | |
796 | "*) ;; | |
797 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
798 | ac_unrecognized_sep=', ';; | |
799 | esac | |
800 | eval enable_$ac_useropt=\$ac_optarg ;; | |
801 | ||
802 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
803 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
804 | | --exec | --exe | --ex) | |
805 | ac_prev=exec_prefix ;; | |
806 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
807 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
808 | | --exec=* | --exe=* | --ex=*) | |
809 | exec_prefix=$ac_optarg ;; | |
810 | ||
811 | -gas | --gas | --ga | --g) | |
812 | # Obsolete; use --with-gas. | |
813 | with_gas=yes ;; | |
814 | ||
815 | -help | --help | --hel | --he | -h) | |
816 | ac_init_help=long ;; | |
817 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
818 | ac_init_help=recursive ;; | |
819 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
820 | ac_init_help=short ;; | |
821 | ||
822 | -host | --host | --hos | --ho) | |
823 | ac_prev=host_alias ;; | |
824 | -host=* | --host=* | --hos=* | --ho=*) | |
825 | host_alias=$ac_optarg ;; | |
826 | ||
827 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
828 | ac_prev=htmldir ;; | |
829 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
830 | | --ht=*) | |
831 | htmldir=$ac_optarg ;; | |
832 | ||
833 | -includedir | --includedir | --includedi | --included | --include \ | |
834 | | --includ | --inclu | --incl | --inc) | |
835 | ac_prev=includedir ;; | |
836 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
837 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
838 | includedir=$ac_optarg ;; | |
839 | ||
840 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
841 | ac_prev=infodir ;; | |
842 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
843 | infodir=$ac_optarg ;; | |
844 | ||
845 | -libdir | --libdir | --libdi | --libd) | |
846 | ac_prev=libdir ;; | |
847 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
848 | libdir=$ac_optarg ;; | |
849 | ||
850 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
851 | | --libexe | --libex | --libe) | |
852 | ac_prev=libexecdir ;; | |
853 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
854 | | --libexe=* | --libex=* | --libe=*) | |
855 | libexecdir=$ac_optarg ;; | |
856 | ||
857 | -localedir | --localedir | --localedi | --localed | --locale) | |
858 | ac_prev=localedir ;; | |
859 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
860 | localedir=$ac_optarg ;; | |
861 | ||
862 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
863 | | --localstate | --localstat | --localsta | --localst | --locals) | |
864 | ac_prev=localstatedir ;; | |
865 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
866 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
867 | localstatedir=$ac_optarg ;; | |
868 | ||
869 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
870 | ac_prev=mandir ;; | |
871 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
872 | mandir=$ac_optarg ;; | |
873 | ||
874 | -nfp | --nfp | --nf) | |
875 | # Obsolete; use --without-fp. | |
876 | with_fp=no ;; | |
877 | ||
878 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
879 | | --no-cr | --no-c | -n) | |
880 | no_create=yes ;; | |
881 | ||
882 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
883 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
884 | no_recursion=yes ;; | |
885 | ||
886 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
887 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
888 | | --oldin | --oldi | --old | --ol | --o) | |
889 | ac_prev=oldincludedir ;; | |
890 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
891 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
892 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
893 | oldincludedir=$ac_optarg ;; | |
894 | ||
895 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
896 | ac_prev=prefix ;; | |
897 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
898 | prefix=$ac_optarg ;; | |
899 | ||
900 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
901 | | --program-pre | --program-pr | --program-p) | |
902 | ac_prev=program_prefix ;; | |
903 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
904 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
905 | program_prefix=$ac_optarg ;; | |
906 | ||
907 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
908 | | --program-suf | --program-su | --program-s) | |
909 | ac_prev=program_suffix ;; | |
910 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
911 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
912 | program_suffix=$ac_optarg ;; | |
913 | ||
914 | -program-transform-name | --program-transform-name \ | |
915 | | --program-transform-nam | --program-transform-na \ | |
916 | | --program-transform-n | --program-transform- \ | |
917 | | --program-transform | --program-transfor \ | |
918 | | --program-transfo | --program-transf \ | |
919 | | --program-trans | --program-tran \ | |
920 | | --progr-tra | --program-tr | --program-t) | |
921 | ac_prev=program_transform_name ;; | |
922 | -program-transform-name=* | --program-transform-name=* \ | |
923 | | --program-transform-nam=* | --program-transform-na=* \ | |
924 | | --program-transform-n=* | --program-transform-=* \ | |
925 | | --program-transform=* | --program-transfor=* \ | |
926 | | --program-transfo=* | --program-transf=* \ | |
927 | | --program-trans=* | --program-tran=* \ | |
928 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
929 | program_transform_name=$ac_optarg ;; | |
930 | ||
931 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
932 | ac_prev=pdfdir ;; | |
933 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
934 | pdfdir=$ac_optarg ;; | |
935 | ||
936 | -psdir | --psdir | --psdi | --psd | --ps) | |
937 | ac_prev=psdir ;; | |
938 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
939 | psdir=$ac_optarg ;; | |
940 | ||
941 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
942 | | -silent | --silent | --silen | --sile | --sil) | |
943 | silent=yes ;; | |
944 | ||
945 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
946 | ac_prev=sbindir ;; | |
947 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
948 | | --sbi=* | --sb=*) | |
949 | sbindir=$ac_optarg ;; | |
950 | ||
951 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
952 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
953 | | --sharedst | --shareds | --shared | --share | --shar \ | |
954 | | --sha | --sh) | |
955 | ac_prev=sharedstatedir ;; | |
956 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
957 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
958 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
959 | | --sha=* | --sh=*) | |
960 | sharedstatedir=$ac_optarg ;; | |
961 | ||
962 | -site | --site | --sit) | |
963 | ac_prev=site ;; | |
964 | -site=* | --site=* | --sit=*) | |
965 | site=$ac_optarg ;; | |
966 | ||
967 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
968 | ac_prev=srcdir ;; | |
969 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
970 | srcdir=$ac_optarg ;; | |
971 | ||
972 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
973 | | --syscon | --sysco | --sysc | --sys | --sy) | |
974 | ac_prev=sysconfdir ;; | |
975 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
976 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
977 | sysconfdir=$ac_optarg ;; | |
978 | ||
979 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
980 | ac_prev=target_alias ;; | |
981 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
982 | target_alias=$ac_optarg ;; | |
983 | ||
984 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
985 | verbose=yes ;; | |
986 | ||
987 | -version | --version | --versio | --versi | --vers | -V) | |
988 | ac_init_version=: ;; | |
989 | ||
990 | -with-* | --with-*) | |
991 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
992 | # Reject names that are not valid shell variable names. | |
993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
994 | as_fn_error $? "invalid package name: $ac_useropt" | |
995 | ac_useropt_orig=$ac_useropt | |
996 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
997 | case $ac_user_opts in | |
998 | *" | |
999 | "with_$ac_useropt" | |
1000 | "*) ;; | |
1001 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1002 | ac_unrecognized_sep=', ';; | |
1003 | esac | |
1004 | eval with_$ac_useropt=\$ac_optarg ;; | |
1005 | ||
1006 | -without-* | --without-*) | |
1007 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1008 | # Reject names that are not valid shell variable names. | |
1009 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1010 | as_fn_error $? "invalid package name: $ac_useropt" | |
1011 | ac_useropt_orig=$ac_useropt | |
1012 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1013 | case $ac_user_opts in | |
1014 | *" | |
1015 | "with_$ac_useropt" | |
1016 | "*) ;; | |
1017 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1018 | ac_unrecognized_sep=', ';; | |
1019 | esac | |
1020 | eval with_$ac_useropt=no ;; | |
1021 | ||
1022 | --x) | |
1023 | # Obsolete; use --with-x. | |
1024 | with_x=yes ;; | |
1025 | ||
1026 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1027 | | --x-incl | --x-inc | --x-in | --x-i) | |
1028 | ac_prev=x_includes ;; | |
1029 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1030 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1031 | x_includes=$ac_optarg ;; | |
1032 | ||
1033 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1034 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1035 | ac_prev=x_libraries ;; | |
1036 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1037 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1038 | x_libraries=$ac_optarg ;; | |
1039 | ||
1040 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1041 | Try \`$0 --help' for more information" | |
1042 | ;; | |
1043 | ||
1044 | *=*) | |
1045 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1046 | # Reject names that are not valid shell variable names. | |
1047 | case $ac_envvar in #( | |
1048 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1049 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1050 | esac | |
1051 | eval $ac_envvar=\$ac_optarg | |
1052 | export $ac_envvar ;; | |
1053 | ||
1054 | *) | |
1055 | # FIXME: should be removed in autoconf 3.0. | |
1056 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1057 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1058 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1059 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1060 | ;; | |
1061 | ||
1062 | esac | |
1063 | done | |
1064 | ||
1065 | if test -n "$ac_prev"; then | |
1066 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1067 | as_fn_error $? "missing argument to $ac_option" | |
1068 | fi | |
1069 | ||
1070 | if test -n "$ac_unrecognized_opts"; then | |
1071 | case $enable_option_checking in | |
1072 | no) ;; | |
1073 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1074 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1075 | esac | |
1076 | fi | |
1077 | ||
1078 | # Check all directory arguments for consistency. | |
1079 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1080 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1081 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1082 | libdir localedir mandir | |
1083 | do | |
1084 | eval ac_val=\$$ac_var | |
1085 | # Remove trailing slashes. | |
1086 | case $ac_val in | |
1087 | */ ) | |
1088 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1089 | eval $ac_var=\$ac_val;; | |
1090 | esac | |
1091 | # Be sure to have absolute directory names. | |
1092 | case $ac_val in | |
1093 | [\\/$]* | ?:[\\/]* ) continue;; | |
1094 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1095 | esac | |
1096 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1097 | done | |
1098 | ||
1099 | # There might be people who depend on the old broken behavior: `$host' | |
1100 | # used to hold the argument of --host etc. | |
1101 | # FIXME: To remove some day. | |
1102 | build=$build_alias | |
1103 | host=$host_alias | |
1104 | target=$target_alias | |
1105 | ||
1106 | # FIXME: To remove some day. | |
1107 | if test "x$host_alias" != x; then | |
1108 | if test "x$build_alias" = x; then | |
1109 | cross_compiling=maybe | |
1110 | elif test "x$build_alias" != "x$host_alias"; then | |
1111 | cross_compiling=yes | |
1112 | fi | |
1113 | fi | |
1114 | ||
1115 | ac_tool_prefix= | |
1116 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1117 | ||
1118 | test "$silent" = yes && exec 6>/dev/null | |
1119 | ||
1120 | ||
1121 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1122 | ac_ls_di=`ls -di .` && | |
1123 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1124 | as_fn_error $? "working directory cannot be determined" | |
1125 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1126 | as_fn_error $? "pwd does not report name of working directory" | |
1127 | ||
1128 | ||
1129 | # Find the source files, if location was not specified. | |
1130 | if test -z "$srcdir"; then | |
1131 | ac_srcdir_defaulted=yes | |
1132 | # Try the directory containing this script, then the parent directory. | |
1133 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1134 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1135 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1136 | X"$as_myself" : 'X\(//\)$' \| \ | |
1137 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1138 | $as_echo X"$as_myself" | | |
1139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1140 | s//\1/ | |
1141 | q | |
1142 | } | |
1143 | /^X\(\/\/\)[^/].*/{ | |
1144 | s//\1/ | |
1145 | q | |
1146 | } | |
1147 | /^X\(\/\/\)$/{ | |
1148 | s//\1/ | |
1149 | q | |
1150 | } | |
1151 | /^X\(\/\).*/{ | |
1152 | s//\1/ | |
1153 | q | |
1154 | } | |
1155 | s/.*/./; q'` | |
1156 | srcdir=$ac_confdir | |
1157 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1158 | srcdir=.. | |
1159 | fi | |
1160 | else | |
1161 | ac_srcdir_defaulted=no | |
1162 | fi | |
1163 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1164 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1165 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1166 | fi | |
1167 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1168 | ac_abs_confdir=`( | |
1169 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1170 | pwd)` | |
1171 | # When building in place, set srcdir=. | |
1172 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1173 | srcdir=. | |
1174 | fi | |
1175 | # Remove unnecessary trailing slashes from srcdir. | |
1176 | # Double slashes in file names in object file debugging info | |
1177 | # mess up M-x gdb in Emacs. | |
1178 | case $srcdir in | |
1179 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1180 | esac | |
1181 | for ac_var in $ac_precious_vars; do | |
1182 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1183 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1184 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1185 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1186 | done | |
1187 | ||
1188 | # | |
1189 | # Report the --help message. | |
1190 | # | |
1191 | if test "$ac_init_help" = "long"; then | |
1192 | # Omit some internal or obsolete options to make the list less imposing. | |
1193 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1194 | cat <<_ACEOF | |
1195 | \`configure' configures mediagoblin 0.4.0.dev to adapt to many kinds of systems. | |
1196 | ||
1197 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1198 | ||
1199 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1200 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1201 | ||
1202 | Defaults for the options are specified in brackets. | |
1203 | ||
1204 | Configuration: | |
1205 | -h, --help display this help and exit | |
1206 | --help=short display options specific to this package | |
1207 | --help=recursive display the short help of all the included packages | |
1208 | -V, --version display version information and exit | |
1209 | -q, --quiet, --silent do not print \`checking ...' messages | |
1210 | --cache-file=FILE cache test results in FILE [disabled] | |
1211 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1212 | -n, --no-create do not create output files | |
1213 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1214 | ||
1215 | Installation directories: | |
1216 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1217 | [$ac_default_prefix] | |
1218 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1219 | [PREFIX] | |
1220 | ||
1221 | By default, \`make install' will install all the files in | |
1222 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1223 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1224 | for instance \`--prefix=\$HOME'. | |
1225 | ||
1226 | For better control, use the options below. | |
1227 | ||
1228 | Fine tuning of the installation directories: | |
1229 | --bindir=DIR user executables [EPREFIX/bin] | |
1230 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1231 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1232 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1233 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1234 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1235 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1236 | --includedir=DIR C header files [PREFIX/include] | |
1237 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1238 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1239 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1240 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1241 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1242 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1243 | --docdir=DIR documentation root [DATAROOTDIR/doc/mediagoblin] | |
1244 | --htmldir=DIR html documentation [DOCDIR] | |
1245 | --dvidir=DIR dvi documentation [DOCDIR] | |
1246 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1247 | --psdir=DIR ps documentation [DOCDIR] | |
1248 | _ACEOF | |
1249 | ||
1250 | cat <<\_ACEOF | |
1251 | _ACEOF | |
1252 | fi | |
1253 | ||
1254 | if test -n "$ac_init_help"; then | |
1255 | case $ac_init_help in | |
1256 | short | recursive ) echo "Configuration of mediagoblin 0.4.0.dev:";; | |
1257 | esac | |
1258 | cat <<\_ACEOF | |
1259 | ||
1260 | Optional Packages: | |
1261 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1262 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1263 | --with-virtualenv install to a Python virtualenv | |
1264 | ||
1265 | Some influential environment variables: | |
1266 | PYTHON the Python interpreter | |
1267 | PYTHON_CONFIG | |
1268 | the Python-config program | |
1269 | VIRTUALENV_FLAGS | |
1270 | flags to pass to the virtualenv command | |
1271 | ||
1272 | Use these variables to override the choices made by `configure' or to help | |
1273 | it to find libraries and programs with nonstandard names/locations. | |
1274 | ||
1275 | Report bugs to <cwebber@gnu.org>. | |
1276 | _ACEOF | |
1277 | ac_status=$? | |
1278 | fi | |
1279 | ||
1280 | if test "$ac_init_help" = "recursive"; then | |
1281 | # If there are subdirs, report their specific --help. | |
1282 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1283 | test -d "$ac_dir" || | |
1284 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1285 | continue | |
1286 | ac_builddir=. | |
1287 | ||
1288 | case "$ac_dir" in | |
1289 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1290 | *) | |
1291 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1292 | # A ".." for each directory in $ac_dir_suffix. | |
1293 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1294 | case $ac_top_builddir_sub in | |
1295 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1296 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1297 | esac ;; | |
1298 | esac | |
1299 | ac_abs_top_builddir=$ac_pwd | |
1300 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1301 | # for backward compatibility: | |
1302 | ac_top_builddir=$ac_top_build_prefix | |
1303 | ||
1304 | case $srcdir in | |
1305 | .) # We are building in place. | |
1306 | ac_srcdir=. | |
1307 | ac_top_srcdir=$ac_top_builddir_sub | |
1308 | ac_abs_top_srcdir=$ac_pwd ;; | |
1309 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1310 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1311 | ac_top_srcdir=$srcdir | |
1312 | ac_abs_top_srcdir=$srcdir ;; | |
1313 | *) # Relative name. | |
1314 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1315 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1316 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1317 | esac | |
1318 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1319 | ||
1320 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1321 | # Check for guested configure. | |
1322 | if test -f "$ac_srcdir/configure.gnu"; then | |
1323 | echo && | |
1324 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1325 | elif test -f "$ac_srcdir/configure"; then | |
1326 | echo && | |
1327 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1328 | else | |
1329 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1330 | fi || ac_status=$? | |
1331 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1332 | done | |
1333 | fi | |
1334 | ||
1335 | test -n "$ac_init_help" && exit $ac_status | |
1336 | if $ac_init_version; then | |
1337 | cat <<\_ACEOF | |
1338 | mediagoblin configure 0.4.0.dev | |
1339 | generated by GNU Autoconf 2.69 | |
1340 | ||
1341 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1342 | This configure script is free software; the Free Software Foundation | |
1343 | gives unlimited permission to copy, distribute and modify it. | |
1344 | _ACEOF | |
1345 | exit | |
1346 | fi | |
1347 | ||
1348 | ## ------------------------ ## | |
1349 | ## Autoconf initialization. ## | |
1350 | ## ------------------------ ## | |
1351 | ||
1352 | # ac_fn_py_try_run LINENO | |
1353 | # ----------------------- | |
1354 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1355 | # that executables *can* be run. | |
1356 | ac_fn_py_try_run () | |
1357 | { | |
1358 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1359 | if { { ac_try="$ac_link" | |
1360 | case "(($ac_try" in | |
1361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1362 | *) ac_try_echo=$ac_try;; | |
1363 | esac | |
1364 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1365 | $as_echo "$ac_try_echo"; } >&5 | |
1366 | (eval "$ac_link") 2>&5 | |
1367 | ac_status=$? | |
1368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1369 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1370 | { { case "(($ac_try" in | |
1371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1372 | *) ac_try_echo=$ac_try;; | |
1373 | esac | |
1374 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1375 | $as_echo "$ac_try_echo"; } >&5 | |
1376 | (eval "$ac_try") 2>&5 | |
1377 | ac_status=$? | |
1378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1379 | test $ac_status = 0; }; }; then : | |
1380 | ac_retval=0 | |
1381 | else | |
1382 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1383 | $as_echo "$as_me: failed program was:" >&5 | |
1384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1385 | ||
1386 | ac_retval=$ac_status | |
1387 | fi | |
1388 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1389 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1390 | as_fn_set_status $ac_retval | |
1391 | ||
1392 | } # ac_fn_py_try_run | |
1393 | cat >config.log <<_ACEOF | |
1394 | This file contains any messages produced by compilers while | |
1395 | running configure, to aid debugging if configure makes a mistake. | |
1396 | ||
1397 | It was created by mediagoblin $as_me 0.4.0.dev, which was | |
1398 | generated by GNU Autoconf 2.69. Invocation command line was | |
1399 | ||
1400 | $ $0 $@ | |
1401 | ||
1402 | _ACEOF | |
1403 | exec 5>>config.log | |
1404 | { | |
1405 | cat <<_ASUNAME | |
1406 | ## --------- ## | |
1407 | ## Platform. ## | |
1408 | ## --------- ## | |
1409 | ||
1410 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1411 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1412 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1413 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1414 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1415 | ||
1416 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1417 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1418 | ||
1419 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1420 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1421 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1422 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1423 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1424 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1425 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1426 | ||
1427 | _ASUNAME | |
1428 | ||
1429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1430 | for as_dir in $PATH | |
1431 | do | |
1432 | IFS=$as_save_IFS | |
1433 | test -z "$as_dir" && as_dir=. | |
1434 | $as_echo "PATH: $as_dir" | |
1435 | done | |
1436 | IFS=$as_save_IFS | |
1437 | ||
1438 | } >&5 | |
1439 | ||
1440 | cat >&5 <<_ACEOF | |
1441 | ||
1442 | ||
1443 | ## ----------- ## | |
1444 | ## Core tests. ## | |
1445 | ## ----------- ## | |
1446 | ||
1447 | _ACEOF | |
1448 | ||
1449 | ||
1450 | # Keep a trace of the command line. | |
1451 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1452 | # Strip out --silent because we don't want to record it for future runs. | |
1453 | # Also quote any args containing shell meta-characters. | |
1454 | # Make two passes to allow for proper duplicate-argument suppression. | |
1455 | ac_configure_args= | |
1456 | ac_configure_args0= | |
1457 | ac_configure_args1= | |
1458 | ac_must_keep_next=false | |
1459 | for ac_pass in 1 2 | |
1460 | do | |
1461 | for ac_arg | |
1462 | do | |
1463 | case $ac_arg in | |
1464 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1465 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1466 | | -silent | --silent | --silen | --sile | --sil) | |
1467 | continue ;; | |
1468 | *\'*) | |
1469 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1470 | esac | |
1471 | case $ac_pass in | |
1472 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1473 | 2) | |
1474 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1475 | if test $ac_must_keep_next = true; then | |
1476 | ac_must_keep_next=false # Got value, back to normal. | |
1477 | else | |
1478 | case $ac_arg in | |
1479 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1480 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1481 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1482 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1483 | case "$ac_configure_args0 " in | |
1484 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1485 | esac | |
1486 | ;; | |
1487 | -* ) ac_must_keep_next=true ;; | |
1488 | esac | |
1489 | fi | |
1490 | as_fn_append ac_configure_args " '$ac_arg'" | |
1491 | ;; | |
1492 | esac | |
1493 | done | |
1494 | done | |
1495 | { ac_configure_args0=; unset ac_configure_args0;} | |
1496 | { ac_configure_args1=; unset ac_configure_args1;} | |
1497 | ||
1498 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1499 | # config.log. We remove comments because anyway the quotes in there | |
1500 | # would cause problems or look ugly. | |
1501 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1502 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1503 | trap 'exit_status=$? | |
1504 | # Save into config.log some information that might help in debugging. | |
1505 | { | |
1506 | echo | |
1507 | ||
1508 | $as_echo "## ---------------- ## | |
1509 | ## Cache variables. ## | |
1510 | ## ---------------- ##" | |
1511 | echo | |
1512 | # The following way of writing the cache mishandles newlines in values, | |
1513 | ( | |
1514 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1515 | eval ac_val=\$$ac_var | |
1516 | case $ac_val in #( | |
1517 | *${as_nl}*) | |
1518 | case $ac_var in #( | |
1519 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1520 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1521 | esac | |
1522 | case $ac_var in #( | |
1523 | _ | IFS | as_nl) ;; #( | |
1524 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1525 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1526 | esac ;; | |
1527 | esac | |
1528 | done | |
1529 | (set) 2>&1 | | |
1530 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1531 | *${as_nl}ac_space=\ *) | |
1532 | sed -n \ | |
1533 | "s/'\''/'\''\\\\'\'''\''/g; | |
1534 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1535 | ;; #( | |
1536 | *) | |
1537 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1538 | ;; | |
1539 | esac | | |
1540 | sort | |
1541 | ) | |
1542 | echo | |
1543 | ||
1544 | $as_echo "## ----------------- ## | |
1545 | ## Output variables. ## | |
1546 | ## ----------------- ##" | |
1547 | echo | |
1548 | for ac_var in $ac_subst_vars | |
1549 | do | |
1550 | eval ac_val=\$$ac_var | |
1551 | case $ac_val in | |
1552 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1553 | esac | |
1554 | $as_echo "$ac_var='\''$ac_val'\''" | |
1555 | done | sort | |
1556 | echo | |
1557 | ||
1558 | if test -n "$ac_subst_files"; then | |
1559 | $as_echo "## ------------------- ## | |
1560 | ## File substitutions. ## | |
1561 | ## ------------------- ##" | |
1562 | echo | |
1563 | for ac_var in $ac_subst_files | |
1564 | do | |
1565 | eval ac_val=\$$ac_var | |
1566 | case $ac_val in | |
1567 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1568 | esac | |
1569 | $as_echo "$ac_var='\''$ac_val'\''" | |
1570 | done | sort | |
1571 | echo | |
1572 | fi | |
1573 | ||
1574 | if test -s confdefs.h; then | |
1575 | $as_echo "## ----------- ## | |
1576 | ## confdefs.h. ## | |
1577 | ## ----------- ##" | |
1578 | echo | |
1579 | cat confdefs.h | |
1580 | echo | |
1581 | fi | |
1582 | test "$ac_signal" != 0 && | |
1583 | $as_echo "$as_me: caught signal $ac_signal" | |
1584 | $as_echo "$as_me: exit $exit_status" | |
1585 | } >&5 | |
1586 | rm -f core *.core core.conftest.* && | |
1587 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1588 | exit $exit_status | |
1589 | ' 0 | |
1590 | for ac_signal in 1 2 13 15; do | |
1591 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1592 | done | |
1593 | ac_signal=0 | |
1594 | ||
1595 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1596 | rm -f -r conftest* confdefs.h | |
1597 | ||
1598 | $as_echo "/* confdefs.h */" > confdefs.h | |
1599 | ||
1600 | # Predefined preprocessor variables. | |
1601 | ||
1602 | cat >>confdefs.h <<_ACEOF | |
1603 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1604 | _ACEOF | |
1605 | ||
1606 | cat >>confdefs.h <<_ACEOF | |
1607 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1608 | _ACEOF | |
1609 | ||
1610 | cat >>confdefs.h <<_ACEOF | |
1611 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1612 | _ACEOF | |
1613 | ||
1614 | cat >>confdefs.h <<_ACEOF | |
1615 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1616 | _ACEOF | |
1617 | ||
1618 | cat >>confdefs.h <<_ACEOF | |
1619 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1620 | _ACEOF | |
1621 | ||
1622 | cat >>confdefs.h <<_ACEOF | |
1623 | #define PACKAGE_URL "$PACKAGE_URL" | |
1624 | _ACEOF | |
1625 | ||
1626 | ||
1627 | # Let the site file select an alternate cache file if it wants to. | |
1628 | # Prefer an explicitly selected file to automatically selected ones. | |
1629 | ac_site_file1=NONE | |
1630 | ac_site_file2=NONE | |
1631 | if test -n "$CONFIG_SITE"; then | |
1632 | # We do not want a PATH search for config.site. | |
1633 | case $CONFIG_SITE in #(( | |
1634 | -*) ac_site_file1=./$CONFIG_SITE;; | |
1635 | */*) ac_site_file1=$CONFIG_SITE;; | |
1636 | *) ac_site_file1=./$CONFIG_SITE;; | |
1637 | esac | |
1638 | elif test "x$prefix" != xNONE; then | |
1639 | ac_site_file1=$prefix/share/config.site | |
1640 | ac_site_file2=$prefix/etc/config.site | |
1641 | else | |
1642 | ac_site_file1=$ac_default_prefix/share/config.site | |
1643 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1644 | fi | |
1645 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1646 | do | |
1647 | test "x$ac_site_file" = xNONE && continue | |
1648 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1650 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1651 | sed 's/^/| /' "$ac_site_file" >&5 | |
1652 | . "$ac_site_file" \ | |
1653 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1654 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1655 | as_fn_error $? "failed to load site script $ac_site_file | |
1656 | See \`config.log' for more details" "$LINENO" 5; } | |
1657 | fi | |
1658 | done | |
1659 | ||
1660 | if test -r "$cache_file"; then | |
1661 | # Some versions of bash will fail to source /dev/null (special files | |
1662 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1663 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1665 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1666 | case $cache_file in | |
1667 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1668 | *) . "./$cache_file";; | |
1669 | esac | |
1670 | fi | |
1671 | else | |
1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1673 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1674 | >$cache_file | |
1675 | fi | |
1676 | ||
1677 | # Check that the precious variables saved in the cache have kept the same | |
1678 | # value. | |
1679 | ac_cache_corrupted=false | |
1680 | for ac_var in $ac_precious_vars; do | |
1681 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1682 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1683 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1684 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1685 | case $ac_old_set,$ac_new_set in | |
1686 | set,) | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1688 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1689 | ac_cache_corrupted=: ;; | |
1690 | ,set) | |
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1692 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1693 | ac_cache_corrupted=: ;; | |
1694 | ,);; | |
1695 | *) | |
1696 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1697 | # differences in whitespace do not lead to failure. | |
1698 | ac_old_val_w=`echo x $ac_old_val` | |
1699 | ac_new_val_w=`echo x $ac_new_val` | |
1700 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1702 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1703 | ac_cache_corrupted=: | |
1704 | else | |
1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1706 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1707 | eval $ac_var=\$ac_old_val | |
1708 | fi | |
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1710 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1712 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1713 | fi;; | |
1714 | esac | |
1715 | # Pass precious variables to config.status. | |
1716 | if test "$ac_new_set" = set; then | |
1717 | case $ac_new_val in | |
1718 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1719 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1720 | esac | |
1721 | case " $ac_configure_args " in | |
1722 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1723 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
1724 | esac | |
1725 | fi | |
1726 | done | |
1727 | if $ac_cache_corrupted; then | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1729 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1731 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1732 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
1733 | fi | |
1734 | ## -------------------- ## | |
1735 | ## Main body of script. ## | |
1736 | ## -------------------- ## | |
1737 | ||
1738 | ac_ext=c | |
1739 | ac_cpp='$CPP $CPPFLAGS' | |
1740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | for ac_prog in python2.7 python2.6 \ | |
1753 | \ | |
1754 | python2 python | |
1755 | do | |
1756 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1757 | set dummy $ac_prog; ac_word=$2 | |
1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1759 | $as_echo_n "checking for $ac_word... " >&6; } | |
1760 | if ${ac_cv_path_PYTHON+:} false; then : | |
1761 | $as_echo_n "(cached) " >&6 | |
1762 | else | |
1763 | case $PYTHON in | |
1764 | [\\/]* | ?:[\\/]*) | |
1765 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
1766 | ;; | |
1767 | *) | |
1768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1769 | for as_dir in $PATH | |
1770 | do | |
1771 | IFS=$as_save_IFS | |
1772 | test -z "$as_dir" && as_dir=. | |
1773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1775 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | |
1776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1777 | break 2 | |
1778 | fi | |
1779 | done | |
1780 | done | |
1781 | IFS=$as_save_IFS | |
1782 | ||
1783 | ;; | |
1784 | esac | |
1785 | fi | |
1786 | PYTHON=$ac_cv_path_PYTHON | |
1787 | if test -n "$PYTHON"; then | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
1789 | $as_echo "$PYTHON" >&6; } | |
1790 | else | |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1792 | $as_echo "no" >&6; } | |
1793 | fi | |
1794 | ||
1795 | ||
1796 | test -n "$PYTHON" && break | |
1797 | done | |
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ||
1804 | ||
1805 | for ac_prog in python2.7 python2.6 \ | |
1806 | \ | |
1807 | python2 python | |
1808 | do | |
1809 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1810 | set dummy $ac_prog; ac_word=$2 | |
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1812 | $as_echo_n "checking for $ac_word... " >&6; } | |
1813 | if ${ac_cv_path_PYTHON+:} false; then : | |
1814 | $as_echo_n "(cached) " >&6 | |
1815 | else | |
1816 | case $PYTHON in | |
1817 | [\\/]* | ?:[\\/]*) | |
1818 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
1819 | ;; | |
1820 | *) | |
1821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1822 | for as_dir in $PATH | |
1823 | do | |
1824 | IFS=$as_save_IFS | |
1825 | test -z "$as_dir" && as_dir=. | |
1826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1828 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1830 | break 2 | |
1831 | fi | |
1832 | done | |
1833 | done | |
1834 | IFS=$as_save_IFS | |
1835 | ||
1836 | ;; | |
1837 | esac | |
1838 | fi | |
1839 | PYTHON=$ac_cv_path_PYTHON | |
1840 | if test -n "$PYTHON"; then | |
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
1842 | $as_echo "$PYTHON" >&6; } | |
1843 | else | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1845 | $as_echo "no" >&6; } | |
1846 | fi | |
1847 | ||
1848 | ||
1849 | test -n "$PYTHON" && break | |
1850 | done | |
1851 | ||
1852 | ||
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Python >= '2.6'" >&5 | |
1854 | $as_echo_n "checking if Python >= '2.6'... " >&6; } | |
1855 | if ${pc_cv_python_min_version_2_6+:} false; then : | |
1856 | $as_echo_n "(cached) " >&6 | |
1857 | else | |
1858 | ac_ext=py | |
1859 | ac_compile='chmod +x conftest.$ac_ext >&5' | |
1860 | ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' | |
1861 | if test "$cross_compiling" = yes; then : | |
1862 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1863 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1864 | as_fn_error $? "cannot run test program while cross compiling | |
1865 | See \`config.log' for more details" "$LINENO" 5; } | |
1866 | else | |
1867 | cat > conftest.$ac_ext <<_ACEOF | |
1868 | #!$PYTHON | |
1869 | import sys | |
1870 | ||
1871 | if __name__ == '__main__': | |
1872 | # split strings by '.' and convert to numeric. Append some zeros | |
1873 | # because we need at least 4 digits for the hex conversion. | |
1874 | # map returns an iterator in Python 3.0 and a list in 2.x | |
1875 | reqver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] | |
1876 | reqverhex = 0 | |
1877 | # xrange is not present in Python 3.0 and range returns an iterator | |
1878 | for i in list(range(4)): | |
1879 | reqverhex = (reqverhex << 8) + reqver[i] | |
1880 | if sys.hexversion >= reqverhex: | |
1881 | sys.exit() | |
1882 | else: | |
1883 | sys.exit(1) | |
1884 | ||
1885 | _ACEOF | |
1886 | if ac_fn_py_try_run "$LINENO"; then : | |
1887 | pc_cv_python_req_version_2_6="yes" | |
1888 | else | |
1889 | pc_cv_python_req_version_2_6="no" | |
1890 | fi | |
1891 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
1892 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1893 | fi | |
1894 | ||
1895 | ac_ext=c | |
1896 | ac_cpp='$CPP $CPPFLAGS' | |
1897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1900 | ||
1901 | fi | |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_min_version_2_6" >&5 | |
1903 | $as_echo "$pc_cv_python_min_version_2_6" >&6; } | |
1904 | if test "$pc_cv_python_req_version_2_6" = "no"; then : | |
1905 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1906 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1907 | as_fn_error $? "No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter. | |
1908 | See \`config.log' for more details" "$LINENO" 5; } | |
1909 | else | |
1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
1911 | $as_echo "yes" >&6; } | |
1912 | fi | |
1913 | ||
1914 | ||
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Python <= '2.7.99'" >&5 | |
1916 | $as_echo_n "checking if Python <= '2.7.99'... " >&6; } | |
1917 | if ${pc_cv_python_min_version_2_7_99+:} false; then : | |
1918 | $as_echo_n "(cached) " >&6 | |
1919 | else | |
1920 | ac_ext=py | |
1921 | ac_compile='chmod +x conftest.$ac_ext >&5' | |
1922 | ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' | |
1923 | if test "$cross_compiling" = yes; then : | |
1924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1925 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1926 | as_fn_error $? "cannot run test program while cross compiling | |
1927 | See \`config.log' for more details" "$LINENO" 5; } | |
1928 | else | |
1929 | cat > conftest.$ac_ext <<_ACEOF | |
1930 | #!$PYTHON | |
1931 | import sys | |
1932 | ||
1933 | if __name__ == '__main__': | |
1934 | # split strings by '.' and convert to numeric. Append some zeros | |
1935 | # because we need at least 4 digits for the hex conversion. | |
1936 | # map returns an iterator in Python 3.0 and a list in 2.x | |
1937 | reqver = list(map(int, '2.7.99'.split('.'))) + [0, 0, 0] | |
1938 | reqverhex = 0 | |
1939 | # xrange is not present in Python 3.0 and range returns an iterator | |
1940 | for i in list(range(4)): | |
1941 | reqverhex = (reqverhex << 8) + reqver[i] | |
1942 | if sys.hexversion <= reqverhex: | |
1943 | sys.exit() | |
1944 | else: | |
1945 | sys.exit(1) | |
1946 | ||
1947 | _ACEOF | |
1948 | if ac_fn_py_try_run "$LINENO"; then : | |
1949 | pc_cv_python_req_version_2_7_99="yes" | |
1950 | else | |
1951 | pc_cv_python_req_version_2_7_99="no" | |
1952 | fi | |
1953 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
1954 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1955 | fi | |
1956 | ||
1957 | ac_ext=c | |
1958 | ac_cpp='$CPP $CPPFLAGS' | |
1959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1962 | ||
1963 | fi | |
1964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_min_version_2_7_99" >&5 | |
1965 | $as_echo "$pc_cv_python_min_version_2_7_99" >&6; } | |
1966 | if test "$pc_cv_python_req_version_2_7_99" = "no"; then : | |
1967 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1968 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1969 | as_fn_error $? "No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter. | |
1970 | See \`config.log' for more details" "$LINENO" 5; } | |
1971 | else | |
1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
1973 | $as_echo "yes" >&6; } | |
1974 | fi | |
1975 | ||
1976 | ||
1977 | ||
1978 | ||
1979 | ||
1980 | for ac_prog in python2-config `basename $PYTHON`-config | |
1981 | do | |
1982 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1983 | set dummy $ac_prog; ac_word=$2 | |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1985 | $as_echo_n "checking for $ac_word... " >&6; } | |
1986 | if ${ac_cv_path_PYTHON_CONFIG+:} false; then : | |
1987 | $as_echo_n "(cached) " >&6 | |
1988 | else | |
1989 | case $PYTHON_CONFIG in | |
1990 | [\\/]* | ?:[\\/]*) | |
1991 | ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path. | |
1992 | ;; | |
1993 | *) | |
1994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1995 | for as_dir in $PATH | |
1996 | do | |
1997 | IFS=$as_save_IFS | |
1998 | test -z "$as_dir" && as_dir=. | |
1999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2001 | ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
2002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2003 | break 2 | |
2004 | fi | |
2005 | done | |
2006 | done | |
2007 | IFS=$as_save_IFS | |
2008 | ||
2009 | ;; | |
2010 | esac | |
2011 | fi | |
2012 | PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG | |
2013 | if test -n "$PYTHON_CONFIG"; then | |
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 | |
2015 | $as_echo "$PYTHON_CONFIG" >&6; } | |
2016 | else | |
2017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2018 | $as_echo "no" >&6; } | |
2019 | fi | |
2020 | ||
2021 | ||
2022 | test -n "$PYTHON_CONFIG" && break | |
2023 | done | |
2024 | ||
2025 | ||
2026 | if [ "x$PYTHON_CONFIG" == "x" ]; then | |
2027 | ||
2028 | ||
2029 | for ac_prog in $PYTHON-config `basename $PYTHON`-config | |
2030 | do | |
2031 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2032 | set dummy $ac_prog; ac_word=$2 | |
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2034 | $as_echo_n "checking for $ac_word... " >&6; } | |
2035 | if ${ac_cv_path_PYTHON_CONFIG+:} false; then : | |
2036 | $as_echo_n "(cached) " >&6 | |
2037 | else | |
2038 | case $PYTHON_CONFIG in | |
2039 | [\\/]* | ?:[\\/]*) | |
2040 | ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path. | |
2041 | ;; | |
2042 | *) | |
2043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2044 | for as_dir in $PATH | |
2045 | do | |
2046 | IFS=$as_save_IFS | |
2047 | test -z "$as_dir" && as_dir=. | |
2048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2049 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2050 | ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
2051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2052 | break 2 | |
2053 | fi | |
2054 | done | |
2055 | done | |
2056 | IFS=$as_save_IFS | |
2057 | ||
2058 | ;; | |
2059 | esac | |
2060 | fi | |
2061 | PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG | |
2062 | if test -n "$PYTHON_CONFIG"; then | |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 | |
2064 | $as_echo "$PYTHON_CONFIG" >&6; } | |
2065 | else | |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2067 | $as_echo "no" >&6; } | |
2068 | fi | |
2069 | ||
2070 | ||
2071 | test -n "$PYTHON_CONFIG" && break | |
2072 | done | |
2073 | ||
2074 | ||
2075 | fi | |
2076 | ||
2077 | # Support installing to a virtualenv via the --with-virtualenv | |
2078 | # configure flag | |
2079 | ||
2080 | # Check whether --with-virtualenv was given. | |
2081 | if test "${with_virtualenv+set}" = set; then : | |
2082 | withval=$with_virtualenv; | |
2083 | else | |
2084 | with_virtualenv=no | |
2085 | fi | |
2086 | ||
2087 | if test "x$with_virtualenv" != xno; then : | |
2088 | for ac_prog in virtualenv virtualenv3 virtualenv2 | |
2089 | do | |
2090 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2091 | set dummy $ac_prog; ac_word=$2 | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2093 | $as_echo_n "checking for $ac_word... " >&6; } | |
2094 | if ${ac_cv_prog_VIRTUALENV+:} false; then : | |
2095 | $as_echo_n "(cached) " >&6 | |
2096 | else | |
2097 | if test -n "$VIRTUALENV"; then | |
2098 | ac_cv_prog_VIRTUALENV="$VIRTUALENV" # Let the user override the test. | |
2099 | else | |
2100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2101 | for as_dir in $PATH | |
2102 | do | |
2103 | IFS=$as_save_IFS | |
2104 | test -z "$as_dir" && as_dir=. | |
2105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2107 | ac_cv_prog_VIRTUALENV="$ac_prog" | |
2108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2109 | break 2 | |
2110 | fi | |
2111 | done | |
2112 | done | |
2113 | IFS=$as_save_IFS | |
2114 | ||
2115 | fi | |
2116 | fi | |
2117 | VIRTUALENV=$ac_cv_prog_VIRTUALENV | |
2118 | if test -n "$VIRTUALENV"; then | |
2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIRTUALENV" >&5 | |
2120 | $as_echo "$VIRTUALENV" >&6; } | |
2121 | else | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2123 | $as_echo "no" >&6; } | |
2124 | fi | |
2125 | ||
2126 | ||
2127 | test -n "$VIRTUALENV" && break | |
2128 | done | |
2129 | test -n "$VIRTUALENV" || VIRTUALENV="no" | |
2130 | ||
2131 | if test "x$VIRTUALENV" = xno; then : | |
2132 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2133 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2134 | as_fn_error $? "--with-virtualenv given but virtualenv could not be found | |
2135 | See \`config.log' for more details" "$LINENO" 5; } | |
2136 | fi | |
2137 | else | |
2138 | VIRTUALENV=no | |
2139 | ||
2140 | fi | |
2141 | ||
2142 | ||
2143 | # Check for sphinx-build | |
2144 | for ac_prog in sphinx-build sphinx-build3 sphinx-build2 | |
2145 | do | |
2146 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2147 | set dummy $ac_prog; ac_word=$2 | |
2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2149 | $as_echo_n "checking for $ac_word... " >&6; } | |
2150 | if ${ac_cv_prog_SPHINXBUILD+:} false; then : | |
2151 | $as_echo_n "(cached) " >&6 | |
2152 | else | |
2153 | if test -n "$SPHINXBUILD"; then | |
2154 | ac_cv_prog_SPHINXBUILD="$SPHINXBUILD" # Let the user override the test. | |
2155 | else | |
2156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2157 | for as_dir in $PATH | |
2158 | do | |
2159 | IFS=$as_save_IFS | |
2160 | test -z "$as_dir" && as_dir=. | |
2161 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2162 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2163 | ac_cv_prog_SPHINXBUILD="$ac_prog" | |
2164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2165 | break 2 | |
2166 | fi | |
2167 | done | |
2168 | done | |
2169 | IFS=$as_save_IFS | |
2170 | ||
2171 | fi | |
2172 | fi | |
2173 | SPHINXBUILD=$ac_cv_prog_SPHINXBUILD | |
2174 | if test -n "$SPHINXBUILD"; then | |
2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD" >&5 | |
2176 | $as_echo "$SPHINXBUILD" >&6; } | |
2177 | else | |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2179 | $as_echo "no" >&6; } | |
2180 | fi | |
2181 | ||
2182 | ||
2183 | test -n "$SPHINXBUILD" && break | |
2184 | done | |
2185 | test -n "$SPHINXBUILD" || SPHINXBUILD="no" | |
2186 | ||
2187 | if test "x$SPHINXBUILD" = xno; then : | |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sphinx-build is required to build documentation" >&5 | |
2189 | $as_echo "$as_me: WARNING: sphinx-build is required to build documentation" >&2;} | |
2190 | fi | |
2191 | ||
2192 | ||
2193 | ac_aux_dir= | |
2194 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2195 | if test -f "$ac_dir/install-sh"; then | |
2196 | ac_aux_dir=$ac_dir | |
2197 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2198 | break | |
2199 | elif test -f "$ac_dir/install.sh"; then | |
2200 | ac_aux_dir=$ac_dir | |
2201 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2202 | break | |
2203 | elif test -f "$ac_dir/shtool"; then | |
2204 | ac_aux_dir=$ac_dir | |
2205 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2206 | break | |
2207 | fi | |
2208 | done | |
2209 | if test -z "$ac_aux_dir"; then | |
2210 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2211 | fi | |
2212 | ||
2213 | # These three variables are undocumented and unsupported, | |
2214 | # and are intended to be withdrawn in a future Autoconf release. | |
2215 | # They can cause serious problems if a builder's source tree is in a directory | |
2216 | # whose full name contains unusual characters. | |
2217 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2218 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2219 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2220 | ||
2221 | ||
2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2223 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2224 | if test -z "$MKDIR_P"; then | |
2225 | if ${ac_cv_path_mkdir+:} false; then : | |
2226 | $as_echo_n "(cached) " >&6 | |
2227 | else | |
2228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2229 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2230 | do | |
2231 | IFS=$as_save_IFS | |
2232 | test -z "$as_dir" && as_dir=. | |
2233 | for ac_prog in mkdir gmkdir; do | |
2234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2235 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2236 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2237 | 'mkdir (GNU coreutils) '* | \ | |
2238 | 'mkdir (coreutils) '* | \ | |
2239 | 'mkdir (fileutils) '4.1*) | |
2240 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2241 | break 3;; | |
2242 | esac | |
2243 | done | |
2244 | done | |
2245 | done | |
2246 | IFS=$as_save_IFS | |
2247 | ||
2248 | fi | |
2249 | ||
2250 | test -d ./--version && rmdir ./--version | |
2251 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2252 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2253 | else | |
2254 | # As a last resort, use the slow shell script. Don't cache a | |
2255 | # value for MKDIR_P within a source directory, because that will | |
2256 | # break other packages using the cache if that directory is | |
2257 | # removed, or if the value is a relative name. | |
2258 | MKDIR_P="$ac_install_sh -d" | |
2259 | fi | |
2260 | fi | |
2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2262 | $as_echo "$MKDIR_P" >&6; } | |
2263 | ||
2264 | # Find a good install program. We prefer a C program (faster), | |
2265 | # so one script is as good as another. But avoid the broken or | |
2266 | # incompatible versions: | |
2267 | # SysV /etc/install, /usr/sbin/install | |
2268 | # SunOS /usr/etc/install | |
2269 | # IRIX /sbin/install | |
2270 | # AIX /bin/install | |
2271 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2272 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2273 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2274 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2275 | # OS/2's system install, which has a completely different semantic | |
2276 | # ./install, which can be erroneously created by make from ./install.sh. | |
2277 | # Reject install programs that cannot install multiple files. | |
2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2279 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2280 | if test -z "$INSTALL"; then | |
2281 | if ${ac_cv_path_install+:} false; then : | |
2282 | $as_echo_n "(cached) " >&6 | |
2283 | else | |
2284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2285 | for as_dir in $PATH | |
2286 | do | |
2287 | IFS=$as_save_IFS | |
2288 | test -z "$as_dir" && as_dir=. | |
2289 | # Account for people who put trailing slashes in PATH elements. | |
2290 | case $as_dir/ in #(( | |
2291 | ./ | .// | /[cC]/* | \ | |
2292 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2293 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2294 | /usr/ucb/* ) ;; | |
2295 | *) | |
2296 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2297 | # Don't use installbsd from OSF since it installs stuff as root | |
2298 | # by default. | |
2299 | for ac_prog in ginstall scoinst install; do | |
2300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2301 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2302 | if test $ac_prog = install && | |
2303 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2304 | # AIX install. It has an incompatible calling convention. | |
2305 | : | |
2306 | elif test $ac_prog = install && | |
2307 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2308 | # program-specific install script used by HP pwplus--don't use. | |
2309 | : | |
2310 | else | |
2311 | rm -rf conftest.one conftest.two conftest.dir | |
2312 | echo one > conftest.one | |
2313 | echo two > conftest.two | |
2314 | mkdir conftest.dir | |
2315 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2316 | test -s conftest.one && test -s conftest.two && | |
2317 | test -s conftest.dir/conftest.one && | |
2318 | test -s conftest.dir/conftest.two | |
2319 | then | |
2320 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2321 | break 3 | |
2322 | fi | |
2323 | fi | |
2324 | fi | |
2325 | done | |
2326 | done | |
2327 | ;; | |
2328 | esac | |
2329 | ||
2330 | done | |
2331 | IFS=$as_save_IFS | |
2332 | ||
2333 | rm -rf conftest.one conftest.two conftest.dir | |
2334 | ||
2335 | fi | |
2336 | if test "${ac_cv_path_install+set}" = set; then | |
2337 | INSTALL=$ac_cv_path_install | |
2338 | else | |
2339 | # As a last resort, use the slow shell script. Don't cache a | |
2340 | # value for INSTALL within a source directory, because that will | |
2341 | # break other packages using the cache if that directory is | |
2342 | # removed, or if the value is a relative name. | |
2343 | INSTALL=$ac_install_sh | |
2344 | fi | |
2345 | fi | |
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2347 | $as_echo "$INSTALL" >&6; } | |
2348 | ||
2349 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2350 | # It thinks the first close brace ends the variable substitution. | |
2351 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2352 | ||
2353 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2354 | ||
2355 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2356 | ||
2357 | ||
2358 | # Check for a supported database program | |
2359 | # Extract the first word of "sqlite3", so it can be a program name with args. | |
2360 | set dummy sqlite3; ac_word=$2 | |
2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2362 | $as_echo_n "checking for $ac_word... " >&6; } | |
2363 | if ${ac_cv_path_SQLITE+:} false; then : | |
2364 | $as_echo_n "(cached) " >&6 | |
2365 | else | |
2366 | case $SQLITE in | |
2367 | [\\/]* | ?:[\\/]*) | |
2368 | ac_cv_path_SQLITE="$SQLITE" # Let the user override the test with a path. | |
2369 | ;; | |
2370 | *) | |
2371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2372 | for as_dir in $PATH | |
2373 | do | |
2374 | IFS=$as_save_IFS | |
2375 | test -z "$as_dir" && as_dir=. | |
2376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2377 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2378 | ac_cv_path_SQLITE="$as_dir/$ac_word$ac_exec_ext" | |
2379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2380 | break 2 | |
2381 | fi | |
2382 | done | |
2383 | done | |
2384 | IFS=$as_save_IFS | |
2385 | ||
2386 | ;; | |
2387 | esac | |
2388 | fi | |
2389 | SQLITE=$ac_cv_path_SQLITE | |
2390 | if test -n "$SQLITE"; then | |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE" >&5 | |
2392 | $as_echo "$SQLITE" >&6; } | |
2393 | else | |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2395 | $as_echo "no" >&6; } | |
2396 | fi | |
2397 | ||
2398 | ||
2399 | # Extract the first word of "postgres", so it can be a program name with args. | |
2400 | set dummy postgres; ac_word=$2 | |
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2402 | $as_echo_n "checking for $ac_word... " >&6; } | |
2403 | if ${ac_cv_path_POSTGRES+:} false; then : | |
2404 | $as_echo_n "(cached) " >&6 | |
2405 | else | |
2406 | case $POSTGRES in | |
2407 | [\\/]* | ?:[\\/]*) | |
2408 | ac_cv_path_POSTGRES="$POSTGRES" # Let the user override the test with a path. | |
2409 | ;; | |
2410 | *) | |
2411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2412 | for as_dir in $PATH | |
2413 | do | |
2414 | IFS=$as_save_IFS | |
2415 | test -z "$as_dir" && as_dir=. | |
2416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2418 | ac_cv_path_POSTGRES="$as_dir/$ac_word$ac_exec_ext" | |
2419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2420 | break 2 | |
2421 | fi | |
2422 | done | |
2423 | done | |
2424 | IFS=$as_save_IFS | |
2425 | ||
2426 | ;; | |
2427 | esac | |
2428 | fi | |
2429 | POSTGRES=$ac_cv_path_POSTGRES | |
2430 | if test -n "$POSTGRES"; then | |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTGRES" >&5 | |
2432 | $as_echo "$POSTGRES" >&6; } | |
2433 | else | |
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2435 | $as_echo "no" >&6; } | |
2436 | fi | |
2437 | ||
2438 | ||
2439 | if [ "x$SQLITE" = "x" && "x$POSTGRES" = "x" ]; then | |
2440 | as_fn_error $? "SQLite or PostgreSQL is required" "$LINENO" 5 | |
2441 | fi | |
2442 | ||
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5 | |
2444 | $as_echo_n "checking for Python prefix... " >&6; } | |
2445 | if ${pc_cv_python_prefix+:} false; then : | |
2446 | $as_echo_n "(cached) " >&6 | |
2447 | else | |
2448 | if test -x "$PYTHON_CONFIG"; then | |
2449 | pc_cv_python_prefix=`$PYTHON_CONFIG --prefix 2>&5` | |
2450 | else | |
2451 | ac_ext=py | |
2452 | ac_compile='chmod +x conftest.$ac_ext >&5' | |
2453 | ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' | |
2454 | pc_cv_python_prefix=cat > conftest.$ac_ext <<_ACEOF | |
2455 | #!$PYTHON | |
2456 | import sys | |
2457 | ||
2458 | if __name__ == '__main__': | |
2459 | sys.exit(sys.prefix) | |
2460 | ||
2461 | _ACEOF | |
2462 | ac_ext=c | |
2463 | ac_cpp='$CPP $CPPFLAGS' | |
2464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2467 | fi | |
2468 | fi | |
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_prefix" >&5 | |
2470 | $as_echo "$pc_cv_python_prefix" >&6; } | |
2471 | PYTHON_PREFIX=$pc_cv_python_prefix | |
2472 | ||
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages directory" >&5 | |
2474 | $as_echo_n "checking for Python site-packages directory... " >&6; } | |
2475 | if ${pc_cv_python_site_dir+:} false; then : | |
2476 | $as_echo_n "(cached) " >&6 | |
2477 | else | |
2478 | ac_ext=py | |
2479 | ac_compile='chmod +x conftest.$ac_ext >&5' | |
2480 | ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' | |
2481 | if test "x$prefix" = xNONE | |
2482 | then | |
2483 | pc_py_prefix=$ac_default_prefix | |
2484 | else | |
2485 | pc_py_prefix=$prefix | |
2486 | fi | |
2487 | cat > conftest.$ac_ext <<_ACEOF | |
2488 | ||
2489 | #!$PYTHON | |
2490 | import sys | |
2491 | from platform import python_implementation | |
2492 | # sysconfig in CPython 2.7 doesn't work in virtualenv | |
2493 | # <https://github.com/pypa/virtualenv/issues/118> | |
2494 | try: | |
2495 | import sysconfig | |
2496 | except: | |
2497 | can_use_sysconfig = False | |
2498 | else: | |
2499 | can_use_sysconfig = True | |
2500 | if can_use_sysconfig: | |
2501 | if python_implementation() == "CPython" and sys.version[:3] == '2.7': | |
2502 | can_use_sysconfig = False | |
2503 | if not can_use_sysconfig: | |
2504 | from distutils import sysconfig | |
2505 | sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py_prefix') | |
2506 | else: | |
2507 | sitedir = sysconfig.get_path('purelib', vars={'base':'$pc_py_prefix'}) | |
2508 | ||
2509 | if __name__ == '__main__': | |
2510 | sys.stdout.write(sitedir) | |
2511 | ||
2512 | _ACEOF | |
2513 | pc_cv_python_site_dir=`$PYTHON conftest.py` | |
2514 | ac_ext=c | |
2515 | ac_cpp='$CPP $CPPFLAGS' | |
2516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2519 | case $pc_cv_python_site_dir in | |
2520 | $pc_py_prefix*) | |
2521 | pc__strip_prefix=`echo "$pc_py_prefix" | sed 's|.|.|g'` | |
2522 | pc_cv_python_site_dir=`echo "$pc_cv_python_site_dir" | sed "s,^$pc__strip_prefix/,,"` | |
2523 | ;; | |
2524 | *) | |
2525 | case $pc_py_prefix in | |
2526 | /usr|/System*) ;; | |
2527 | *) | |
2528 | pc_cv_python_site_dir=lib/python$PYTHON_VERSION/site-packages | |
2529 | ;; | |
2530 | esac | |
2531 | ;; | |
2532 | esac | |
2533 | ||
2534 | fi | |
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_site_dir" >&5 | |
2536 | $as_echo "$pc_cv_python_site_dir" >&6; } | |
2537 | pythondir=\${prefix}/$pc_cv_python_site_dir | |
2538 | ||
2539 | pkgpythondir=\${pythondir}/$PACKAGE | |
2540 | ||
2541 | ||
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python exec-prefix" >&5 | |
2543 | $as_echo_n "checking for Python exec-prefix... " >&6; } | |
2544 | if ${pc_cv_python_exec_prefix+:} false; then : | |
2545 | $as_echo_n "(cached) " >&6 | |
2546 | else | |
2547 | if test -x "$PYTHON_CONFIG"; then | |
2548 | pc_cv_python_exec_prefix=`$PYTHON_CONFIG --exec-prefix 2>&5` | |
2549 | else | |
2550 | ac_ext=py | |
2551 | ac_compile='chmod +x conftest.$ac_ext >&5' | |
2552 | ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' | |
2553 | pc_cv_python_exec_prefix=cat > conftest.$ac_ext <<_ACEOF | |
2554 | #!$PYTHON | |
2555 | import sys | |
2556 | ||
2557 | if __name__ == '__main__': | |
2558 | sys.exit(sys.exec_prefix) | |
2559 | ||
2560 | _ACEOF | |
2561 | ac_ext=c | |
2562 | ac_cpp='$CPP $CPPFLAGS' | |
2563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2566 | fi | |
2567 | ||
2568 | fi | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_prefix" >&5 | |
2570 | $as_echo "$pc_cv_python_exec_prefix" >&6; } | |
2571 | PYTHON_EXEC_PREFIX=$pc_cv_python_exec_prefix | |
2572 | ||
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python extension module directory" >&5 | |
2574 | $as_echo_n "checking for Python extension module directory... " >&6; } | |
2575 | if ${pc_cv_python_exec_dir+:} false; then : | |
2576 | $as_echo_n "(cached) " >&6 | |
2577 | else | |
2578 | ac_ext=py | |
2579 | ac_compile='chmod +x conftest.$ac_ext >&5' | |
2580 | ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' | |
2581 | if test "x$pc_cv_python_exec_prefix" = xNONE | |
2582 | then | |
2583 | pc_py_exec_prefix=$pc_cv_python_prefix | |
2584 | else | |
2585 | pc_py_exec_prefix=$pc_cv_python_exec_prefix | |
2586 | fi | |
2587 | cat > conftest.$ac_ext <<_ACEOF | |
2588 | ||
2589 | #!$PYTHON | |
2590 | import sys | |
2591 | from platform import python_implementation | |
2592 | # sysconfig in CPython 2.7 doesn't work in virtualenv | |
2593 | # <https://github.com/pypa/virtualenv/issues/118> | |
2594 | try: | |
2595 | import sysconfig | |
2596 | except: | |
2597 | can_use_sysconfig = False | |
2598 | else: | |
2599 | can_use_sysconfig = True | |
2600 | if can_use_sysconfig: | |
2601 | if python_implementation() == "CPython" and sys.version[:3] == '2.7': | |
2602 | can_use_sysconfig = False | |
2603 | if not can_use_sysconfig: | |
2604 | from distutils import sysconfig | |
2605 | sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py__exec_prefix') | |
2606 | else: | |
2607 | sitedir = sysconfig.get_path('purelib', vars={'platbase':'$pc_py_exec_prefix'}) | |
2608 | ||
2609 | if __name__ == '__main__': | |
2610 | sys.stdout.write(sitedir) | |
2611 | ||
2612 | _ACEOF | |
2613 | pc_cv_python_exec_dir=`$PYTHON conftest.py` | |
2614 | ac_ext=c | |
2615 | ac_cpp='$CPP $CPPFLAGS' | |
2616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2619 | case $pc_cv_python_exec_dir in | |
2620 | $pc_py_exec_prefix*) | |
2621 | pc__strip_prefix=`echo "$pc_py_exec_prefix" | sed 's|.|.|g'` | |
2622 | pc_cv_python_exec_dir=`echo "$pc_cv_python_exec_dir" | sed "s,^$pc__strip_prefix/,,"` | |
2623 | ;; | |
2624 | *) | |
2625 | case $pc_py_exec_prefix in | |
2626 | /usr|/System*) ;; | |
2627 | *) | |
2628 | pc_cv_python_exec_dir=lib/python$PYTHON_VERSION/site-packages | |
2629 | ;; | |
2630 | esac | |
2631 | ;; | |
2632 | esac | |
2633 | ||
2634 | fi | |
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_dir" >&5 | |
2636 | $as_echo "$pc_cv_python_exec_dir" >&6; } | |
2637 | pyexecdir=\${exec_prefix}/$pc_cv_python_pyexecdir | |
2638 | ||
2639 | pkgpyexecdir=\${pyexecdir}/$PACKAGE | |
2640 | ||
2641 | ||
2642 | ||
2643 | ||
2644 | ||
2645 | # Check for python-lxml module | |
2646 | ||
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 'lxml' library" >&5 | |
2648 | $as_echo_n "checking for Python 'lxml' library... " >&6; } | |
2649 | if ${pc_cv_python_module_lxml+:} false; then : | |
2650 | $as_echo_n "(cached) " >&6 | |
2651 | else | |
2652 | ac_ext=py | |
2653 | ac_compile='chmod +x conftest.$ac_ext >&5' | |
2654 | ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' | |
2655 | if test "$cross_compiling" = yes; then : | |
2656 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2657 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2658 | as_fn_error $? "cannot run test program while cross compiling | |
2659 | See \`config.log' for more details" "$LINENO" 5; } | |
2660 | else | |
2661 | cat > conftest.$ac_ext <<_ACEOF | |
2662 | #!$PYTHON | |
2663 | import sys | |
2664 | try: | |
2665 | import lxml | |
2666 | except: | |
2667 | sys.exit(1) | |
2668 | else: | |
2669 | sys.exit(0) | |
2670 | ||
2671 | ||
2672 | _ACEOF | |
2673 | if ac_fn_py_try_run "$LINENO"; then : | |
2674 | pc_cv_python_module_lxml="yes" | |
2675 | else | |
2676 | pc_cv_python_module_lxml="no" | |
2677 | fi | |
2678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2679 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2680 | fi | |
2681 | ||
2682 | ac_ext=c | |
2683 | ac_cpp='$CPP $CPPFLAGS' | |
2684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2687 | ||
2688 | fi | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_lxml" >&5 | |
2690 | $as_echo "$pc_cv_python_module_lxml" >&6; } | |
2691 | if test "$pc_cv_python_module_lxml" = "no"; then : | |
2692 | as_fn_error $? "python-lxml is required" "$LINENO" 5 | |
2693 | fi | |
2694 | ||
2695 | ||
2696 | # Check for the Python Imaging Library | |
2697 | ||
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 'Image' library" >&5 | |
2699 | $as_echo_n "checking for Python 'Image' library... " >&6; } | |
2700 | if ${pc_cv_python_module_Image+:} false; then : | |
2701 | $as_echo_n "(cached) " >&6 | |
2702 | else | |
2703 | ac_ext=py | |
2704 | ac_compile='chmod +x conftest.$ac_ext >&5' | |
2705 | ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' | |
2706 | if test "$cross_compiling" = yes; then : | |
2707 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2709 | as_fn_error $? "cannot run test program while cross compiling | |
2710 | See \`config.log' for more details" "$LINENO" 5; } | |
2711 | else | |
2712 | cat > conftest.$ac_ext <<_ACEOF | |
2713 | #!$PYTHON | |
2714 | import sys | |
2715 | try: | |
2716 | import Image | |
2717 | except: | |
2718 | sys.exit(1) | |
2719 | else: | |
2720 | sys.exit(0) | |
2721 | ||
2722 | ||
2723 | _ACEOF | |
2724 | if ac_fn_py_try_run "$LINENO"; then : | |
2725 | pc_cv_python_module_Image="yes" | |
2726 | else | |
2727 | pc_cv_python_module_Image="no" | |
2728 | fi | |
2729 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2730 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2731 | fi | |
2732 | ||
2733 | ac_ext=c | |
2734 | ac_cpp='$CPP $CPPFLAGS' | |
2735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2738 | ||
2739 | fi | |
2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_Image" >&5 | |
2741 | $as_echo "$pc_cv_python_module_Image" >&6; } | |
2742 | if test "$pc_cv_python_module_Image" = "no"; then : | |
2743 | as_fn_error $? "Python Imaging Library is required" "$LINENO" 5 | |
2744 | fi | |
2745 | ||
2746 | ||
2747 | ||
2748 | ||
2749 | ac_config_files="$ac_config_files Makefile setup.py" | |
2750 | ||
2751 | cat >confcache <<\_ACEOF | |
2752 | # This file is a shell script that caches the results of configure | |
2753 | # tests run on this system so they can be shared between configure | |
2754 | # scripts and configure runs, see configure's option --config-cache. | |
2755 | # It is not useful on other systems. If it contains results you don't | |
2756 | # want to keep, you may remove or edit it. | |
2757 | # | |
2758 | # config.status only pays attention to the cache file if you give it | |
2759 | # the --recheck option to rerun configure. | |
2760 | # | |
2761 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
2762 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2763 | # following values. | |
2764 | ||
2765 | _ACEOF | |
2766 | ||
2767 | # The following way of writing the cache mishandles newlines in values, | |
2768 | # but we know of no workaround that is simple, portable, and efficient. | |
2769 | # So, we kill variables containing newlines. | |
2770 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2771 | # and sets the high bit in the cache file unless we assign to the vars. | |
2772 | ( | |
2773 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
2774 | eval ac_val=\$$ac_var | |
2775 | case $ac_val in #( | |
2776 | *${as_nl}*) | |
2777 | case $ac_var in #( | |
2778 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2779 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2780 | esac | |
2781 | case $ac_var in #( | |
2782 | _ | IFS | as_nl) ;; #( | |
2783 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2784 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2785 | esac ;; | |
2786 | esac | |
2787 | done | |
2788 | ||
2789 | (set) 2>&1 | | |
2790 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
2791 | *${as_nl}ac_space=\ *) | |
2792 | # `set' does not quote correctly, so add quotes: double-quote | |
2793 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
2794 | sed -n \ | |
2795 | "s/'/'\\\\''/g; | |
2796 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2797 | ;; #( | |
2798 | *) | |
2799 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2800 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2801 | ;; | |
2802 | esac | | |
2803 | sort | |
2804 | ) | | |
2805 | sed ' | |
2806 | /^ac_cv_env_/b end | |
2807 | t clear | |
2808 | :clear | |
2809 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
2810 | t end | |
2811 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
2812 | :end' >>confcache | |
2813 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
2814 | if test -w "$cache_file"; then | |
2815 | if test "x$cache_file" != "x/dev/null"; then | |
2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
2817 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
2818 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
2819 | cat confcache >"$cache_file" | |
2820 | else | |
2821 | case $cache_file in #( | |
2822 | */* | ?:*) | |
2823 | mv -f confcache "$cache_file"$$ && | |
2824 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
2825 | *) | |
2826 | mv -f confcache "$cache_file" ;; | |
2827 | esac | |
2828 | fi | |
2829 | fi | |
2830 | else | |
2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
2832 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
2833 | fi | |
2834 | fi | |
2835 | rm -f confcache | |
2836 | ||
2837 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2838 | # Let make expand exec_prefix. | |
2839 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2840 | ||
2841 | # Transform confdefs.h into DEFS. | |
2842 | # Protect against shell expansion while executing Makefile rules. | |
2843 | # Protect against Makefile macro expansion. | |
2844 | # | |
2845 | # If the first sed substitution is executed (which looks for macros that | |
2846 | # take arguments), then branch to the quote section. Otherwise, | |
2847 | # look for a macro that doesn't take arguments. | |
2848 | ac_script=' | |
2849 | :mline | |
2850 | /\\$/{ | |
2851 | N | |
2852 | s,\\\n,, | |
2853 | b mline | |
2854 | } | |
2855 | t clear | |
2856 | :clear | |
2857 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
2858 | t quote | |
2859 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
2860 | t quote | |
2861 | b any | |
2862 | :quote | |
2863 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
2864 | s/\[/\\&/g | |
2865 | s/\]/\\&/g | |
2866 | s/\$/$$/g | |
2867 | H | |
2868 | :any | |
2869 | ${ | |
2870 | g | |
2871 | s/^\n// | |
2872 | s/\n/ /g | |
2873 | p | |
2874 | } | |
2875 | ' | |
2876 | DEFS=`sed -n "$ac_script" confdefs.h` | |
2877 | ||
2878 | ||
2879 | ac_libobjs= | |
2880 | ac_ltlibobjs= | |
2881 | U= | |
2882 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
2883 | # 1. Remove the extension, and $U if already installed. | |
2884 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
2885 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
2886 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
2887 | # will be set to the directory where LIBOBJS objects are built. | |
2888 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
2889 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
2890 | done | |
2891 | LIBOBJS=$ac_libobjs | |
2892 | ||
2893 | LTLIBOBJS=$ac_ltlibobjs | |
2894 | ||
2895 | ||
2896 | ||
2897 | : "${CONFIG_STATUS=./config.status}" | |
2898 | ac_write_fail=0 | |
2899 | ac_clean_files_save=$ac_clean_files | |
2900 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
2902 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
2903 | as_write_fail=0 | |
2904 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
2905 | #! $SHELL | |
2906 | # Generated by $as_me. | |
2907 | # Run this file to recreate the current configuration. | |
2908 | # Compiler output produced by configure, useful for debugging | |
2909 | # configure, is in config.log if it exists. | |
2910 | ||
2911 | debug=false | |
2912 | ac_cs_recheck=false | |
2913 | ac_cs_silent=false | |
2914 | ||
2915 | SHELL=\${CONFIG_SHELL-$SHELL} | |
2916 | export SHELL | |
2917 | _ASEOF | |
2918 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
2919 | ## -------------------- ## | |
2920 | ## M4sh Initialization. ## | |
2921 | ## -------------------- ## | |
2922 | ||
2923 | # Be more Bourne compatible | |
2924 | DUALCASE=1; export DUALCASE # for MKS sh | |
2925 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
2926 | emulate sh | |
2927 | NULLCMD=: | |
2928 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
2929 | # is contrary to our usage. Disable this feature. | |
2930 | alias -g '${1+"$@"}'='"$@"' | |
2931 | setopt NO_GLOB_SUBST | |
2932 | else | |
2933 | case `(set -o) 2>/dev/null` in #( | |
2934 | *posix*) : | |
2935 | set -o posix ;; #( | |
2936 | *) : | |
2937 | ;; | |
2938 | esac | |
2939 | fi | |
2940 | ||
2941 | ||
2942 | as_nl=' | |
2943 | ' | |
2944 | export as_nl | |
2945 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
2946 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
2947 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
2948 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
2949 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
2950 | # but without wasting forks for bash or zsh. | |
2951 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
2952 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
2953 | as_echo='print -r --' | |
2954 | as_echo_n='print -rn --' | |
2955 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
2956 | as_echo='printf %s\n' | |
2957 | as_echo_n='printf %s' | |
2958 | else | |
2959 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
2960 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
2961 | as_echo_n='/usr/ucb/echo -n' | |
2962 | else | |
2963 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
2964 | as_echo_n_body='eval | |
2965 | arg=$1; | |
2966 | case $arg in #( | |
2967 | *"$as_nl"*) | |
2968 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
2969 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
2970 | esac; | |
2971 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
2972 | ' | |
2973 | export as_echo_n_body | |
2974 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
2975 | fi | |
2976 | export as_echo_body | |
2977 | as_echo='sh -c $as_echo_body as_echo' | |
2978 | fi | |
2979 | ||
2980 | # The user is always right. | |
2981 | if test "${PATH_SEPARATOR+set}" != set; then | |
2982 | PATH_SEPARATOR=: | |
2983 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
2984 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
2985 | PATH_SEPARATOR=';' | |
2986 | } | |
2987 | fi | |
2988 | ||
2989 | ||
2990 | # IFS | |
2991 | # We need space, tab and new line, in precisely that order. Quoting is | |
2992 | # there to prevent editors from complaining about space-tab. | |
2993 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
2994 | # splitting by setting IFS to empty value.) | |
2995 | IFS=" "" $as_nl" | |
2996 | ||
2997 | # Find who we are. Look in the path if we contain no directory separator. | |
2998 | as_myself= | |
2999 | case $0 in #(( | |
3000 | *[\\/]* ) as_myself=$0 ;; | |
3001 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3002 | for as_dir in $PATH | |
3003 | do | |
3004 | IFS=$as_save_IFS | |
3005 | test -z "$as_dir" && as_dir=. | |
3006 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3007 | done | |
3008 | IFS=$as_save_IFS | |
3009 | ||
3010 | ;; | |
3011 | esac | |
3012 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3013 | # in which case we are not to be found in the path. | |
3014 | if test "x$as_myself" = x; then | |
3015 | as_myself=$0 | |
3016 | fi | |
3017 | if test ! -f "$as_myself"; then | |
3018 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3019 | exit 1 | |
3020 | fi | |
3021 | ||
3022 | # Unset variables that we do not need and which cause bugs (e.g. in | |
3023 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
3024 | # suppresses any "Segmentation fault" message there. '((' could | |
3025 | # trigger a bug in pdksh 5.2.14. | |
3026 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
3027 | do eval test x\${$as_var+set} = xset \ | |
3028 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
3029 | done | |
3030 | PS1='$ ' | |
3031 | PS2='> ' | |
3032 | PS4='+ ' | |
3033 | ||
3034 | # NLS nuisances. | |
3035 | LC_ALL=C | |
3036 | export LC_ALL | |
3037 | LANGUAGE=C | |
3038 | export LANGUAGE | |
3039 | ||
3040 | # CDPATH. | |
3041 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
3042 | ||
3043 | ||
3044 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
3045 | # ---------------------------------------- | |
3046 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
3047 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
3048 | # script with STATUS, using 1 if that was 0. | |
3049 | as_fn_error () | |
3050 | { | |
3051 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
3052 | if test "$4"; then | |
3053 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3054 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
3055 | fi | |
3056 | $as_echo "$as_me: error: $2" >&2 | |
3057 | as_fn_exit $as_status | |
3058 | } # as_fn_error | |
3059 | ||
3060 | ||
3061 | # as_fn_set_status STATUS | |
3062 | # ----------------------- | |
3063 | # Set $? to STATUS, without forking. | |
3064 | as_fn_set_status () | |
3065 | { | |
3066 | return $1 | |
3067 | } # as_fn_set_status | |
3068 | ||
3069 | # as_fn_exit STATUS | |
3070 | # ----------------- | |
3071 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
3072 | as_fn_exit () | |
3073 | { | |
3074 | set +e | |
3075 | as_fn_set_status $1 | |
3076 | exit $1 | |
3077 | } # as_fn_exit | |
3078 | ||
3079 | # as_fn_unset VAR | |
3080 | # --------------- | |
3081 | # Portably unset VAR. | |
3082 | as_fn_unset () | |
3083 | { | |
3084 | { eval $1=; unset $1;} | |
3085 | } | |
3086 | as_unset=as_fn_unset | |
3087 | # as_fn_append VAR VALUE | |
3088 | # ---------------------- | |
3089 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
3090 | # advantage of any shell optimizations that allow amortized linear growth over | |
3091 | # repeated appends, instead of the typical quadratic growth present in naive | |
3092 | # implementations. | |
3093 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
3094 | eval 'as_fn_append () | |
3095 | { | |
3096 | eval $1+=\$2 | |
3097 | }' | |
3098 | else | |
3099 | as_fn_append () | |
3100 | { | |
3101 | eval $1=\$$1\$2 | |
3102 | } | |
3103 | fi # as_fn_append | |
3104 | ||
3105 | # as_fn_arith ARG... | |
3106 | # ------------------ | |
3107 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
3108 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
3109 | # must be portable across $(()) and expr. | |
3110 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
3111 | eval 'as_fn_arith () | |
3112 | { | |
3113 | as_val=$(( $* )) | |
3114 | }' | |
3115 | else | |
3116 | as_fn_arith () | |
3117 | { | |
3118 | as_val=`expr "$@" || test $? -eq 1` | |
3119 | } | |
3120 | fi # as_fn_arith | |
3121 | ||
3122 | ||
3123 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
3124 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3125 | as_expr=expr | |
3126 | else | |
3127 | as_expr=false | |
3128 | fi | |
3129 | ||
3130 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
3131 | as_basename=basename | |
3132 | else | |
3133 | as_basename=false | |
3134 | fi | |
3135 | ||
3136 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
3137 | as_dirname=dirname | |
3138 | else | |
3139 | as_dirname=false | |
3140 | fi | |
3141 | ||
3142 | as_me=`$as_basename -- "$0" || | |
3143 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3144 | X"$0" : 'X\(//\)$' \| \ | |
3145 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
3146 | $as_echo X/"$0" | | |
3147 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
3148 | s//\1/ | |
3149 | q | |
3150 | } | |
3151 | /^X\/\(\/\/\)$/{ | |
3152 | s//\1/ | |
3153 | q | |
3154 | } | |
3155 | /^X\/\(\/\).*/{ | |
3156 | s//\1/ | |
3157 | q | |
3158 | } | |
3159 | s/.*/./; q'` | |
3160 | ||
3161 | # Avoid depending upon Character Ranges. | |
3162 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3163 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3164 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3165 | as_cr_digits='0123456789' | |
3166 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3167 | ||
3168 | ECHO_C= ECHO_N= ECHO_T= | |
3169 | case `echo -n x` in #((((( | |
3170 | -n*) | |
3171 | case `echo 'xy\c'` in | |
3172 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
3173 | xy) ECHO_C='\c';; | |
3174 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
3175 | ECHO_T=' ';; | |
3176 | esac;; | |
3177 | *) | |
3178 | ECHO_N='-n';; | |
3179 | esac | |
3180 | ||
3181 | rm -f conf$$ conf$$.exe conf$$.file | |
3182 | if test -d conf$$.dir; then | |
3183 | rm -f conf$$.dir/conf$$.file | |
3184 | else | |
3185 | rm -f conf$$.dir | |
3186 | mkdir conf$$.dir 2>/dev/null | |
3187 | fi | |
3188 | if (echo >conf$$.file) 2>/dev/null; then | |
3189 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3190 | as_ln_s='ln -s' | |
3191 | # ... but there are two gotchas: | |
3192 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3193 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
3194 | # In both cases, we have to default to `cp -pR'. | |
3195 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
3196 | as_ln_s='cp -pR' | |
3197 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
3198 | as_ln_s=ln | |
3199 | else | |
3200 | as_ln_s='cp -pR' | |
3201 | fi | |
3202 | else | |
3203 | as_ln_s='cp -pR' | |
3204 | fi | |
3205 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
3206 | rmdir conf$$.dir 2>/dev/null | |
3207 | ||
3208 | ||
3209 | # as_fn_mkdir_p | |
3210 | # ------------- | |
3211 | # Create "$as_dir" as a directory, including parents if necessary. | |
3212 | as_fn_mkdir_p () | |
3213 | { | |
3214 | ||
3215 | case $as_dir in #( | |
3216 | -*) as_dir=./$as_dir;; | |
3217 | esac | |
3218 | test -d "$as_dir" || eval $as_mkdir_p || { | |
3219 | as_dirs= | |
3220 | while :; do | |
3221 | case $as_dir in #( | |
3222 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
3223 | *) as_qdir=$as_dir;; | |
3224 | esac | |
3225 | as_dirs="'$as_qdir' $as_dirs" | |
3226 | as_dir=`$as_dirname -- "$as_dir" || | |
3227 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3228 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
3229 | X"$as_dir" : 'X\(//\)$' \| \ | |
3230 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
3231 | $as_echo X"$as_dir" | | |
3232 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3233 | s//\1/ | |
3234 | q | |
3235 | } | |
3236 | /^X\(\/\/\)[^/].*/{ | |
3237 | s//\1/ | |
3238 | q | |
3239 | } | |
3240 | /^X\(\/\/\)$/{ | |
3241 | s//\1/ | |
3242 | q | |
3243 | } | |
3244 | /^X\(\/\).*/{ | |
3245 | s//\1/ | |
3246 | q | |
3247 | } | |
3248 | s/.*/./; q'` | |
3249 | test -d "$as_dir" && break | |
3250 | done | |
3251 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
3252 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
3253 | ||
3254 | ||
3255 | } # as_fn_mkdir_p | |
3256 | if mkdir -p . 2>/dev/null; then | |
3257 | as_mkdir_p='mkdir -p "$as_dir"' | |
3258 | else | |
3259 | test -d ./-p && rmdir ./-p | |
3260 | as_mkdir_p=false | |
3261 | fi | |
3262 | ||
3263 | ||
3264 | # as_fn_executable_p FILE | |
3265 | # ----------------------- | |
3266 | # Test if FILE is an executable regular file. | |
3267 | as_fn_executable_p () | |
3268 | { | |
3269 | test -f "$1" && test -x "$1" | |
3270 | } # as_fn_executable_p | |
3271 | as_test_x='test -x' | |
3272 | as_executable_p=as_fn_executable_p | |
3273 | ||
3274 | # Sed expression to map a string onto a valid CPP name. | |
3275 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3276 | ||
3277 | # Sed expression to map a string onto a valid variable name. | |
3278 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3279 | ||
3280 | ||
3281 | exec 6>&1 | |
3282 | ## ----------------------------------- ## | |
3283 | ## Main body of $CONFIG_STATUS script. ## | |
3284 | ## ----------------------------------- ## | |
3285 | _ASEOF | |
3286 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3287 | ||
3288 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3289 | # Save the log message, to keep $0 and so on meaningful, and to | |
3290 | # report actual input values of CONFIG_FILES etc. instead of their | |
3291 | # values after options handling. | |
3292 | ac_log=" | |
3293 | This file was extended by mediagoblin $as_me 0.4.0.dev, which was | |
3294 | generated by GNU Autoconf 2.69. Invocation command line was | |
3295 | ||
3296 | CONFIG_FILES = $CONFIG_FILES | |
3297 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3298 | CONFIG_LINKS = $CONFIG_LINKS | |
3299 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3300 | $ $0 $@ | |
3301 | ||
3302 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3303 | " | |
3304 | ||
3305 | _ACEOF | |
3306 | ||
3307 | case $ac_config_files in *" | |
3308 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
3309 | esac | |
3310 | ||
3311 | ||
3312 | ||
3313 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3314 | # Files that config.status was made for. | |
3315 | config_files="$ac_config_files" | |
3316 | ||
3317 | _ACEOF | |
3318 | ||
3319 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3320 | ac_cs_usage="\ | |
3321 | \`$as_me' instantiates files and other configuration actions | |
3322 | from templates according to the current configuration. Unless the files | |
3323 | and actions are specified as TAGs, all are instantiated by default. | |
3324 | ||
3325 | Usage: $0 [OPTION]... [TAG]... | |
3326 | ||
3327 | -h, --help print this help, then exit | |
3328 | -V, --version print version number and configuration settings, then exit | |
3329 | --config print configuration, then exit | |
3330 | -q, --quiet, --silent | |
3331 | do not print progress messages | |
3332 | -d, --debug don't remove temporary files | |
3333 | --recheck update $as_me by reconfiguring in the same conditions | |
3334 | --file=FILE[:TEMPLATE] | |
3335 | instantiate the configuration file FILE | |
3336 | ||
3337 | Configuration files: | |
3338 | $config_files | |
3339 | ||
3340 | Report bugs to <cwebber@gnu.org>." | |
3341 | ||
3342 | _ACEOF | |
3343 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3344 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
3345 | ac_cs_version="\\ | |
3346 | mediagoblin config.status 0.4.0.dev | |
3347 | configured by $0, generated by GNU Autoconf 2.69, | |
3348 | with options \\"\$ac_cs_config\\" | |
3349 | ||
3350 | Copyright (C) 2012 Free Software Foundation, Inc. | |
3351 | This config.status script is free software; the Free Software Foundation | |
3352 | gives unlimited permission to copy, distribute and modify it." | |
3353 | ||
3354 | ac_pwd='$ac_pwd' | |
3355 | srcdir='$srcdir' | |
3356 | INSTALL='$INSTALL' | |
3357 | MKDIR_P='$MKDIR_P' | |
3358 | test -n "\$AWK" || AWK=awk | |
3359 | _ACEOF | |
3360 | ||
3361 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3362 | # The default lists apply if the user does not specify any file. | |
3363 | ac_need_defaults=: | |
3364 | while test $# != 0 | |
3365 | do | |
3366 | case $1 in | |
3367 | --*=?*) | |
3368 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3369 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
3370 | ac_shift=: | |
3371 | ;; | |
3372 | --*=) | |
3373 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3374 | ac_optarg= | |
3375 | ac_shift=: | |
3376 | ;; | |
3377 | *) | |
3378 | ac_option=$1 | |
3379 | ac_optarg=$2 | |
3380 | ac_shift=shift | |
3381 | ;; | |
3382 | esac | |
3383 | ||
3384 | case $ac_option in | |
3385 | # Handling of the options. | |
3386 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3387 | ac_cs_recheck=: ;; | |
3388 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
3389 | $as_echo "$ac_cs_version"; exit ;; | |
3390 | --config | --confi | --conf | --con | --co | --c ) | |
3391 | $as_echo "$ac_cs_config"; exit ;; | |
3392 | --debug | --debu | --deb | --de | --d | -d ) | |
3393 | debug=: ;; | |
3394 | --file | --fil | --fi | --f ) | |
3395 | $ac_shift | |
3396 | case $ac_optarg in | |
3397 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3398 | '') as_fn_error $? "missing file argument" ;; | |
3399 | esac | |
3400 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
3401 | ac_need_defaults=false;; | |
3402 | --he | --h | --help | --hel | -h ) | |
3403 | $as_echo "$ac_cs_usage"; exit ;; | |
3404 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3405 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
3406 | ac_cs_silent=: ;; | |
3407 | ||
3408 | # This is an error. | |
3409 | -*) as_fn_error $? "unrecognized option: \`$1' | |
3410 | Try \`$0 --help' for more information." ;; | |
3411 | ||
3412 | *) as_fn_append ac_config_targets " $1" | |
3413 | ac_need_defaults=false ;; | |
3414 | ||
3415 | esac | |
3416 | shift | |
3417 | done | |
3418 | ||
3419 | ac_configure_extra_args= | |
3420 | ||
3421 | if $ac_cs_silent; then | |
3422 | exec 6>/dev/null | |
3423 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
3424 | fi | |
3425 | ||
3426 | _ACEOF | |
3427 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3428 | if \$ac_cs_recheck; then | |
3429 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
3430 | shift | |
3431 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
3432 | CONFIG_SHELL='$SHELL' | |
3433 | export CONFIG_SHELL | |
3434 | exec "\$@" | |
3435 | fi | |
3436 | ||
3437 | _ACEOF | |
3438 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3439 | exec 5>>config.log | |
3440 | { | |
3441 | echo | |
3442 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3443 | ## Running $as_me. ## | |
3444 | _ASBOX | |
3445 | $as_echo "$ac_log" | |
3446 | } >&5 | |
3447 | ||
3448 | _ACEOF | |
3449 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3450 | _ACEOF | |
3451 | ||
3452 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3453 | ||
3454 | # Handling of arguments. | |
3455 | for ac_config_target in $ac_config_targets | |
3456 | do | |
3457 | case $ac_config_target in | |
3458 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3459 | "setup.py") CONFIG_FILES="$CONFIG_FILES setup.py" ;; | |
3460 | ||
3461 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
3462 | esac | |
3463 | done | |
3464 | ||
3465 | ||
3466 | # If the user did not use the arguments to specify the items to instantiate, | |
3467 | # then the envvar interface is used. Set only those that are not. | |
3468 | # We use the long form for the default assignment because of an extremely | |
3469 | # bizarre bug on SunOS 4.1.3. | |
3470 | if $ac_need_defaults; then | |
3471 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3472 | fi | |
3473 | ||
3474 | # Have a temporary directory for convenience. Make it in the build tree | |
3475 | # simply because there is no reason against having it here, and in addition, | |
3476 | # creating and moving files from /tmp can sometimes cause problems. | |
3477 | # Hook for its removal unless debugging. | |
3478 | # Note that there is a small window in which the directory will not be cleaned: | |
3479 | # after its creation but before its name has been assigned to `$tmp'. | |
3480 | $debug || | |
3481 | { | |
3482 | tmp= ac_tmp= | |
3483 | trap 'exit_status=$? | |
3484 | : "${ac_tmp:=$tmp}" | |
3485 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
3486 | ' 0 | |
3487 | trap 'as_fn_exit 1' 1 2 13 15 | |
3488 | } | |
3489 | # Create a (secure) tmp directory for tmp files. | |
3490 | ||
3491 | { | |
3492 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
3493 | test -d "$tmp" | |
3494 | } || | |
3495 | { | |
3496 | tmp=./conf$$-$RANDOM | |
3497 | (umask 077 && mkdir "$tmp") | |
3498 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
3499 | ac_tmp=$tmp | |
3500 | ||
3501 | # Set up the scripts for CONFIG_FILES section. | |
3502 | # No need to generate them if there are no CONFIG_FILES. | |
3503 | # This happens for instance with `./config.status config.h'. | |
3504 | if test -n "$CONFIG_FILES"; then | |
3505 | ||
3506 | ||
3507 | ac_cr=`echo X | tr X '\015'` | |
3508 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
3509 | # But we know of no other shell where ac_cr would be empty at this | |
3510 | # point, so we can use a bashism as a fallback. | |
3511 | if test "x$ac_cr" = x; then | |
3512 | eval ac_cr=\$\'\\r\' | |
3513 | fi | |
3514 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
3515 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
3516 | ac_cs_awk_cr='\\r' | |
3517 | else | |
3518 | ac_cs_awk_cr=$ac_cr | |
3519 | fi | |
3520 | ||
3521 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
3522 | _ACEOF | |
3523 | ||
3524 | ||
3525 | { | |
3526 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
3527 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
3528 | echo "_ACEOF" | |
3529 | } >conf$$subs.sh || | |
3530 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3531 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
3532 | ac_delim='%!_!# ' | |
3533 | for ac_last_try in false false false false false :; do | |
3534 | . ./conf$$subs.sh || | |
3535 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3536 | ||
3537 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
3538 | if test $ac_delim_n = $ac_delim_num; then | |
3539 | break | |
3540 | elif $ac_last_try; then | |
3541 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3542 | else | |
3543 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
3544 | fi | |
3545 | done | |
3546 | rm -f conf$$subs.sh | |
3547 | ||
3548 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3549 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
3550 | _ACEOF | |
3551 | sed -n ' | |
3552 | h | |
3553 | s/^/S["/; s/!.*/"]=/ | |
3554 | p | |
3555 | g | |
3556 | s/^[^!]*!// | |
3557 | :repl | |
3558 | t repl | |
3559 | s/'"$ac_delim"'$// | |
3560 | t delim | |
3561 | :nl | |
3562 | h | |
3563 | s/\(.\{148\}\)..*/\1/ | |
3564 | t more1 | |
3565 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
3566 | p | |
3567 | n | |
3568 | b repl | |
3569 | :more1 | |
3570 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3571 | p | |
3572 | g | |
3573 | s/.\{148\}// | |
3574 | t nl | |
3575 | :delim | |
3576 | h | |
3577 | s/\(.\{148\}\)..*/\1/ | |
3578 | t more2 | |
3579 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
3580 | p | |
3581 | b | |
3582 | :more2 | |
3583 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3584 | p | |
3585 | g | |
3586 | s/.\{148\}// | |
3587 | t delim | |
3588 | ' <conf$$subs.awk | sed ' | |
3589 | /^[^""]/{ | |
3590 | N | |
3591 | s/\n// | |
3592 | } | |
3593 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
3594 | rm -f conf$$subs.awk | |
3595 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3596 | _ACAWK | |
3597 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
3598 | for (key in S) S_is_set[key] = 1 | |
3599 | FS = "\a" | |
3600 | ||
3601 | } | |
3602 | { | |
3603 | line = $ 0 | |
3604 | nfields = split(line, field, "@") | |
3605 | substed = 0 | |
3606 | len = length(field[1]) | |
3607 | for (i = 2; i < nfields; i++) { | |
3608 | key = field[i] | |
3609 | keylen = length(key) | |
3610 | if (S_is_set[key]) { | |
3611 | value = S[key] | |
3612 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
3613 | len += length(value) + length(field[++i]) | |
3614 | substed = 1 | |
3615 | } else | |
3616 | len += 1 + keylen | |
3617 | } | |
3618 | ||
3619 | print line | |
3620 | } | |
3621 | ||
3622 | _ACAWK | |
3623 | _ACEOF | |
3624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3625 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
3626 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
3627 | else | |
3628 | cat | |
3629 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
3630 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
3631 | _ACEOF | |
3632 | ||
3633 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
3634 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
3635 | # trailing colons and then remove the whole line if VPATH becomes empty | |
3636 | # (actually we leave an empty line to preserve line numbers). | |
3637 | if test "x$srcdir" = x.; then | |
3638 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
3639 | h | |
3640 | s/// | |
3641 | s/^/:/ | |
3642 | s/[ ]*$/:/ | |
3643 | s/:\$(srcdir):/:/g | |
3644 | s/:\${srcdir}:/:/g | |
3645 | s/:@srcdir@:/:/g | |
3646 | s/^:*// | |
3647 | s/:*$// | |
3648 | x | |
3649 | s/\(=[ ]*\).*/\1/ | |
3650 | G | |
3651 | s/\n// | |
3652 | s/^[^=]*=[ ]*$// | |
3653 | }' | |
3654 | fi | |
3655 | ||
3656 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3657 | fi # test -n "$CONFIG_FILES" | |
3658 | ||
3659 | ||
3660 | eval set X " :F $CONFIG_FILES " | |
3661 | shift | |
3662 | for ac_tag | |
3663 | do | |
3664 | case $ac_tag in | |
3665 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
3666 | esac | |
3667 | case $ac_mode$ac_tag in | |
3668 | :[FHL]*:*);; | |
3669 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
3670 | :[FH]-) ac_tag=-:-;; | |
3671 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
3672 | esac | |
3673 | ac_save_IFS=$IFS | |
3674 | IFS=: | |
3675 | set x $ac_tag | |
3676 | IFS=$ac_save_IFS | |
3677 | shift | |
3678 | ac_file=$1 | |
3679 | shift | |
3680 | ||
3681 | case $ac_mode in | |
3682 | :L) ac_source=$1;; | |
3683 | :[FH]) | |
3684 | ac_file_inputs= | |
3685 | for ac_f | |
3686 | do | |
3687 | case $ac_f in | |
3688 | -) ac_f="$ac_tmp/stdin";; | |
3689 | *) # Look for the file first in the build tree, then in the source tree | |
3690 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
3691 | # because $ac_f cannot contain `:'. | |
3692 | test -f "$ac_f" || | |
3693 | case $ac_f in | |
3694 | [\\/$]*) false;; | |
3695 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
3696 | esac || | |
3697 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
3698 | esac | |
3699 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
3700 | as_fn_append ac_file_inputs " '$ac_f'" | |
3701 | done | |
3702 | ||
3703 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3704 | # use $as_me), people would be surprised to read: | |
3705 | # /* config.h. Generated by config.status. */ | |
3706 | configure_input='Generated from '` | |
3707 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
3708 | `' by configure.' | |
3709 | if test x"$ac_file" != x-; then | |
3710 | configure_input="$ac_file. $configure_input" | |
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
3712 | $as_echo "$as_me: creating $ac_file" >&6;} | |
3713 | fi | |
3714 | # Neutralize special characters interpreted by sed in replacement strings. | |
3715 | case $configure_input in #( | |
3716 | *\&* | *\|* | *\\* ) | |
3717 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
3718 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
3719 | *) ac_sed_conf_input=$configure_input;; | |
3720 | esac | |
3721 | ||
3722 | case $ac_tag in | |
3723 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
3724 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
3725 | esac | |
3726 | ;; | |
3727 | esac | |
3728 | ||
3729 | ac_dir=`$as_dirname -- "$ac_file" || | |
3730 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3731 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3732 | X"$ac_file" : 'X\(//\)$' \| \ | |
3733 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
3734 | $as_echo X"$ac_file" | | |
3735 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3736 | s//\1/ | |
3737 | q | |
3738 | } | |
3739 | /^X\(\/\/\)[^/].*/{ | |
3740 | s//\1/ | |
3741 | q | |
3742 | } | |
3743 | /^X\(\/\/\)$/{ | |
3744 | s//\1/ | |
3745 | q | |
3746 | } | |
3747 | /^X\(\/\).*/{ | |
3748 | s//\1/ | |
3749 | q | |
3750 | } | |
3751 | s/.*/./; q'` | |
3752 | as_dir="$ac_dir"; as_fn_mkdir_p | |
3753 | ac_builddir=. | |
3754 | ||
3755 | case "$ac_dir" in | |
3756 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3757 | *) | |
3758 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
3759 | # A ".." for each directory in $ac_dir_suffix. | |
3760 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
3761 | case $ac_top_builddir_sub in | |
3762 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3763 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
3764 | esac ;; | |
3765 | esac | |
3766 | ac_abs_top_builddir=$ac_pwd | |
3767 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
3768 | # for backward compatibility: | |
3769 | ac_top_builddir=$ac_top_build_prefix | |
3770 | ||
3771 | case $srcdir in | |
3772 | .) # We are building in place. | |
3773 | ac_srcdir=. | |
3774 | ac_top_srcdir=$ac_top_builddir_sub | |
3775 | ac_abs_top_srcdir=$ac_pwd ;; | |
3776 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3777 | ac_srcdir=$srcdir$ac_dir_suffix; | |
3778 | ac_top_srcdir=$srcdir | |
3779 | ac_abs_top_srcdir=$srcdir ;; | |
3780 | *) # Relative name. | |
3781 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
3782 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
3783 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3784 | esac | |
3785 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
3786 | ||
3787 | ||
3788 | case $ac_mode in | |
3789 | :F) | |
3790 | # | |
3791 | # CONFIG_FILE | |
3792 | # | |
3793 | ||
3794 | case $INSTALL in | |
3795 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3796 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
3797 | esac | |
3798 | ac_MKDIR_P=$MKDIR_P | |
3799 | case $MKDIR_P in | |
3800 | [\\/$]* | ?:[\\/]* ) ;; | |
3801 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
3802 | esac | |
3803 | _ACEOF | |
3804 | ||
3805 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3806 | # If the template does not know about datarootdir, expand it. | |
3807 | # FIXME: This hack should be removed a few years after 2.60. | |
3808 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
3809 | ac_sed_dataroot=' | |
3810 | /datarootdir/ { | |
3811 | p | |
3812 | q | |
3813 | } | |
3814 | /@datadir@/p | |
3815 | /@docdir@/p | |
3816 | /@infodir@/p | |
3817 | /@localedir@/p | |
3818 | /@mandir@/p' | |
3819 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
3820 | *datarootdir*) ac_datarootdir_seen=yes;; | |
3821 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
3823 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
3824 | _ACEOF | |
3825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3826 | ac_datarootdir_hack=' | |
3827 | s&@datadir@&$datadir&g | |
3828 | s&@docdir@&$docdir&g | |
3829 | s&@infodir@&$infodir&g | |
3830 | s&@localedir@&$localedir&g | |
3831 | s&@mandir@&$mandir&g | |
3832 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
3833 | esac | |
3834 | _ACEOF | |
3835 | ||
3836 | # Neutralize VPATH when `$srcdir' = `.'. | |
3837 | # Shell code in configure.ac might set extrasub. | |
3838 | # FIXME: do we really want to maintain this feature? | |
3839 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3840 | ac_sed_extra="$ac_vpsub | |
3841 | $extrasub | |
3842 | _ACEOF | |
3843 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3844 | :t | |
3845 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3846 | s|@configure_input@|$ac_sed_conf_input|;t t | |
3847 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
3848 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
3849 | s&@srcdir@&$ac_srcdir&;t t | |
3850 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
3851 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
3852 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
3853 | s&@builddir@&$ac_builddir&;t t | |
3854 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
3855 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
3856 | s&@INSTALL@&$ac_INSTALL&;t t | |
3857 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
3858 | $ac_datarootdir_hack | |
3859 | " | |
3860 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
3861 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
3862 | ||
3863 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
3864 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
3865 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
3866 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3868 | which seems to be undefined. Please make sure it is defined" >&5 | |
3869 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3870 | which seems to be undefined. Please make sure it is defined" >&2;} | |
3871 | ||
3872 | rm -f "$ac_tmp/stdin" | |
3873 | case $ac_file in | |
3874 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
3875 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
3876 | esac \ | |
3877 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
3878 | ;; | |
3879 | ||
3880 | ||
3881 | ||
3882 | esac | |
3883 | ||
3884 | done # for ac_tag | |
3885 | ||
3886 | ||
3887 | as_fn_exit 0 | |
3888 | _ACEOF | |
3889 | ac_clean_files=$ac_clean_files_save | |
3890 | ||
3891 | test $ac_write_fail = 0 || | |
3892 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
3893 | ||
3894 | ||
3895 | # configure is writing to config.log, and then calls config.status. | |
3896 | # config.status does its own redirection, appending to config.log. | |
3897 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
3898 | # by configure, so config.status won't be able to write to it; its | |
3899 | # output is simply discarded. So we exec the FD to /dev/null, | |
3900 | # effectively closing config.log, so it can be properly (re)opened and | |
3901 | # appended to by config.status. When coming back to configure, we | |
3902 | # need to make the FD available again. | |
3903 | if test "$no_create" != yes; then | |
3904 | ac_cs_success=: | |
3905 | ac_config_status_args= | |
3906 | test "$silent" = yes && | |
3907 | ac_config_status_args="$ac_config_status_args --quiet" | |
3908 | exec 5>/dev/null | |
3909 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
3910 | exec 5>>config.log | |
3911 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
3912 | # would make configure fail if this is the last instruction. | |
3913 | $ac_cs_success || as_fn_exit 1 | |
3914 | fi | |
3915 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
3917 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
3918 | fi | |
3919 |