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