add pyconfigure stuff
[mediagoblin.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mediagoblin 0.3.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='mediagoblin'
579 PACKAGE_TARNAME='mediagoblin'
580 PACKAGE_VERSION='0.3.1'
581 PACKAGE_STRING='mediagoblin 0.3.1'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
620
621 ac_subst_vars='am__EXEEXT_FALSE
622 am__EXEEXT_TRUE
623 LTLIBOBJS
624 LIBOBJS
625 pkgpyexecdir
626 pyexecdir
627 PYTHON_EXEC_PREFIX
628 pkgpythondir
629 pythondir
630 PYTHON_PREFIX
631 EGREP
632 GREP
633 CPP
634 am__fastdepCC_FALSE
635 am__fastdepCC_TRUE
636 CCDEPMODE
637 am__nodep
638 AMDEPBACKSLASH
639 AMDEP_FALSE
640 AMDEP_TRUE
641 am__quote
642 am__include
643 DEPDIR
644 OBJEXT
645 EXEEXT
646 ac_ct_CC
647 CPPFLAGS
648 LDFLAGS
649 CFLAGS
650 CC
651 PYTHON_INCLUDES
652 PYTHON_CONFIG
653 VIRTUALENV_FLAGS
654 VIRTUALENV
655 SPHINXBUILD
656 PYTHON
657 am__untar
658 am__tar
659 AMTAR
660 am__leading_dot
661 SET_MAKE
662 AWK
663 mkdir_p
664 MKDIR_P
665 INSTALL_STRIP_PROGRAM
666 STRIP
667 install_sh
668 MAKEINFO
669 AUTOHEADER
670 AUTOMAKE
671 AUTOCONF
672 ACLOCAL
673 VERSION
674 PACKAGE
675 CYGPATH_W
676 am__isrc
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 target_alias
681 host_alias
682 build_alias
683 LIBS
684 ECHO_T
685 ECHO_N
686 ECHO_C
687 DEFS
688 mandir
689 localedir
690 libdir
691 psdir
692 pdfdir
693 dvidir
694 htmldir
695 infodir
696 docdir
697 oldincludedir
698 includedir
699 localstatedir
700 sharedstatedir
701 sysconfdir
702 datadir
703 datarootdir
704 libexecdir
705 sbindir
706 bindir
707 program_transform_name
708 prefix
709 exec_prefix
710 PACKAGE_URL
711 PACKAGE_BUGREPORT
712 PACKAGE_STRING
713 PACKAGE_VERSION
714 PACKAGE_TARNAME
715 PACKAGE_NAME
716 PATH_SEPARATOR
717 SHELL'
718 ac_subst_files=''
719 ac_user_opts='
720 enable_option_checking
721 with_virtualenv
722 enable_dependency_tracking
723 '
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
727 PYTHON
728 VIRTUALENV_FLAGS
729 PYTHON_CONFIG
730 CC
731 CFLAGS
732 LDFLAGS
733 LIBS
734 CPPFLAGS
735 CPP'
736
737
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 ac_unrecognized_opts=
742 ac_unrecognized_sep=
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
745 cache_file=/dev/null
746 exec_prefix=NONE
747 no_create=
748 no_recursion=
749 prefix=NONE
750 program_prefix=NONE
751 program_suffix=NONE
752 program_transform_name=s,x,x,
753 silent=
754 site=
755 srcdir=
756 verbose=
757 x_includes=NONE
758 x_libraries=NONE
759
760 # Installation directory options.
761 # These are left unexpanded so users can "make install exec_prefix=/foo"
762 # and all the variables that are supposed to be based on exec_prefix
763 # by default will actually change.
764 # Use braces instead of parens because sh, perl, etc. also accept them.
765 # (The list follows the same order as the GNU Coding Standards.)
766 bindir='${exec_prefix}/bin'
767 sbindir='${exec_prefix}/sbin'
768 libexecdir='${exec_prefix}/libexec'
769 datarootdir='${prefix}/share'
770 datadir='${datarootdir}'
771 sysconfdir='${prefix}/etc'
772 sharedstatedir='${prefix}/com'
773 localstatedir='${prefix}/var'
774 includedir='${prefix}/include'
775 oldincludedir='/usr/include'
776 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
777 infodir='${datarootdir}/info'
778 htmldir='${docdir}'
779 dvidir='${docdir}'
780 pdfdir='${docdir}'
781 psdir='${docdir}'
782 libdir='${exec_prefix}/lib'
783 localedir='${datarootdir}/locale'
784 mandir='${datarootdir}/man'
785
786 ac_prev=
787 ac_dashdash=
788 for ac_option
789 do
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\$ac_option
793 ac_prev=
794 continue
795 fi
796
797 case $ac_option in
798 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 *=) ac_optarg= ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error $? "invalid feature name: $ac_useropt"
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
849 *"
850 "enable_$ac_useropt"
851 "*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
854 esac
855 eval enable_$ac_useropt=no ;;
856
857 -docdir | --docdir | --docdi | --doc | --do)
858 ac_prev=docdir ;;
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860 docdir=$ac_optarg ;;
861
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 ac_prev=dvidir ;;
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865 dvidir=$ac_optarg ;;
866
867 -enable-* | --enable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=\$ac_optarg ;;
882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
902
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
907
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
937
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1011
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=\$ac_optarg ;;
1086
1087 -without-* | --without-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=no ;;
1102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
1121 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122 Try \`$0 --help' for more information"
1123 ;;
1124
1125 *=*)
1126 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127 # Reject names that are not valid shell variable names.
1128 case $ac_envvar in #(
1129 '' | [0-9]* | *[!_$as_cr_alnum]* )
1130 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1131 esac
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
1137 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1141 ;;
1142
1143 esac
1144 done
1145
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 as_fn_error $? "missing argument to $ac_option"
1149 fi
1150
1151 if test -n "$ac_unrecognized_opts"; then
1152 case $enable_option_checking in
1153 no) ;;
1154 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 esac
1157 fi
1158
1159 # Check all directory arguments for consistency.
1160 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir
1164 do
1165 eval ac_val=\$$ac_var
1166 # Remove trailing slashes.
1167 case $ac_val in
1168 */ )
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
1171 esac
1172 # Be sure to have absolute directory names.
1173 case $ac_val in
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 esac
1177 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1178 done
1179
1180 # There might be people who depend on the old broken behavior: `$host'
1181 # used to hold the argument of --host etc.
1182 # FIXME: To remove some day.
1183 build=$build_alias
1184 host=$host_alias
1185 target=$target_alias
1186
1187 # FIXME: To remove some day.
1188 if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194 fi
1195
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199 test "$silent" = yes && exec 6>/dev/null
1200
1201
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 as_fn_error $? "working directory cannot be determined"
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 as_fn_error $? "pwd does not report name of working directory"
1208
1209
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$as_myself" ||
1215 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$as_myself" : 'X\(//\)[^/]' \| \
1217 X"$as_myself" : 'X\(//\)$' \| \
1218 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219 $as_echo X"$as_myself" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)$/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\).*/{
1233 s//\1/
1234 q
1235 }
1236 s/.*/./; q'`
1237 srcdir=$ac_confdir
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 srcdir=..
1240 fi
1241 else
1242 ac_srcdir_defaulted=no
1243 fi
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1247 fi
1248 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1251 pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1268
1269 #
1270 # Report the --help message.
1271 #
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1275 cat <<_ACEOF
1276 \`configure' configures mediagoblin 0.3.1 to adapt to many kinds of systems.
1277
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1282
1283 Defaults for the options are specified in brackets.
1284
1285 Configuration:
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking ...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300 [PREFIX]
1301
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1306
1307 For better control, use the options below.
1308
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
1324 --docdir=DIR documentation root [DATAROOTDIR/doc/mediagoblin]
1325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
1329 _ACEOF
1330
1331 cat <<\_ACEOF
1332
1333 Program names:
1334 --program-prefix=PREFIX prepend PREFIX to installed program names
1335 --program-suffix=SUFFIX append SUFFIX to installed program names
1336 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1337 _ACEOF
1338 fi
1339
1340 if test -n "$ac_init_help"; then
1341 case $ac_init_help in
1342 short | recursive ) echo "Configuration of mediagoblin 0.3.1:";;
1343 esac
1344 cat <<\_ACEOF
1345
1346 Optional Features:
1347 --disable-option-checking ignore unrecognized --enable/--with options
1348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1350 --enable-dependency-tracking
1351 do not reject slow dependency extractors
1352 --disable-dependency-tracking
1353 speeds up one-time build
1354
1355 Optional Packages:
1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1358 --with-virtualenv install to a Python virtualenv
1359
1360 Some influential environment variables:
1361 PYTHON the Python interpreter
1362 VIRTUALENV_FLAGS
1363 flags to pass to the virtualenv command
1364 PYTHON_CONFIG
1365 the Python-config program
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1373 CPP C preprocessor
1374
1375 Use these variables to override the choices made by `configure' or to help
1376 it to find libraries and programs with nonstandard names/locations.
1377
1378 Report bugs to the package provider.
1379 _ACEOF
1380 ac_status=$?
1381 fi
1382
1383 if test "$ac_init_help" = "recursive"; then
1384 # If there are subdirs, report their specific --help.
1385 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1386 test -d "$ac_dir" ||
1387 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1388 continue
1389 ac_builddir=.
1390
1391 case "$ac_dir" in
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *)
1394 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 esac ;;
1401 esac
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1406
1407 case $srcdir in
1408 .) # We are building in place.
1409 ac_srcdir=.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1416 *) # Relative name.
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420 esac
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1436 fi
1437
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1440 cat <<\_ACEOF
1441 mediagoblin configure 0.3.1
1442 generated by GNU Autoconf 2.69
1443
1444 Copyright (C) 2012 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448 exit
1449 fi
1450
1451 ## ------------------------ ##
1452 ## Autoconf initialization. ##
1453 ## ------------------------ ##
1454
1455 # ac_fn_py_try_run LINENO
1456 # -----------------------
1457 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1458 # that executables *can* be run.
1459 ac_fn_py_try_run ()
1460 {
1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462 if { { ac_try="$ac_link"
1463 case "(($ac_try" in
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1466 esac
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 $as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_link") 2>&5
1470 ac_status=$?
1471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1473 { { case "(($ac_try" in
1474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475 *) ac_try_echo=$ac_try;;
1476 esac
1477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478 $as_echo "$ac_try_echo"; } >&5
1479 (eval "$ac_try") 2>&5
1480 ac_status=$?
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; }; }; then :
1483 ac_retval=0
1484 else
1485 $as_echo "$as_me: program exited with status $ac_status" >&5
1486 $as_echo "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.$ac_ext >&5
1488
1489 ac_retval=$ac_status
1490 fi
1491 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1493 as_fn_set_status $ac_retval
1494
1495 } # ac_fn_py_try_run
1496
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile ()
1501 {
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1523 ac_retval=0
1524 else
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1527
1528 ac_retval=1
1529 fi
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531 as_fn_set_status $ac_retval
1532
1533 } # ac_fn_c_try_compile
1534
1535 # ac_fn_c_try_cpp LINENO
1536 # ----------------------
1537 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_cpp ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } > conftest.i && {
1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 }; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570 } # ac_fn_c_try_cpp
1571
1572 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1573 # -------------------------------------------------------
1574 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1575 # the include files in INCLUDES and setting the cache variable VAR
1576 # accordingly.
1577 ac_fn_c_check_header_mongrel ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if eval \${$3+:} false; then :
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582 $as_echo_n "checking for $2... " >&6; }
1583 if eval \${$3+:} false; then :
1584 $as_echo_n "(cached) " >&6
1585 fi
1586 eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1589 else
1590 # Is the header compilable?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1592 $as_echo_n "checking $2 usability... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1595 $4
1596 #include <$2>
1597 _ACEOF
1598 if ac_fn_c_try_compile "$LINENO"; then :
1599 ac_header_compiler=yes
1600 else
1601 ac_header_compiler=no
1602 fi
1603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1605 $as_echo "$ac_header_compiler" >&6; }
1606
1607 # Is the header present?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1609 $as_echo_n "checking $2 presence... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 #include <$2>
1613 _ACEOF
1614 if ac_fn_c_try_cpp "$LINENO"; then :
1615 ac_header_preproc=yes
1616 else
1617 ac_header_preproc=no
1618 fi
1619 rm -f conftest.err conftest.i conftest.$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1621 $as_echo "$ac_header_preproc" >&6; }
1622
1623 # So? What about this header?
1624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625 yes:no: )
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1627 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630 ;;
1631 no:yes:* )
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1633 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1635 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1637 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1639 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 ;;
1643 esac
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1648 else
1649 eval "$3=\$ac_header_compiler"
1650 fi
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_mongrel
1658
1659 # ac_fn_c_try_run LINENO
1660 # ----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662 # that executables *can* be run.
1663 ac_fn_c_try_run ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=$ac_status
1694 fi
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_run
1700
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1712 else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 $4
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719 eval "$3=yes"
1720 else
1721 eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731 cat >config.log <<_ACEOF
1732 This file contains any messages produced by compilers while
1733 running configure, to aid debugging if configure makes a mistake.
1734
1735 It was created by mediagoblin $as_me 0.3.1, which was
1736 generated by GNU Autoconf 2.69. Invocation command line was
1737
1738 $ $0 $@
1739
1740 _ACEOF
1741 exec 5>>config.log
1742 {
1743 cat <<_ASUNAME
1744 ## --------- ##
1745 ## Platform. ##
1746 ## --------- ##
1747
1748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1756
1757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1764
1765 _ASUNAME
1766
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770 IFS=$as_save_IFS
1771 test -z "$as_dir" && as_dir=.
1772 $as_echo "PATH: $as_dir"
1773 done
1774 IFS=$as_save_IFS
1775
1776 } >&5
1777
1778 cat >&5 <<_ACEOF
1779
1780
1781 ## ----------- ##
1782 ## Core tests. ##
1783 ## ----------- ##
1784
1785 _ACEOF
1786
1787
1788 # Keep a trace of the command line.
1789 # Strip out --no-create and --no-recursion so they do not pile up.
1790 # Strip out --silent because we don't want to record it for future runs.
1791 # Also quote any args containing shell meta-characters.
1792 # Make two passes to allow for proper duplicate-argument suppression.
1793 ac_configure_args=
1794 ac_configure_args0=
1795 ac_configure_args1=
1796 ac_must_keep_next=false
1797 for ac_pass in 1 2
1798 do
1799 for ac_arg
1800 do
1801 case $ac_arg in
1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804 | -silent | --silent | --silen | --sile | --sil)
1805 continue ;;
1806 *\'*)
1807 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 esac
1809 case $ac_pass in
1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811 2)
1812 as_fn_append ac_configure_args1 " '$ac_arg'"
1813 if test $ac_must_keep_next = true; then
1814 ac_must_keep_next=false # Got value, back to normal.
1815 else
1816 case $ac_arg in
1817 *=* | --config-cache | -C | -disable-* | --disable-* \
1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820 | -with-* | --with-* | -without-* | --without-* | --x)
1821 case "$ac_configure_args0 " in
1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823 esac
1824 ;;
1825 -* ) ac_must_keep_next=true ;;
1826 esac
1827 fi
1828 as_fn_append ac_configure_args " '$ac_arg'"
1829 ;;
1830 esac
1831 done
1832 done
1833 { ac_configure_args0=; unset ac_configure_args0;}
1834 { ac_configure_args1=; unset ac_configure_args1;}
1835
1836 # When interrupted or exit'd, cleanup temporary files, and complete
1837 # config.log. We remove comments because anyway the quotes in there
1838 # would cause problems or look ugly.
1839 # WARNING: Use '\'' to represent an apostrophe within the trap.
1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841 trap 'exit_status=$?
1842 # Save into config.log some information that might help in debugging.
1843 {
1844 echo
1845
1846 $as_echo "## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##"
1849 echo
1850 # The following way of writing the cache mishandles newlines in values,
1851 (
1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in #(
1855 *${as_nl}*)
1856 case $ac_var in #(
1857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859 esac
1860 case $ac_var in #(
1861 _ | IFS | as_nl) ;; #(
1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863 *) { eval $ac_var=; unset $ac_var;} ;;
1864 esac ;;
1865 esac
1866 done
1867 (set) 2>&1 |
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1870 sed -n \
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873 ;; #(
1874 *)
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 ;;
1877 esac |
1878 sort
1879 )
1880 echo
1881
1882 $as_echo "## ----------------- ##
1883 ## Output variables. ##
1884 ## ----------------- ##"
1885 echo
1886 for ac_var in $ac_subst_vars
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 $as_echo "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895
1896 if test -n "$ac_subst_files"; then
1897 $as_echo "## ------------------- ##
1898 ## File substitutions. ##
1899 ## ------------------- ##"
1900 echo
1901 for ac_var in $ac_subst_files
1902 do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 esac
1907 $as_echo "$ac_var='\''$ac_val'\''"
1908 done | sort
1909 echo
1910 fi
1911
1912 if test -s confdefs.h; then
1913 $as_echo "## ----------- ##
1914 ## confdefs.h. ##
1915 ## ----------- ##"
1916 echo
1917 cat confdefs.h
1918 echo
1919 fi
1920 test "$ac_signal" != 0 &&
1921 $as_echo "$as_me: caught signal $ac_signal"
1922 $as_echo "$as_me: exit $exit_status"
1923 } >&5
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 $as_echo "/* confdefs.h */" > confdefs.h
1937
1938 # Predefined preprocessor variables.
1939
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_NAME "$PACKAGE_NAME"
1942 _ACEOF
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946 _ACEOF
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 _ACEOF
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958 _ACEOF
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_URL "$PACKAGE_URL"
1962 _ACEOF
1963
1964
1965 # Let the site file select an alternate cache file if it wants to.
1966 # Prefer an explicitly selected file to automatically selected ones.
1967 ac_site_file1=NONE
1968 ac_site_file2=NONE
1969 if test -n "$CONFIG_SITE"; then
1970 # We do not want a PATH search for config.site.
1971 case $CONFIG_SITE in #((
1972 -*) ac_site_file1=./$CONFIG_SITE;;
1973 */*) ac_site_file1=$CONFIG_SITE;;
1974 *) ac_site_file1=./$CONFIG_SITE;;
1975 esac
1976 elif test "x$prefix" != xNONE; then
1977 ac_site_file1=$prefix/share/config.site
1978 ac_site_file2=$prefix/etc/config.site
1979 else
1980 ac_site_file1=$ac_default_prefix/share/config.site
1981 ac_site_file2=$ac_default_prefix/etc/config.site
1982 fi
1983 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1984 do
1985 test "x$ac_site_file" = xNONE && continue
1986 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1988 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989 sed 's/^/| /' "$ac_site_file" >&5
1990 . "$ac_site_file" \
1991 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1993 as_fn_error $? "failed to load site script $ac_site_file
1994 See \`config.log' for more details" "$LINENO" 5; }
1995 fi
1996 done
1997
1998 if test -r "$cache_file"; then
1999 # Some versions of bash will fail to source /dev/null (special files
2000 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2001 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2003 $as_echo "$as_me: loading cache $cache_file" >&6;}
2004 case $cache_file in
2005 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006 *) . "./$cache_file";;
2007 esac
2008 fi
2009 else
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2011 $as_echo "$as_me: creating cache $cache_file" >&6;}
2012 >$cache_file
2013 fi
2014
2015 # Check that the precious variables saved in the cache have kept the same
2016 # value.
2017 ac_cache_corrupted=false
2018 for ac_var in $ac_precious_vars; do
2019 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020 eval ac_new_set=\$ac_env_${ac_var}_set
2021 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2022 eval ac_new_val=\$ac_env_${ac_var}_value
2023 case $ac_old_set,$ac_new_set in
2024 set,)
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027 ac_cache_corrupted=: ;;
2028 ,set)
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031 ac_cache_corrupted=: ;;
2032 ,);;
2033 *)
2034 if test "x$ac_old_val" != "x$ac_new_val"; then
2035 # differences in whitespace do not lead to failure.
2036 ac_old_val_w=`echo x $ac_old_val`
2037 ac_new_val_w=`echo x $ac_new_val`
2038 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2041 ac_cache_corrupted=:
2042 else
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2045 eval $ac_var=\$ac_old_val
2046 fi
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2048 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2050 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2051 fi;;
2052 esac
2053 # Pass precious variables to config.status.
2054 if test "$ac_new_set" = set; then
2055 case $ac_new_val in
2056 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 *) ac_arg=$ac_var=$ac_new_val ;;
2058 esac
2059 case " $ac_configure_args " in
2060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2061 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2062 esac
2063 fi
2064 done
2065 if $ac_cache_corrupted; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2070 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2071 fi
2072 ## -------------------- ##
2073 ## Main body of script. ##
2074 ## -------------------- ##
2075
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082
2083
2084 # Load macros from the m4/ directory
2085
2086 am__api_version='1.12'
2087
2088 ac_aux_dir=
2089 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090 if test -f "$ac_dir/install-sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 break
2094 elif test -f "$ac_dir/install.sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 break
2098 elif test -f "$ac_dir/shtool"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/shtool install -c"
2101 break
2102 fi
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2106 fi
2107
2108 # These three variables are undocumented and unsupported,
2109 # and are intended to be withdrawn in a future Autoconf release.
2110 # They can cause serious problems if a builder's source tree is in a directory
2111 # whose full name contains unusual characters.
2112 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2113 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2114 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2115
2116
2117 # Find a good install program. We prefer a C program (faster),
2118 # so one script is as good as another. But avoid the broken or
2119 # incompatible versions:
2120 # SysV /etc/install, /usr/sbin/install
2121 # SunOS /usr/etc/install
2122 # IRIX /sbin/install
2123 # AIX /bin/install
2124 # AmigaOS /C/install, which installs bootblocks on floppy discs
2125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2128 # OS/2's system install, which has a completely different semantic
2129 # ./install, which can be erroneously created by make from ./install.sh.
2130 # Reject install programs that cannot install multiple files.
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2132 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2133 if test -z "$INSTALL"; then
2134 if ${ac_cv_path_install+:} false; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 # Account for people who put trailing slashes in PATH elements.
2143 case $as_dir/ in #((
2144 ./ | .// | /[cC]/* | \
2145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2146 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2147 /usr/ucb/* ) ;;
2148 *)
2149 # OSF1 and SCO ODT 3.0 have their own names for install.
2150 # Don't use installbsd from OSF since it installs stuff as root
2151 # by default.
2152 for ac_prog in ginstall scoinst install; do
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2155 if test $ac_prog = install &&
2156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # AIX install. It has an incompatible calling convention.
2158 :
2159 elif test $ac_prog = install &&
2160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # program-specific install script used by HP pwplus--don't use.
2162 :
2163 else
2164 rm -rf conftest.one conftest.two conftest.dir
2165 echo one > conftest.one
2166 echo two > conftest.two
2167 mkdir conftest.dir
2168 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2169 test -s conftest.one && test -s conftest.two &&
2170 test -s conftest.dir/conftest.one &&
2171 test -s conftest.dir/conftest.two
2172 then
2173 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2174 break 3
2175 fi
2176 fi
2177 fi
2178 done
2179 done
2180 ;;
2181 esac
2182
2183 done
2184 IFS=$as_save_IFS
2185
2186 rm -rf conftest.one conftest.two conftest.dir
2187
2188 fi
2189 if test "${ac_cv_path_install+set}" = set; then
2190 INSTALL=$ac_cv_path_install
2191 else
2192 # As a last resort, use the slow shell script. Don't cache a
2193 # value for INSTALL within a source directory, because that will
2194 # break other packages using the cache if that directory is
2195 # removed, or if the value is a relative name.
2196 INSTALL=$ac_install_sh
2197 fi
2198 fi
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2200 $as_echo "$INSTALL" >&6; }
2201
2202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2203 # It thinks the first close brace ends the variable substitution.
2204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2205
2206 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2207
2208 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2209
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2211 $as_echo_n "checking whether build environment is sane... " >&6; }
2212 # Reject unsafe characters in $srcdir or the absolute working directory
2213 # name. Accept space and tab only in the latter.
2214 am_lf='
2215 '
2216 case `pwd` in
2217 *[\\\"\#\$\&\'\`$am_lf]*)
2218 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2219 esac
2220 case $srcdir in
2221 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2222 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2223 esac
2224
2225 # Do 'set' in a subshell so we don't clobber the current shell's
2226 # arguments. Must try -L first in case configure is actually a
2227 # symlink; some systems play weird games with the mod time of symlinks
2228 # (eg FreeBSD returns the mod time of the symlink's containing
2229 # directory).
2230 if (
2231 am_has_slept=no
2232 for am_try in 1 2; do
2233 echo "timestamp, slept: $am_has_slept" > conftest.file
2234 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2235 if test "$*" = "X"; then
2236 # -L didn't work.
2237 set X `ls -t "$srcdir/configure" conftest.file`
2238 fi
2239 if test "$*" != "X $srcdir/configure conftest.file" \
2240 && test "$*" != "X conftest.file $srcdir/configure"; then
2241
2242 # If neither matched, then we have a broken ls. This can happen
2243 # if, for instance, CONFIG_SHELL is bash and it inherits a
2244 # broken ls alias from the environment. This has actually
2245 # happened. Such a system could not be considered "sane".
2246 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2247 alias in your environment" "$LINENO" 5
2248 fi
2249 if test "$2" = conftest.file || test $am_try -eq 2; then
2250 break
2251 fi
2252 # Just in case.
2253 sleep 1
2254 am_has_slept=yes
2255 done
2256 test "$2" = conftest.file
2257 )
2258 then
2259 # Ok.
2260 :
2261 else
2262 as_fn_error $? "newly created file is older than distributed files!
2263 Check your system clock" "$LINENO" 5
2264 fi
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2266 $as_echo "yes" >&6; }
2267 # If we didn't sleep, we still need to ensure time stamps of config.status and
2268 # generated files are strictly newer.
2269 am_sleep_pid=
2270 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2271 ( sleep 1 ) &
2272 am_sleep_pid=$!
2273 fi
2274
2275 rm -f conftest.file
2276
2277 test "$program_prefix" != NONE &&
2278 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2279 # Use a double $ so make ignores it.
2280 test "$program_suffix" != NONE &&
2281 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2282 # Double any \ or $.
2283 # By default was `s,x,x', remove it if useless.
2284 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2285 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2286
2287 # expand $ac_aux_dir to an absolute path
2288 am_aux_dir=`cd $ac_aux_dir && pwd`
2289
2290 if test x"${MISSING+set}" != xset; then
2291 case $am_aux_dir in
2292 *\ * | *\ *)
2293 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2294 *)
2295 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2296 esac
2297 fi
2298 # Use eval to expand $SHELL
2299 if eval "$MISSING --run true"; then
2300 am_missing_run="$MISSING --run "
2301 else
2302 am_missing_run=
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2304 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2305 fi
2306
2307 if test x"${install_sh}" != xset; then
2308 case $am_aux_dir in
2309 *\ * | *\ *)
2310 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2311 *)
2312 install_sh="\${SHELL} $am_aux_dir/install-sh"
2313 esac
2314 fi
2315
2316 # Installed binaries are usually stripped using 'strip' when the user
2317 # run "make install-strip". However 'strip' might not be the right
2318 # tool to use in cross-compilation environments, therefore Automake
2319 # will honor the 'STRIP' environment variable to overrule this program.
2320 if test "$cross_compiling" != no; then
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}strip; ac_word=$2
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if ${ac_cv_prog_STRIP+:} false; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 if test -n "$STRIP"; then
2330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 STRIP=$ac_cv_prog_STRIP
2350 if test -n "$STRIP"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2352 $as_echo "$STRIP" >&6; }
2353 else
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2355 $as_echo "no" >&6; }
2356 fi
2357
2358
2359 fi
2360 if test -z "$ac_cv_prog_STRIP"; then
2361 ac_ct_STRIP=$STRIP
2362 # Extract the first word of "strip", so it can be a program name with args.
2363 set dummy strip; ac_word=$2
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 if test -n "$ac_ct_STRIP"; then
2370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379 ac_cv_prog_ac_ct_STRIP="strip"
2380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2390 if test -n "$ac_ct_STRIP"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2392 $as_echo "$ac_ct_STRIP" >&6; }
2393 else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395 $as_echo "no" >&6; }
2396 fi
2397
2398 if test "x$ac_ct_STRIP" = x; then
2399 STRIP=":"
2400 else
2401 case $cross_compiling:$ac_tool_warned in
2402 yes:)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407 STRIP=$ac_ct_STRIP
2408 fi
2409 else
2410 STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2415
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2417 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2418 if test -z "$MKDIR_P"; then
2419 if ${ac_cv_path_mkdir+:} false; then :
2420 $as_echo_n "(cached) " >&6
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_prog in mkdir gmkdir; do
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2430 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2431 'mkdir (GNU coreutils) '* | \
2432 'mkdir (coreutils) '* | \
2433 'mkdir (fileutils) '4.1*)
2434 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2435 break 3;;
2436 esac
2437 done
2438 done
2439 done
2440 IFS=$as_save_IFS
2441
2442 fi
2443
2444 test -d ./--version && rmdir ./--version
2445 if test "${ac_cv_path_mkdir+set}" = set; then
2446 MKDIR_P="$ac_cv_path_mkdir -p"
2447 else
2448 # As a last resort, use the slow shell script. Don't cache a
2449 # value for MKDIR_P within a source directory, because that will
2450 # break other packages using the cache if that directory is
2451 # removed, or if the value is a relative name.
2452 MKDIR_P="$ac_install_sh -d"
2453 fi
2454 fi
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2456 $as_echo "$MKDIR_P" >&6; }
2457
2458 for ac_prog in gawk mawk nawk awk
2459 do
2460 # Extract the first word of "$ac_prog", so it can be a program name with args.
2461 set dummy $ac_prog; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if ${ac_cv_prog_AWK+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$AWK"; then
2468 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 ac_cv_prog_AWK="$ac_prog"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 AWK=$ac_cv_prog_AWK
2488 if test -n "$AWK"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2490 $as_echo "$AWK" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496
2497 test -n "$AWK" && break
2498 done
2499
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2501 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2502 set x ${MAKE-make}
2503 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2504 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 cat >conftest.make <<\_ACEOF
2508 SHELL = /bin/sh
2509 all:
2510 @echo '@@@%%%=$(MAKE)=@@@%%%'
2511 _ACEOF
2512 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2513 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2514 *@@@%%%=?*=@@@%%%*)
2515 eval ac_cv_prog_make_${ac_make}_set=yes;;
2516 *)
2517 eval ac_cv_prog_make_${ac_make}_set=no;;
2518 esac
2519 rm -f conftest.make
2520 fi
2521 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2523 $as_echo "yes" >&6; }
2524 SET_MAKE=
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527 $as_echo "no" >&6; }
2528 SET_MAKE="MAKE=${MAKE-make}"
2529 fi
2530
2531 rm -rf .tst 2>/dev/null
2532 mkdir .tst 2>/dev/null
2533 if test -d .tst; then
2534 am__leading_dot=.
2535 else
2536 am__leading_dot=_
2537 fi
2538 rmdir .tst 2>/dev/null
2539
2540 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2541 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2542 # is not polluted with repeated "-I."
2543 am__isrc=' -I$(srcdir)'
2544 # test to see if srcdir already configured
2545 if test -f $srcdir/config.status; then
2546 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2547 fi
2548 fi
2549
2550 # test whether we have cygpath
2551 if test -z "$CYGPATH_W"; then
2552 if (cygpath --version) >/dev/null 2>/dev/null; then
2553 CYGPATH_W='cygpath -w'
2554 else
2555 CYGPATH_W=echo
2556 fi
2557 fi
2558
2559
2560 # Define the identity of the package.
2561 PACKAGE='mediagoblin'
2562 VERSION='0.3.1'
2563
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE "$PACKAGE"
2567 _ACEOF
2568
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define VERSION "$VERSION"
2572 _ACEOF
2573
2574 # Some tools Automake needs.
2575
2576 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2577
2578
2579 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2580
2581
2582 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2583
2584
2585 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2586
2587
2588 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2589
2590 # For better backward compatibility. To be removed once Automake 1.9.x
2591 # dies out for good. For more background, see:
2592 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2593 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2594 mkdir_p='$(MKDIR_P)'
2595
2596 # We need awk for the "check" target. The system "awk" is bad on
2597 # some platforms.
2598 # Always define AMTAR for backward compatibility. Yes, it's still used
2599 # in the wild :-( We should find a proper way to deprecate it ...
2600 AMTAR='$${TAR-tar}'
2601
2602 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2603
2604
2605
2606
2607
2608
2609 # Here we check if we are using Python 3
2610
2611
2612 for ac_prog in python python3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
2613 do
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_path_PYTHON+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 case $PYTHON in
2622 [\\/]* | ?:[\\/]*)
2623 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2624 ;;
2625 *)
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 ;;
2642 esac
2643 fi
2644 PYTHON=$ac_cv_path_PYTHON
2645 if test -n "$PYTHON"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
2647 $as_echo "$PYTHON" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654 test -n "$PYTHON" && break
2655 done
2656
2657
2658
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Python >= '3.0'" >&5
2661 $as_echo_n "checking if Python >= '3.0'... " >&6; }
2662 if ${pc_cv_python_min_version_3_0+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 ac_ext=py
2666 ac_compile='chmod +x conftest.$ac_ext >&5'
2667 ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2668 if test "$cross_compiling" = yes; then :
2669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 as_fn_error $? "cannot run test program while cross compiling
2672 See \`config.log' for more details" "$LINENO" 5; }
2673 else
2674 cat > conftest.$ac_ext <<_ACEOF
2675 #!$PYTHON
2676 import sys
2677
2678 if __name__ == '__main__':
2679 # split strings by '.' and convert to numeric. Append some zeros
2680 # because we need at least 4 digits for the hex conversion.
2681 # map returns an iterator in Python 3.0 and a list in 2.x
2682 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
2683 minverhex = 0
2684 # xrange is not present in Python 3.0 and range returns an iterator
2685 for i in list(range(4)):
2686 minverhex = (minverhex << 8) + minver[i]
2687 sys.exit(sys.hexversion < minverhex)
2688
2689 _ACEOF
2690 if ac_fn_py_try_run "$LINENO"; then :
2691 pc_cv_python_min_version_3_0="yes"
2692 else
2693 pc_cv_python_min_version_3_0="no"
2694 fi
2695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2696 conftest.$ac_objext conftest.beam conftest.$ac_ext
2697 fi
2698
2699 ac_ext=c
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_min_version_3_0" >&5
2707 $as_echo "$pc_cv_python_min_version_3_0" >&6; }
2708 if test "$pc_cv_python_min_version_3_0" = "no"; then :
2709 py3k=false
2710 else
2711 py3k=true
2712 fi
2713
2714 # If using python 3 make sure we have the minimum version supported
2715 if test "$py3k" = "true" ; then
2716
2717 for ac_prog in python2 python2.7 python2.6
2718 do
2719 # Extract the first word of "$ac_prog", so it can be a program name with args.
2720 set dummy $ac_prog; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_path_PYTHON+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 case $PYTHON in
2727 [\\/]* | ?:[\\/]*)
2728 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2729 ;;
2730 *)
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742 done
2743 done
2744 IFS=$as_save_IFS
2745
2746 ;;
2747 esac
2748 fi
2749 PYTHON=$ac_cv_path_PYTHON
2750 if test -n "$PYTHON"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
2752 $as_echo "$PYTHON" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759 test -n "$PYTHON" && break
2760 done
2761
2762 else
2763 # otherwise check that the Python 2 version is sufficient
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Python >= '2.6'" >&5
2766 $as_echo_n "checking if Python >= '2.6'... " >&6; }
2767 if ${pc_cv_python_min_version_2_6+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 ac_ext=py
2771 ac_compile='chmod +x conftest.$ac_ext >&5'
2772 ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2773 if test "$cross_compiling" = yes; then :
2774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 as_fn_error $? "cannot run test program while cross compiling
2777 See \`config.log' for more details" "$LINENO" 5; }
2778 else
2779 cat > conftest.$ac_ext <<_ACEOF
2780 #!$PYTHON
2781 import sys
2782
2783 if __name__ == '__main__':
2784 # split strings by '.' and convert to numeric. Append some zeros
2785 # because we need at least 4 digits for the hex conversion.
2786 # map returns an iterator in Python 3.0 and a list in 2.x
2787 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
2788 minverhex = 0
2789 # xrange is not present in Python 3.0 and range returns an iterator
2790 for i in list(range(4)):
2791 minverhex = (minverhex << 8) + minver[i]
2792 sys.exit(sys.hexversion < minverhex)
2793
2794 _ACEOF
2795 if ac_fn_py_try_run "$LINENO"; then :
2796 pc_cv_python_min_version_2_6="yes"
2797 else
2798 pc_cv_python_min_version_2_6="no"
2799 fi
2800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2801 conftest.$ac_objext conftest.beam conftest.$ac_ext
2802 fi
2803
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_min_version_2_6" >&5
2812 $as_echo "$pc_cv_python_min_version_2_6" >&6; }
2813 if test "$pc_cv_python_min_version_2_6" = "no"; then :
2814 as_fn_error $? "Python interpreter too old" "$LINENO" 5
2815 fi
2816
2817 fi
2818
2819 for ac_prog in sphinx-build sphinx-build2
2820 do
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_SPHINXBUILD+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$SPHINXBUILD"; then
2829 ac_cv_prog_SPHINXBUILD="$SPHINXBUILD" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838 ac_cv_prog_SPHINXBUILD="$ac_prog"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 SPHINXBUILD=$ac_cv_prog_SPHINXBUILD
2849 if test -n "$SPHINXBUILD"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD" >&5
2851 $as_echo "$SPHINXBUILD" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858 test -n "$SPHINXBUILD" && break
2859 done
2860 test -n "$SPHINXBUILD" || SPHINXBUILD="no"
2861
2862 if test "x$SPHINXBUILD" = xno; then :
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sphinx-build is required to build documentation" >&5
2864 $as_echo "$as_me: WARNING: sphinx-build is required to build documentation" >&2;}
2865 fi
2866
2867
2868
2869 # Check whether --with-virtualenv was given.
2870 if test "${with_virtualenv+set}" = set; then :
2871 withval=$with_virtualenv;
2872 else
2873 with_virtualenv=no
2874 fi
2875
2876 if test "x$with_virtualenv" != xno; then :
2877 for ac_prog in virtualenv virtualenv2
2878 do
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy $ac_prog; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_VIRTUALENV+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$VIRTUALENV"; then
2887 ac_cv_prog_VIRTUALENV="$VIRTUALENV" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_VIRTUALENV="$ac_prog"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 VIRTUALENV=$ac_cv_prog_VIRTUALENV
2907 if test -n "$VIRTUALENV"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIRTUALENV" >&5
2909 $as_echo "$VIRTUALENV" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915
2916 test -n "$VIRTUALENV" && break
2917 done
2918 test -n "$VIRTUALENV" || VIRTUALENV="no"
2919
2920 if test "x$VIRTUALENV" = xno; then :
2921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 as_fn_error $? "--with-virtualenv given but virtualenv could not be found
2924 See \`config.log' for more details" "$LINENO" 5; }
2925 fi
2926 else
2927 VIRTUALENV=no
2928
2929 fi
2930
2931
2932
2933
2934
2935
2936
2937 # Extract the first word of "`basename $PYTHON`-config", so it can be a program name with args.
2938 set dummy `basename $PYTHON`-config; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 case $PYTHON_CONFIG in
2945 [\\/]* | ?:[\\/]*)
2946 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
2947 ;;
2948 *)
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 ;;
2965 esac
2966 fi
2967 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
2968 if test -n "$PYTHON_CONFIG"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
2970 $as_echo "$PYTHON_CONFIG" >&6; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5
2979 $as_echo_n "checking for Python includes... " >&6; }
2980 if ${pc_cv_python_includes+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -x "$PYTHON_CONFIG"; then
2984 pc_cv_python_includes=`$PYTHON_CONFIG --includes 2>> 5`
2985 else
2986 pc_cv_python_includes="-I$includedir/$_PYTHON_BASENAME"
2987 fi
2988
2989 fi
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_includes" >&5
2991 $as_echo "$pc_cv_python_includes" >&6; }
2992 PYTHON_INCLUDES=$pc_cv_python_includes
2993
2994 DEPDIR="${am__leading_dot}deps"
2995
2996 ac_config_commands="$ac_config_commands depfiles"
2997
2998
2999 am_make=${MAKE-make}
3000 cat > confinc << 'END'
3001 am__doit:
3002 @echo this is the am__doit target
3003 .PHONY: am__doit
3004 END
3005 # If we don't find an include directive, just comment out the code.
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3007 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3008 am__include="#"
3009 am__quote=
3010 _am_result=none
3011 # First try GNU make style include.
3012 echo "include confinc" > confmf
3013 # Ignore all kinds of additional output from 'make'.
3014 case `$am_make -s -f confmf 2> /dev/null` in #(
3015 *the\ am__doit\ target*)
3016 am__include=include
3017 am__quote=
3018 _am_result=GNU
3019 ;;
3020 esac
3021 # Now try BSD make style include.
3022 if test "$am__include" = "#"; then
3023 echo '.include "confinc"' > confmf
3024 case `$am_make -s -f confmf 2> /dev/null` in #(
3025 *the\ am__doit\ target*)
3026 am__include=.include
3027 am__quote="\""
3028 _am_result=BSD
3029 ;;
3030 esac
3031 fi
3032
3033
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3035 $as_echo "$_am_result" >&6; }
3036 rm -f confinc confmf
3037
3038 # Check whether --enable-dependency-tracking was given.
3039 if test "${enable_dependency_tracking+set}" = set; then :
3040 enableval=$enable_dependency_tracking;
3041 fi
3042
3043 if test "x$enable_dependency_tracking" != xno; then
3044 am_depcomp="$ac_aux_dir/depcomp"
3045 AMDEPBACKSLASH='\'
3046 am__nodep='_no'
3047 fi
3048 if test "x$enable_dependency_tracking" != xno; then
3049 AMDEP_TRUE=
3050 AMDEP_FALSE='#'
3051 else
3052 AMDEP_TRUE='#'
3053 AMDEP_FALSE=
3054 fi
3055
3056
3057 ac_ext=c
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_CC+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3094 else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097 fi
3098
3099
3100 fi
3101 if test -z "$ac_cv_prog_CC"; then
3102 ac_ct_CC=$CC
3103 # Extract the first word of "gcc", so it can be a program name with args.
3104 set dummy gcc; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$ac_ct_CC"; then
3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CC="gcc"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131 if test -n "$ac_ct_CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3133 $as_echo "$ac_ct_CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139 if test "x$ac_ct_CC" = x; then
3140 CC=""
3141 else
3142 case $cross_compiling:$ac_tool_warned in
3143 yes:)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146 ac_tool_warned=yes ;;
3147 esac
3148 CC=$ac_ct_CC
3149 fi
3150 else
3151 CC="$ac_cv_prog_CC"
3152 fi
3153
3154 if test -z "$CC"; then
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}cc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_CC="${ac_tool_prefix}cc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193 fi
3194 fi
3195 if test -z "$CC"; then
3196 # Extract the first word of "cc", so it can be a program name with args.
3197 set dummy cc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 ac_prog_rejected=no
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3215 ac_prog_rejected=yes
3216 continue
3217 fi
3218 ac_cv_prog_CC="cc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 if test $ac_prog_rejected = yes; then
3227 # We found a bogon in the path, so make sure we never use it.
3228 set dummy $ac_cv_prog_CC
3229 shift
3230 if test $# != 0; then
3231 # We chose a different compiler from the bogus one.
3232 # However, it has the same basename, so the bogon will be chosen
3233 # first if we set CC to just the basename; use the full file name.
3234 shift
3235 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3236 fi
3237 fi
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250 fi
3251 if test -z "$CC"; then
3252 if test -n "$ac_tool_prefix"; then
3253 for ac_prog in cl.exe
3254 do
3255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$CC"; then
3263 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 CC=$ac_cv_prog_CC
3283 if test -n "$CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3285 $as_echo "$CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 test -n "$CC" && break
3293 done
3294 fi
3295 if test -z "$CC"; then
3296 ac_ct_CC=$CC
3297 for ac_prog in cl.exe
3298 do
3299 # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if test -n "$ac_ct_CC"; then
3307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 ac_cv_prog_ac_ct_CC="$ac_prog"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327 if test -n "$ac_ct_CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329 $as_echo "$ac_ct_CC" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 test -n "$ac_ct_CC" && break
3337 done
3338
3339 if test "x$ac_ct_CC" = x; then
3340 CC=""
3341 else
3342 case $cross_compiling:$ac_tool_warned in
3343 yes:)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3347 esac
3348 CC=$ac_ct_CC
3349 fi
3350 fi
3351
3352 fi
3353
3354
3355 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "no acceptable C compiler found in \$PATH
3358 See \`config.log' for more details" "$LINENO" 5; }
3359
3360 # Provide some information about the compiler.
3361 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3362 set X $ac_compile
3363 ac_compiler=$2
3364 for ac_option in --version -v -V -qversion; do
3365 { { ac_try="$ac_compiler $ac_option >&5"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3373 ac_status=$?
3374 if test -s conftest.err; then
3375 sed '10a\
3376 ... rest of stderr output deleted ...
3377 10q' conftest.err >conftest.er1
3378 cat conftest.er1 >&5
3379 fi
3380 rm -f conftest.er1 conftest.err
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 done
3384
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3387
3388 int
3389 main ()
3390 {
3391
3392 ;
3393 return 0;
3394 }
3395 _ACEOF
3396 ac_clean_files_save=$ac_clean_files
3397 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3398 # Try to create an executable without -o first, disregard a.out.
3399 # It will help us diagnose broken compilers, and finding out an intuition
3400 # of exeext.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3402 $as_echo_n "checking whether the C compiler works... " >&6; }
3403 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3404
3405 # The possible output files:
3406 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3407
3408 ac_rmfiles=
3409 for ac_file in $ac_files
3410 do
3411 case $ac_file in
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3414 esac
3415 done
3416 rm -f $ac_rmfiles
3417
3418 if { { ac_try="$ac_link_default"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link_default") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; then :
3429 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3430 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3431 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3432 # so that the user can short-circuit this test for compilers unknown to
3433 # Autoconf.
3434 for ac_file in $ac_files ''
3435 do
3436 test -f "$ac_file" || continue
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3439 ;;
3440 [ab].out )
3441 # We found the default executable, but exeext='' is most
3442 # certainly right.
3443 break;;
3444 *.* )
3445 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3446 then :; else
3447 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 fi
3449 # We set ac_cv_exeext here because the later test for it is not
3450 # safe: cross compilers may not add the suffix if given an `-o'
3451 # argument, so we may need to know it at that point already.
3452 # Even if this section looks crufty: it has the advantage of
3453 # actually working.
3454 break;;
3455 * )
3456 break;;
3457 esac
3458 done
3459 test "$ac_cv_exeext" = no && ac_cv_exeext=
3460
3461 else
3462 ac_file=''
3463 fi
3464 if test -z "$ac_file"; then :
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error 77 "C compiler cannot create executables
3473 See \`config.log' for more details" "$LINENO" 5; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3476 $as_echo "yes" >&6; }
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3479 $as_echo_n "checking for C compiler default output file name... " >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3481 $as_echo "$ac_file" >&6; }
3482 ac_exeext=$ac_cv_exeext
3483
3484 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3485 ac_clean_files=$ac_clean_files_save
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3487 $as_echo_n "checking for suffix of executables... " >&6; }
3488 if { { ac_try="$ac_link"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_link") 2>&5
3496 ac_status=$?
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; then :
3499 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3500 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3501 # work properly (i.e., refer to `conftest.exe'), while it won't with
3502 # `rm'.
3503 for ac_file in conftest.exe conftest conftest.*; do
3504 test -f "$ac_file" || continue
3505 case $ac_file in
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3508 break;;
3509 * ) break;;
3510 esac
3511 done
3512 else
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3516 See \`config.log' for more details" "$LINENO" 5; }
3517 fi
3518 rm -f conftest conftest$ac_cv_exeext
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3520 $as_echo "$ac_cv_exeext" >&6; }
3521
3522 rm -f conftest.$ac_ext
3523 EXEEXT=$ac_cv_exeext
3524 ac_exeext=$EXEEXT
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527 #include <stdio.h>
3528 int
3529 main ()
3530 {
3531 FILE *f = fopen ("conftest.out", "w");
3532 return ferror (f) || fclose (f) != 0;
3533
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 ac_clean_files="$ac_clean_files conftest.out"
3539 # Check that the compiler produces executables we can run. If not, either
3540 # the compiler is broken, or we cross compile.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3542 $as_echo_n "checking whether we are cross compiling... " >&6; }
3543 if test "$cross_compiling" != yes; then
3544 { { ac_try="$ac_link"
3545 case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548 esac
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_link") 2>&5
3552 ac_status=$?
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }
3555 if { ac_try='./conftest$ac_cv_exeext'
3556 { { case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_try") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; }; then
3566 cross_compiling=no
3567 else
3568 if test "$cross_compiling" = maybe; then
3569 cross_compiling=yes
3570 else
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error $? "cannot run C compiled programs.
3574 If you meant to cross compile, use \`--host'.
3575 See \`config.log' for more details" "$LINENO" 5; }
3576 fi
3577 fi
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3580 $as_echo "$cross_compiling" >&6; }
3581
3582 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3583 ac_clean_files=$ac_clean_files_save
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3585 $as_echo_n "checking for suffix of object files... " >&6; }
3586 if ${ac_cv_objext+:} false; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591
3592 int
3593 main ()
3594 {
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.o conftest.obj
3601 if { { ac_try="$ac_compile"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_compile") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; then :
3612 for ac_file in conftest.o conftest.obj conftest.*; do
3613 test -f "$ac_file" || continue;
3614 case $ac_file in
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3617 break;;
3618 esac
3619 done
3620 else
3621 $as_echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "cannot compute suffix of object files: cannot compile
3627 See \`config.log' for more details" "$LINENO" 5; }
3628 fi
3629 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3632 $as_echo "$ac_cv_objext" >&6; }
3633 OBJEXT=$ac_cv_objext
3634 ac_objext=$OBJEXT
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3636 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3637 if ${ac_cv_c_compiler_gnu+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642
3643 int
3644 main ()
3645 {
3646 #ifndef __GNUC__
3647 choke me
3648 #endif
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_compiler_gnu=yes
3656 else
3657 ac_compiler_gnu=no
3658 fi
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661
3662 fi
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3664 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3665 if test $ac_compiler_gnu = yes; then
3666 GCC=yes
3667 else
3668 GCC=
3669 fi
3670 ac_test_CFLAGS=${CFLAGS+set}
3671 ac_save_CFLAGS=$CFLAGS
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3673 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3674 if ${ac_cv_prog_cc_g+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 ac_save_c_werror_flag=$ac_c_werror_flag
3678 ac_c_werror_flag=yes
3679 ac_cv_prog_cc_g=no
3680 CFLAGS="-g"
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_prog_cc_g=yes
3694 else
3695 CFLAGS=""
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698
3699 int
3700 main ()
3701 {
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708
3709 else
3710 ac_c_werror_flag=$ac_save_c_werror_flag
3711 CFLAGS="-g"
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714
3715 int
3716 main ()
3717 {
3718
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_g=yes
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 fi
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 ac_c_werror_flag=$ac_save_c_werror_flag
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3734 $as_echo "$ac_cv_prog_cc_g" >&6; }
3735 if test "$ac_test_CFLAGS" = set; then
3736 CFLAGS=$ac_save_CFLAGS
3737 elif test $ac_cv_prog_cc_g = yes; then
3738 if test "$GCC" = yes; then
3739 CFLAGS="-g -O2"
3740 else
3741 CFLAGS="-g"
3742 fi
3743 else
3744 if test "$GCC" = yes; then
3745 CFLAGS="-O2"
3746 else
3747 CFLAGS=
3748 fi
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3751 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3752 if ${ac_cv_prog_cc_c89+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 ac_cv_prog_cc_c89=no
3756 ac_save_CC=$CC
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #include <stdarg.h>
3760 #include <stdio.h>
3761 struct stat;
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3766 char **p;
3767 int i;
3768 {
3769 return p[i];
3770 }
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3772 {
3773 char *s;
3774 va_list v;
3775 va_start (v,p);
3776 s = g (p, va_arg (v,int));
3777 va_end (v);
3778 return s;
3779 }
3780
3781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3782 function prototypes and stuff, but not '\xHH' hex character constants.
3783 These don't provoke an error unfortunately, instead are silently treated
3784 as 'x'. The following induces an error, until -std is added to get
3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3786 array size at least. It's necessary to write '\x00'==0 to get something
3787 that's true only with -std. */
3788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789
3790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791 inside strings and character constants. */
3792 #define FOO(x) 'x'
3793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794
3795 int test (int i, double x);
3796 struct s1 {int (*f) (int a);};
3797 struct s2 {int (*f) (double a);};
3798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799 int argc;
3800 char **argv;
3801 int
3802 main ()
3803 {
3804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 do
3812 CC="$ac_save_CC $ac_arg"
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814 ac_cv_prog_cc_c89=$ac_arg
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext
3817 test "x$ac_cv_prog_cc_c89" != "xno" && break
3818 done
3819 rm -f conftest.$ac_ext
3820 CC=$ac_save_CC
3821
3822 fi
3823 # AC_CACHE_VAL
3824 case "x$ac_cv_prog_cc_c89" in
3825 x)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3827 $as_echo "none needed" >&6; } ;;
3828 xno)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3830 $as_echo "unsupported" >&6; } ;;
3831 *)
3832 CC="$CC $ac_cv_prog_cc_c89"
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3834 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3835 esac
3836 if test "x$ac_cv_prog_cc_c89" != xno; then :
3837
3838 fi
3839
3840 ac_ext=c
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846 depcc="$CC" am_compiler_list=
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3849 $as_echo_n "checking dependency style of $depcc... " >&6; }
3850 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854 # We make a subdir and do the tests there. Otherwise we can end up
3855 # making bogus files that we don't know about and never remove. For
3856 # instance it was reported that on HP-UX the gcc test will end up
3857 # making a dummy file named 'D' -- because '-MD' means "put the output
3858 # in D".
3859 rm -rf conftest.dir
3860 mkdir conftest.dir
3861 # Copy depcomp to subdir because otherwise we won't find it if we're
3862 # using a relative directory.
3863 cp "$am_depcomp" conftest.dir
3864 cd conftest.dir
3865 # We will build objects and dependencies in a subdirectory because
3866 # it helps to detect inapplicable dependency modes. For instance
3867 # both Tru64's cc and ICC support -MD to output dependencies as a
3868 # side effect of compilation, but ICC will put the dependencies in
3869 # the current directory while Tru64 will put them in the object
3870 # directory.
3871 mkdir sub
3872
3873 am_cv_CC_dependencies_compiler_type=none
3874 if test "$am_compiler_list" = ""; then
3875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3876 fi
3877 am__universal=false
3878 case " $depcc " in #(
3879 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3880 esac
3881
3882 for depmode in $am_compiler_list; do
3883 # Setup a source with many dependencies, because some compilers
3884 # like to wrap large dependency lists on column 80 (with \), and
3885 # we should not choose a depcomp mode which is confused by this.
3886 #
3887 # We need to recreate these files for each test, as the compiler may
3888 # overwrite some of them when testing with obscure command lines.
3889 # This happens at least with the AIX C compiler.
3890 : > sub/conftest.c
3891 for i in 1 2 3 4 5 6; do
3892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3894 # Solaris 10 /bin/sh.
3895 echo '/* dummy */' > sub/conftst$i.h
3896 done
3897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3898
3899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3900 # mode. It turns out that the SunPro C++ compiler does not properly
3901 # handle '-M -o', and we need to detect this. Also, some Intel
3902 # versions had trouble with output in subdirs.
3903 am__obj=sub/conftest.${OBJEXT-o}
3904 am__minus_obj="-o $am__obj"
3905 case $depmode in
3906 gcc)
3907 # This depmode causes a compiler race in universal mode.
3908 test "$am__universal" = false || continue
3909 ;;
3910 nosideeffect)
3911 # After this tag, mechanisms are not by side-effect, so they'll
3912 # only be used when explicitly requested.
3913 if test "x$enable_dependency_tracking" = xyes; then
3914 continue
3915 else
3916 break
3917 fi
3918 ;;
3919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3920 # This compiler won't grok '-c -o', but also, the minuso test has
3921 # not run yet. These depmodes are late enough in the game, and
3922 # so weak that their functioning should not be impacted.
3923 am__obj=conftest.${OBJEXT-o}
3924 am__minus_obj=
3925 ;;
3926 none) break ;;
3927 esac
3928 if depmode=$depmode \
3929 source=sub/conftest.c object=$am__obj \
3930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3932 >/dev/null 2>conftest.err &&
3933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937 # icc doesn't choke on unknown options, it will just issue warnings
3938 # or remarks (even with -Werror). So we grep stderr for any message
3939 # that says an option was ignored or not supported.
3940 # When given -MP, icc 7.0 and 7.1 complain thusly:
3941 # icc: Command line warning: ignoring option '-M'; no argument required
3942 # The diagnosis changed in icc 8.0:
3943 # icc: Command line remark: option '-MP' not supported
3944 if (grep 'ignoring option' conftest.err ||
3945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946 am_cv_CC_dependencies_compiler_type=$depmode
3947 break
3948 fi
3949 fi
3950 done
3951
3952 cd ..
3953 rm -rf conftest.dir
3954 else
3955 am_cv_CC_dependencies_compiler_type=none
3956 fi
3957
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3960 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3961 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3962
3963 if
3964 test "x$enable_dependency_tracking" != xno \
3965 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3966 am__fastdepCC_TRUE=
3967 am__fastdepCC_FALSE='#'
3968 else
3969 am__fastdepCC_TRUE='#'
3970 am__fastdepCC_FALSE=
3971 fi
3972
3973
3974
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3982 # On Suns, sometimes $CPP names a directory.
3983 if test -n "$CPP" && test -d "$CPP"; then
3984 CPP=
3985 fi
3986 if test -z "$CPP"; then
3987 if ${ac_cv_prog_CPP+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 # Double quotes because CPP needs to be expanded
3991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3992 do
3993 ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3995 do
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009 Syntax error
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4012
4013 else
4014 # Broken: fails on valid input.
4015 continue
4016 fi
4017 rm -f conftest.err conftest.i conftest.$ac_ext
4018
4019 # OK, works on sane cases. Now check whether nonexistent headers
4020 # can be detected and how.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if ac_fn_c_try_cpp "$LINENO"; then :
4026 # Broken: success on invalid input.
4027 continue
4028 else
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4032 fi
4033 rm -f conftest.err conftest.i conftest.$ac_ext
4034
4035 done
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.i conftest.err conftest.$ac_ext
4038 if $ac_preproc_ok; then :
4039 break
4040 fi
4041
4042 done
4043 ac_cv_prog_CPP=$CPP
4044
4045 fi
4046 CPP=$ac_cv_prog_CPP
4047 else
4048 ac_cv_prog_CPP=$CPP
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4051 $as_echo "$CPP" >&6; }
4052 ac_preproc_ok=false
4053 for ac_c_preproc_warn_flag in '' yes
4054 do
4055 # Use a header file that comes with gcc, so configuring glibc
4056 # with a fresh cross-compiler works.
4057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058 # <limits.h> exists even on freestanding compilers.
4059 # On the NeXT, cc -E runs the code through the compiler's parser,
4060 # not just through cpp. "Syntax error" is here to catch this case.
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #ifdef __STDC__
4064 # include <limits.h>
4065 #else
4066 # include <assert.h>
4067 #endif
4068 Syntax error
4069 _ACEOF
4070 if ac_fn_c_try_cpp "$LINENO"; then :
4071
4072 else
4073 # Broken: fails on valid input.
4074 continue
4075 fi
4076 rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078 # OK, works on sane cases. Now check whether nonexistent headers
4079 # can be detected and how.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <ac_nonexistent.h>
4083 _ACEOF
4084 if ac_fn_c_try_cpp "$LINENO"; then :
4085 # Broken: success on invalid input.
4086 continue
4087 else
4088 # Passes both tests.
4089 ac_preproc_ok=:
4090 break
4091 fi
4092 rm -f conftest.err conftest.i conftest.$ac_ext
4093
4094 done
4095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4096 rm -f conftest.i conftest.err conftest.$ac_ext
4097 if $ac_preproc_ok; then :
4098
4099 else
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4103 See \`config.log' for more details" "$LINENO" 5; }
4104 fi
4105
4106 ac_ext=c
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4114 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4115 if ${ac_cv_path_GREP+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -z "$GREP"; then
4119 ac_path_GREP_found=false
4120 # Loop through the user's path and test for each of PROGNAME-LIST
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4123 do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_prog in grep ggrep; do
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4129 as_fn_executable_p "$ac_path_GREP" || continue
4130 # Check for GNU ac_path_GREP and select it if it is found.
4131 # Check for GNU $ac_path_GREP
4132 case `"$ac_path_GREP" --version 2>&1` in
4133 *GNU*)
4134 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4135 *)
4136 ac_count=0
4137 $as_echo_n 0123456789 >"conftest.in"
4138 while :
4139 do
4140 cat "conftest.in" "conftest.in" >"conftest.tmp"
4141 mv "conftest.tmp" "conftest.in"
4142 cp "conftest.in" "conftest.nl"
4143 $as_echo 'GREP' >> "conftest.nl"
4144 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4146 as_fn_arith $ac_count + 1 && ac_count=$as_val
4147 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4148 # Best one so far, save it but keep looking for a better one
4149 ac_cv_path_GREP="$ac_path_GREP"
4150 ac_path_GREP_max=$ac_count
4151 fi
4152 # 10*(2^10) chars as input seems more than enough
4153 test $ac_count -gt 10 && break
4154 done
4155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4156 esac
4157
4158 $ac_path_GREP_found && break 3
4159 done
4160 done
4161 done
4162 IFS=$as_save_IFS
4163 if test -z "$ac_cv_path_GREP"; then
4164 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4165 fi
4166 else
4167 ac_cv_path_GREP=$GREP
4168 fi
4169
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4172 $as_echo "$ac_cv_path_GREP" >&6; }
4173 GREP="$ac_cv_path_GREP"
4174
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4177 $as_echo_n "checking for egrep... " >&6; }
4178 if ${ac_cv_path_EGREP+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4182 then ac_cv_path_EGREP="$GREP -E"
4183 else
4184 if test -z "$EGREP"; then
4185 ac_path_EGREP_found=false
4186 # Loop through the user's path and test for each of PROGNAME-LIST
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189 do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in egrep; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4195 as_fn_executable_p "$ac_path_EGREP" || continue
4196 # Check for GNU ac_path_EGREP and select it if it is found.
4197 # Check for GNU $ac_path_EGREP
4198 case `"$ac_path_EGREP" --version 2>&1` in
4199 *GNU*)
4200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4201 *)
4202 ac_count=0
4203 $as_echo_n 0123456789 >"conftest.in"
4204 while :
4205 do
4206 cat "conftest.in" "conftest.in" >"conftest.tmp"
4207 mv "conftest.tmp" "conftest.in"
4208 cp "conftest.in" "conftest.nl"
4209 $as_echo 'EGREP' >> "conftest.nl"
4210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212 as_fn_arith $ac_count + 1 && ac_count=$as_val
4213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4214 # Best one so far, save it but keep looking for a better one
4215 ac_cv_path_EGREP="$ac_path_EGREP"
4216 ac_path_EGREP_max=$ac_count
4217 fi
4218 # 10*(2^10) chars as input seems more than enough
4219 test $ac_count -gt 10 && break
4220 done
4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222 esac
4223
4224 $ac_path_EGREP_found && break 3
4225 done
4226 done
4227 done
4228 IFS=$as_save_IFS
4229 if test -z "$ac_cv_path_EGREP"; then
4230 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4231 fi
4232 else
4233 ac_cv_path_EGREP=$EGREP
4234 fi
4235
4236 fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4239 $as_echo "$ac_cv_path_EGREP" >&6; }
4240 EGREP="$ac_cv_path_EGREP"
4241
4242
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4244 $as_echo_n "checking for ANSI C header files... " >&6; }
4245 if ${ac_cv_header_stdc+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <stdlib.h>
4251 #include <stdarg.h>
4252 #include <string.h>
4253 #include <float.h>
4254
4255 int
4256 main ()
4257 {
4258
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_header_stdc=yes
4265 else
4266 ac_cv_header_stdc=no
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269
4270 if test $ac_cv_header_stdc = yes; then
4271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <string.h>
4275
4276 _ACEOF
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278 $EGREP "memchr" >/dev/null 2>&1; then :
4279
4280 else
4281 ac_cv_header_stdc=no
4282 fi
4283 rm -f conftest*
4284
4285 fi
4286
4287 if test $ac_cv_header_stdc = yes; then
4288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291 #include <stdlib.h>
4292
4293 _ACEOF
4294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4295 $EGREP "free" >/dev/null 2>&1; then :
4296
4297 else
4298 ac_cv_header_stdc=no
4299 fi
4300 rm -f conftest*
4301
4302 fi
4303
4304 if test $ac_cv_header_stdc = yes; then
4305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4306 if test "$cross_compiling" = yes; then :
4307 :
4308 else
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 #include <ctype.h>
4312 #include <stdlib.h>
4313 #if ((' ' & 0x0FF) == 0x020)
4314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4316 #else
4317 # define ISLOWER(c) \
4318 (('a' <= (c) && (c) <= 'i') \
4319 || ('j' <= (c) && (c) <= 'r') \
4320 || ('s' <= (c) && (c) <= 'z'))
4321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4322 #endif
4323
4324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4325 int
4326 main ()
4327 {
4328 int i;
4329 for (i = 0; i < 256; i++)
4330 if (XOR (islower (i), ISLOWER (i))
4331 || toupper (i) != TOUPPER (i))
4332 return 2;
4333 return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_run "$LINENO"; then :
4337
4338 else
4339 ac_cv_header_stdc=no
4340 fi
4341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4342 conftest.$ac_objext conftest.beam conftest.$ac_ext
4343 fi
4344
4345 fi
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4348 $as_echo "$ac_cv_header_stdc" >&6; }
4349 if test $ac_cv_header_stdc = yes; then
4350
4351 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4352
4353 fi
4354
4355 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4357 inttypes.h stdint.h unistd.h
4358 do :
4359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4360 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4361 "
4362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4363 cat >>confdefs.h <<_ACEOF
4364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4365 _ACEOF
4366
4367 fi
4368
4369 done
4370
4371
4372 pc_cflags_store=$CPPFLAGS
4373 CPPFLAGS="$CFLAGS $PYTHON_INCLUDES"
4374 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
4375 if test "x$ac_cv_header_Python_h" = xyes; then :
4376
4377 else
4378 as_fn_error $? "could not find Python headers" "$LINENO" 5
4379 fi
4380
4381
4382 CPPFLAGS=$pc_cflags_store
4383
4384
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5
4386 $as_echo_n "checking for Python prefix... " >&6; }
4387 if ${pc_cv_python_prefix+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -x "$PYTHON_CONFIG"; then
4391 pc_cv_python_prefix=`$PYTHON_CONFIG --prefix 2>> 5`
4392 else
4393 ac_ext=py
4394 ac_compile='chmod +x conftest.$ac_ext >&5'
4395 ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
4396 pc_cv_python_prefix=cat > conftest.$ac_ext <<_ACEOF
4397 #!$PYTHON
4398 import sys
4399
4400 if __name__ == '__main__':
4401 sys.exit(sys.prefix)
4402
4403 _ACEOF
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409 fi
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_prefix" >&5
4412 $as_echo "$pc_cv_python_prefix" >&6; }
4413 PYTHON_PREFIX=$pc_cv_python_prefix
4414
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages directory" >&5
4416 $as_echo_n "checking for Python site-packages directory... " >&6; }
4417 if ${pc_cv_python_site_dir+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 ac_ext=py
4421 ac_compile='chmod +x conftest.$ac_ext >&5'
4422 ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
4423 if test "x$prefix" = xNONE
4424 then
4425 pc_py_prefix=$ac_default_prefix
4426 else
4427 pc_py_prefix=$prefix
4428 fi
4429 cat > conftest.$ac_ext <<_ACEOF
4430
4431 #!$PYTHON
4432 import sys
4433 try:
4434 import sysconfig
4435 except:
4436 from distutils import sysconfig
4437 sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py_prefix')
4438 else:
4439 sitedir = sysconfig.get_path('purelib', vars={'base':'$pc_py_prefix'})
4440
4441 if __name__ == '__main__':
4442 sys.stdout.write(sitedir)
4443
4444 _ACEOF
4445 pc_cv_python_site_dir=`$PYTHON conftest.py`
4446 ac_ext=c
4447 ac_cpp='$CPP $CPPFLAGS'
4448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4451 case $pc_cv_python_site_dir in
4452 $pc_py_prefix*)
4453 pc__strip_prefix=`echo "$pc_py_prefix" | sed 's|.|.|g'`
4454 pc_cv_python_site_dir=`echo "$pc_cv_python_site_dir" | sed "s,^$pc__strip_prefix/,,"`
4455 ;;
4456 *)
4457 case $pc_py_prefix in
4458 /usr|/System*) ;;
4459 *)
4460 pc_cv_python_site_dir=lib/python$PYTHON_VERSION/site-packages
4461 ;;
4462 esac
4463 ;;
4464 esac
4465
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_site_dir" >&5
4468 $as_echo "$pc_cv_python_site_dir" >&6; }
4469 pythondir=\${prefix}/$pc_cv_python_site_dir
4470
4471 pkgpythondir=\${pythondir}/$PACKAGE
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python exec-prefix" >&5
4474 $as_echo_n "checking for Python exec-prefix... " >&6; }
4475 if ${pc_cv_python_exec_prefix+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -x "$PYTHON_CONFIG"; then
4479 pc_cv_python_exec_prefix=`$PYTHON_CONFIG --exec-prefix 2>> 5`
4480 else
4481 ac_ext=py
4482 ac_compile='chmod +x conftest.$ac_ext >&5'
4483 ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
4484 pc_cv_python_exec_prefix=cat > conftest.$ac_ext <<_ACEOF
4485 #!$PYTHON
4486 import sys
4487
4488 if __name__ == '__main__':
4489 sys.exit(sys.exec_prefix)
4490
4491 _ACEOF
4492 ac_ext=c
4493 ac_cpp='$CPP $CPPFLAGS'
4494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497 fi
4498
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_prefix" >&5
4501 $as_echo "$pc_cv_python_exec_prefix" >&6; }
4502 PYTHON_EXEC_PREFIX=$pc_cv_python_exec_prefix
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python extension module directory" >&5
4505 $as_echo_n "checking for Python extension module directory... " >&6; }
4506 if ${pc_cv_python_exec_dir+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 ac_ext=py
4510 ac_compile='chmod +x conftest.$ac_ext >&5'
4511 ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
4512 if test "x$pc_cv_python_exec_prefix" = xNONE
4513 then
4514 pc_py_exec_prefix=$pc_cv_python_prefix
4515 else
4516 pc_py_exec_prefix=$pc_cv_python_exec_prefix
4517 fi
4518 cat > conftest.$ac_ext <<_ACEOF
4519
4520 #!$PYTHON
4521 import sys
4522 try:
4523 import sysconfig
4524 except:
4525 from distutils import sysconfig
4526 sitedir = sysconfig.get_python_lib(True, False, prefix='$pc_py_exec_prefix')
4527 else:
4528 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$pc_py_exec_prefix'})
4529
4530 if __name__ == '__main__':
4531 sys.stdout.write(sitedir)
4532
4533 _ACEOF
4534 pc_cv_python_exec_dir=`$PYTHON conftest.py`
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 case $pc_cv_python_exec_dir in
4541 $pc_py_exec_prefix*)
4542 pc__strip_prefix=`echo "$pc_py_exec_prefix" | sed 's|.|.|g'`
4543 pc_cv_python_exec_dir=`echo "$pc_cv_python_exec_dir" | sed "s,^$pc__strip_prefix/,,"`
4544 ;;
4545 *)
4546 case $pc_py_exec_prefix in
4547 /usr|/System*) ;;
4548 *)
4549 pc_cv_python_exec_dir=lib/python$PYTHON_VERSION/site-packages
4550 ;;
4551 esac
4552 ;;
4553 esac
4554
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_dir" >&5
4557 $as_echo "$pc_cv_python_exec_dir" >&6; }
4558 pyexecdir=\${exec_prefix}/$pc_cv_python_pyexecdir
4559
4560 pkgpyexecdir=\${pyexecdir}/$PACKAGE
4561
4562
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 'lxml' library" >&5
4565 $as_echo_n "checking for Python 'lxml' library... " >&6; }
4566 if ${pc_cv_python_module_lxml+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_ext=py
4570 ac_compile='chmod +x conftest.$ac_ext >&5'
4571 ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
4572 if test "$cross_compiling" = yes; then :
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "cannot run test program while cross compiling
4576 See \`config.log' for more details" "$LINENO" 5; }
4577 else
4578 cat > conftest.$ac_ext <<_ACEOF
4579 #!$PYTHON
4580 import sys
4581 try:
4582 import lxml
4583 except:
4584 sys.exit(1)
4585 else:
4586 sys.exit(0)
4587
4588
4589 _ACEOF
4590 if ac_fn_py_try_run "$LINENO"; then :
4591 pc_cv_python_module_lxml="yes"
4592 else
4593 pc_cv_python_module_lxml="no"
4594 fi
4595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4596 conftest.$ac_objext conftest.beam conftest.$ac_ext
4597 fi
4598
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_lxml" >&5
4607 $as_echo "$pc_cv_python_module_lxml" >&6; }
4608 if test "$pc_cv_python_module_lxml" = "no"; then :
4609 as_fn_error $? "could not find Python lxml module" "$LINENO" 5
4610 fi
4611
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 'Image' library" >&5
4614 $as_echo_n "checking for Python 'Image' library... " >&6; }
4615 if ${pc_cv_python_module_Image+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 ac_ext=py
4619 ac_compile='chmod +x conftest.$ac_ext >&5'
4620 ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
4621 if test "$cross_compiling" = yes; then :
4622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4624 as_fn_error $? "cannot run test program while cross compiling
4625 See \`config.log' for more details" "$LINENO" 5; }
4626 else
4627 cat > conftest.$ac_ext <<_ACEOF
4628 #!$PYTHON
4629 import sys
4630 try:
4631 import Image
4632 except:
4633 sys.exit(1)
4634 else:
4635 sys.exit(0)
4636
4637
4638 _ACEOF
4639 if ac_fn_py_try_run "$LINENO"; then :
4640 pc_cv_python_module_Image="yes"
4641 else
4642 pc_cv_python_module_Image="no"
4643 fi
4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4645 conftest.$ac_objext conftest.beam conftest.$ac_ext
4646 fi
4647
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_Image" >&5
4656 $as_echo "$pc_cv_python_module_Image" >&6; }
4657 if test "$pc_cv_python_module_Image" = "no"; then :
4658 as_fn_error $? "could not find Python Imaging Library" "$LINENO" 5
4659 fi
4660
4661
4662
4663
4664 # Files to be configured
4665 ac_config_files="$ac_config_files Makefile"
4666
4667 # Generate config.status
4668 cat >confcache <<\_ACEOF
4669 # This file is a shell script that caches the results of configure
4670 # tests run on this system so they can be shared between configure
4671 # scripts and configure runs, see configure's option --config-cache.
4672 # It is not useful on other systems. If it contains results you don't
4673 # want to keep, you may remove or edit it.
4674 #
4675 # config.status only pays attention to the cache file if you give it
4676 # the --recheck option to rerun configure.
4677 #
4678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4680 # following values.
4681
4682 _ACEOF
4683
4684 # The following way of writing the cache mishandles newlines in values,
4685 # but we know of no workaround that is simple, portable, and efficient.
4686 # So, we kill variables containing newlines.
4687 # Ultrix sh set writes to stderr and can't be redirected directly,
4688 # and sets the high bit in the cache file unless we assign to the vars.
4689 (
4690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4691 eval ac_val=\$$ac_var
4692 case $ac_val in #(
4693 *${as_nl}*)
4694 case $ac_var in #(
4695 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4697 esac
4698 case $ac_var in #(
4699 _ | IFS | as_nl) ;; #(
4700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4701 *) { eval $ac_var=; unset $ac_var;} ;;
4702 esac ;;
4703 esac
4704 done
4705
4706 (set) 2>&1 |
4707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4708 *${as_nl}ac_space=\ *)
4709 # `set' does not quote correctly, so add quotes: double-quote
4710 # substitution turns \\\\ into \\, and sed turns \\ into \.
4711 sed -n \
4712 "s/'/'\\\\''/g;
4713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4714 ;; #(
4715 *)
4716 # `set' quotes correctly as required by POSIX, so do not add quotes.
4717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4718 ;;
4719 esac |
4720 sort
4721 ) |
4722 sed '
4723 /^ac_cv_env_/b end
4724 t clear
4725 :clear
4726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4727 t end
4728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4729 :end' >>confcache
4730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4731 if test -w "$cache_file"; then
4732 if test "x$cache_file" != "x/dev/null"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4734 $as_echo "$as_me: updating cache $cache_file" >&6;}
4735 if test ! -f "$cache_file" || test -h "$cache_file"; then
4736 cat confcache >"$cache_file"
4737 else
4738 case $cache_file in #(
4739 */* | ?:*)
4740 mv -f confcache "$cache_file"$$ &&
4741 mv -f "$cache_file"$$ "$cache_file" ;; #(
4742 *)
4743 mv -f confcache "$cache_file" ;;
4744 esac
4745 fi
4746 fi
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4749 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4750 fi
4751 fi
4752 rm -f confcache
4753
4754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4755 # Let make expand exec_prefix.
4756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4757
4758 # Transform confdefs.h into DEFS.
4759 # Protect against shell expansion while executing Makefile rules.
4760 # Protect against Makefile macro expansion.
4761 #
4762 # If the first sed substitution is executed (which looks for macros that
4763 # take arguments), then branch to the quote section. Otherwise,
4764 # look for a macro that doesn't take arguments.
4765 ac_script='
4766 :mline
4767 /\\$/{
4768 N
4769 s,\\\n,,
4770 b mline
4771 }
4772 t clear
4773 :clear
4774 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4775 t quote
4776 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4777 t quote
4778 b any
4779 :quote
4780 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4781 s/\[/\\&/g
4782 s/\]/\\&/g
4783 s/\$/$$/g
4784 H
4785 :any
4786 ${
4787 g
4788 s/^\n//
4789 s/\n/ /g
4790 p
4791 }
4792 '
4793 DEFS=`sed -n "$ac_script" confdefs.h`
4794
4795
4796 ac_libobjs=
4797 ac_ltlibobjs=
4798 U=
4799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4800 # 1. Remove the extension, and $U if already installed.
4801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4802 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4804 # will be set to the directory where LIBOBJS objects are built.
4805 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4806 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4807 done
4808 LIBOBJS=$ac_libobjs
4809
4810 LTLIBOBJS=$ac_ltlibobjs
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4814 $as_echo_n "checking that generated files are newer than configure... " >&6; }
4815 if test -n "$am_sleep_pid"; then
4816 # Hide warnings about reused PIDs.
4817 wait $am_sleep_pid 2>/dev/null
4818 fi
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4820 $as_echo "done" >&6; }
4821 if test -n "$EXEEXT"; then
4822 am__EXEEXT_TRUE=
4823 am__EXEEXT_FALSE='#'
4824 else
4825 am__EXEEXT_TRUE='#'
4826 am__EXEEXT_FALSE=
4827 fi
4828
4829 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4830 as_fn_error $? "conditional \"AMDEP\" was never defined.
4831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4832 fi
4833 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4834 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4836 fi
4837
4838 : "${CONFIG_STATUS=./config.status}"
4839 ac_write_fail=0
4840 ac_clean_files_save=$ac_clean_files
4841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4843 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4844 as_write_fail=0
4845 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4846 #! $SHELL
4847 # Generated by $as_me.
4848 # Run this file to recreate the current configuration.
4849 # Compiler output produced by configure, useful for debugging
4850 # configure, is in config.log if it exists.
4851
4852 debug=false
4853 ac_cs_recheck=false
4854 ac_cs_silent=false
4855
4856 SHELL=\${CONFIG_SHELL-$SHELL}
4857 export SHELL
4858 _ASEOF
4859 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4860 ## -------------------- ##
4861 ## M4sh Initialization. ##
4862 ## -------------------- ##
4863
4864 # Be more Bourne compatible
4865 DUALCASE=1; export DUALCASE # for MKS sh
4866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4867 emulate sh
4868 NULLCMD=:
4869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4870 # is contrary to our usage. Disable this feature.
4871 alias -g '${1+"$@"}'='"$@"'
4872 setopt NO_GLOB_SUBST
4873 else
4874 case `(set -o) 2>/dev/null` in #(
4875 *posix*) :
4876 set -o posix ;; #(
4877 *) :
4878 ;;
4879 esac
4880 fi
4881
4882
4883 as_nl='
4884 '
4885 export as_nl
4886 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4887 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4888 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4889 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4890 # Prefer a ksh shell builtin over an external printf program on Solaris,
4891 # but without wasting forks for bash or zsh.
4892 if test -z "$BASH_VERSION$ZSH_VERSION" \
4893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4894 as_echo='print -r --'
4895 as_echo_n='print -rn --'
4896 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4897 as_echo='printf %s\n'
4898 as_echo_n='printf %s'
4899 else
4900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4902 as_echo_n='/usr/ucb/echo -n'
4903 else
4904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4905 as_echo_n_body='eval
4906 arg=$1;
4907 case $arg in #(
4908 *"$as_nl"*)
4909 expr "X$arg" : "X\\(.*\\)$as_nl";
4910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4911 esac;
4912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4913 '
4914 export as_echo_n_body
4915 as_echo_n='sh -c $as_echo_n_body as_echo'
4916 fi
4917 export as_echo_body
4918 as_echo='sh -c $as_echo_body as_echo'
4919 fi
4920
4921 # The user is always right.
4922 if test "${PATH_SEPARATOR+set}" != set; then
4923 PATH_SEPARATOR=:
4924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4926 PATH_SEPARATOR=';'
4927 }
4928 fi
4929
4930
4931 # IFS
4932 # We need space, tab and new line, in precisely that order. Quoting is
4933 # there to prevent editors from complaining about space-tab.
4934 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4935 # splitting by setting IFS to empty value.)
4936 IFS=" "" $as_nl"
4937
4938 # Find who we are. Look in the path if we contain no directory separator.
4939 as_myself=
4940 case $0 in #((
4941 *[\\/]* ) as_myself=$0 ;;
4942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4948 done
4949 IFS=$as_save_IFS
4950
4951 ;;
4952 esac
4953 # We did not find ourselves, most probably we were run as `sh COMMAND'
4954 # in which case we are not to be found in the path.
4955 if test "x$as_myself" = x; then
4956 as_myself=$0
4957 fi
4958 if test ! -f "$as_myself"; then
4959 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4960 exit 1
4961 fi
4962
4963 # Unset variables that we do not need and which cause bugs (e.g. in
4964 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4965 # suppresses any "Segmentation fault" message there. '((' could
4966 # trigger a bug in pdksh 5.2.14.
4967 for as_var in BASH_ENV ENV MAIL MAILPATH
4968 do eval test x\${$as_var+set} = xset \
4969 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4970 done
4971 PS1='$ '
4972 PS2='> '
4973 PS4='+ '
4974
4975 # NLS nuisances.
4976 LC_ALL=C
4977 export LC_ALL
4978 LANGUAGE=C
4979 export LANGUAGE
4980
4981 # CDPATH.
4982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4983
4984
4985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4986 # ----------------------------------------
4987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4989 # script with STATUS, using 1 if that was 0.
4990 as_fn_error ()
4991 {
4992 as_status=$1; test $as_status -eq 0 && as_status=1
4993 if test "$4"; then
4994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4995 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4996 fi
4997 $as_echo "$as_me: error: $2" >&2
4998 as_fn_exit $as_status
4999 } # as_fn_error
5000
5001
5002 # as_fn_set_status STATUS
5003 # -----------------------
5004 # Set $? to STATUS, without forking.
5005 as_fn_set_status ()
5006 {
5007 return $1
5008 } # as_fn_set_status
5009
5010 # as_fn_exit STATUS
5011 # -----------------
5012 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5013 as_fn_exit ()
5014 {
5015 set +e
5016 as_fn_set_status $1
5017 exit $1
5018 } # as_fn_exit
5019
5020 # as_fn_unset VAR
5021 # ---------------
5022 # Portably unset VAR.
5023 as_fn_unset ()
5024 {
5025 { eval $1=; unset $1;}
5026 }
5027 as_unset=as_fn_unset
5028 # as_fn_append VAR VALUE
5029 # ----------------------
5030 # Append the text in VALUE to the end of the definition contained in VAR. Take
5031 # advantage of any shell optimizations that allow amortized linear growth over
5032 # repeated appends, instead of the typical quadratic growth present in naive
5033 # implementations.
5034 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5035 eval 'as_fn_append ()
5036 {
5037 eval $1+=\$2
5038 }'
5039 else
5040 as_fn_append ()
5041 {
5042 eval $1=\$$1\$2
5043 }
5044 fi # as_fn_append
5045
5046 # as_fn_arith ARG...
5047 # ------------------
5048 # Perform arithmetic evaluation on the ARGs, and store the result in the
5049 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5050 # must be portable across $(()) and expr.
5051 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5052 eval 'as_fn_arith ()
5053 {
5054 as_val=$(( $* ))
5055 }'
5056 else
5057 as_fn_arith ()
5058 {
5059 as_val=`expr "$@" || test $? -eq 1`
5060 }
5061 fi # as_fn_arith
5062
5063
5064 if expr a : '\(a\)' >/dev/null 2>&1 &&
5065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5066 as_expr=expr
5067 else
5068 as_expr=false
5069 fi
5070
5071 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5072 as_basename=basename
5073 else
5074 as_basename=false
5075 fi
5076
5077 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5078 as_dirname=dirname
5079 else
5080 as_dirname=false
5081 fi
5082
5083 as_me=`$as_basename -- "$0" ||
5084 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5085 X"$0" : 'X\(//\)$' \| \
5086 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5087 $as_echo X/"$0" |
5088 sed '/^.*\/\([^/][^/]*\)\/*$/{
5089 s//\1/
5090 q
5091 }
5092 /^X\/\(\/\/\)$/{
5093 s//\1/
5094 q
5095 }
5096 /^X\/\(\/\).*/{
5097 s//\1/
5098 q
5099 }
5100 s/.*/./; q'`
5101
5102 # Avoid depending upon Character Ranges.
5103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5106 as_cr_digits='0123456789'
5107 as_cr_alnum=$as_cr_Letters$as_cr_digits
5108
5109 ECHO_C= ECHO_N= ECHO_T=
5110 case `echo -n x` in #(((((
5111 -n*)
5112 case `echo 'xy\c'` in
5113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5114 xy) ECHO_C='\c';;
5115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5116 ECHO_T=' ';;
5117 esac;;
5118 *)
5119 ECHO_N='-n';;
5120 esac
5121
5122 rm -f conf$$ conf$$.exe conf$$.file
5123 if test -d conf$$.dir; then
5124 rm -f conf$$.dir/conf$$.file
5125 else
5126 rm -f conf$$.dir
5127 mkdir conf$$.dir 2>/dev/null
5128 fi
5129 if (echo >conf$$.file) 2>/dev/null; then
5130 if ln -s conf$$.file conf$$ 2>/dev/null; then
5131 as_ln_s='ln -s'
5132 # ... but there are two gotchas:
5133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5135 # In both cases, we have to default to `cp -pR'.
5136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5137 as_ln_s='cp -pR'
5138 elif ln conf$$.file conf$$ 2>/dev/null; then
5139 as_ln_s=ln
5140 else
5141 as_ln_s='cp -pR'
5142 fi
5143 else
5144 as_ln_s='cp -pR'
5145 fi
5146 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5147 rmdir conf$$.dir 2>/dev/null
5148
5149
5150 # as_fn_mkdir_p
5151 # -------------
5152 # Create "$as_dir" as a directory, including parents if necessary.
5153 as_fn_mkdir_p ()
5154 {
5155
5156 case $as_dir in #(
5157 -*) as_dir=./$as_dir;;
5158 esac
5159 test -d "$as_dir" || eval $as_mkdir_p || {
5160 as_dirs=
5161 while :; do
5162 case $as_dir in #(
5163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5164 *) as_qdir=$as_dir;;
5165 esac
5166 as_dirs="'$as_qdir' $as_dirs"
5167 as_dir=`$as_dirname -- "$as_dir" ||
5168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5169 X"$as_dir" : 'X\(//\)[^/]' \| \
5170 X"$as_dir" : 'X\(//\)$' \| \
5171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5172 $as_echo X"$as_dir" |
5173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5174 s//\1/
5175 q
5176 }
5177 /^X\(\/\/\)[^/].*/{
5178 s//\1/
5179 q
5180 }
5181 /^X\(\/\/\)$/{
5182 s//\1/
5183 q
5184 }
5185 /^X\(\/\).*/{
5186 s//\1/
5187 q
5188 }
5189 s/.*/./; q'`
5190 test -d "$as_dir" && break
5191 done
5192 test -z "$as_dirs" || eval "mkdir $as_dirs"
5193 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5194
5195
5196 } # as_fn_mkdir_p
5197 if mkdir -p . 2>/dev/null; then
5198 as_mkdir_p='mkdir -p "$as_dir"'
5199 else
5200 test -d ./-p && rmdir ./-p
5201 as_mkdir_p=false
5202 fi
5203
5204
5205 # as_fn_executable_p FILE
5206 # -----------------------
5207 # Test if FILE is an executable regular file.
5208 as_fn_executable_p ()
5209 {
5210 test -f "$1" && test -x "$1"
5211 } # as_fn_executable_p
5212 as_test_x='test -x'
5213 as_executable_p=as_fn_executable_p
5214
5215 # Sed expression to map a string onto a valid CPP name.
5216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5217
5218 # Sed expression to map a string onto a valid variable name.
5219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5220
5221
5222 exec 6>&1
5223 ## ----------------------------------- ##
5224 ## Main body of $CONFIG_STATUS script. ##
5225 ## ----------------------------------- ##
5226 _ASEOF
5227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5228
5229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5230 # Save the log message, to keep $0 and so on meaningful, and to
5231 # report actual input values of CONFIG_FILES etc. instead of their
5232 # values after options handling.
5233 ac_log="
5234 This file was extended by mediagoblin $as_me 0.3.1, which was
5235 generated by GNU Autoconf 2.69. Invocation command line was
5236
5237 CONFIG_FILES = $CONFIG_FILES
5238 CONFIG_HEADERS = $CONFIG_HEADERS
5239 CONFIG_LINKS = $CONFIG_LINKS
5240 CONFIG_COMMANDS = $CONFIG_COMMANDS
5241 $ $0 $@
5242
5243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5244 "
5245
5246 _ACEOF
5247
5248 case $ac_config_files in *"
5249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5250 esac
5251
5252
5253
5254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5255 # Files that config.status was made for.
5256 config_files="$ac_config_files"
5257 config_commands="$ac_config_commands"
5258
5259 _ACEOF
5260
5261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5262 ac_cs_usage="\
5263 \`$as_me' instantiates files and other configuration actions
5264 from templates according to the current configuration. Unless the files
5265 and actions are specified as TAGs, all are instantiated by default.
5266
5267 Usage: $0 [OPTION]... [TAG]...
5268
5269 -h, --help print this help, then exit
5270 -V, --version print version number and configuration settings, then exit
5271 --config print configuration, then exit
5272 -q, --quiet, --silent
5273 do not print progress messages
5274 -d, --debug don't remove temporary files
5275 --recheck update $as_me by reconfiguring in the same conditions
5276 --file=FILE[:TEMPLATE]
5277 instantiate the configuration file FILE
5278
5279 Configuration files:
5280 $config_files
5281
5282 Configuration commands:
5283 $config_commands
5284
5285 Report bugs to the package provider."
5286
5287 _ACEOF
5288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5289 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5290 ac_cs_version="\\
5291 mediagoblin config.status 0.3.1
5292 configured by $0, generated by GNU Autoconf 2.69,
5293 with options \\"\$ac_cs_config\\"
5294
5295 Copyright (C) 2012 Free Software Foundation, Inc.
5296 This config.status script is free software; the Free Software Foundation
5297 gives unlimited permission to copy, distribute and modify it."
5298
5299 ac_pwd='$ac_pwd'
5300 srcdir='$srcdir'
5301 INSTALL='$INSTALL'
5302 MKDIR_P='$MKDIR_P'
5303 AWK='$AWK'
5304 test -n "\$AWK" || AWK=awk
5305 _ACEOF
5306
5307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5308 # The default lists apply if the user does not specify any file.
5309 ac_need_defaults=:
5310 while test $# != 0
5311 do
5312 case $1 in
5313 --*=?*)
5314 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5315 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5316 ac_shift=:
5317 ;;
5318 --*=)
5319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5320 ac_optarg=
5321 ac_shift=:
5322 ;;
5323 *)
5324 ac_option=$1
5325 ac_optarg=$2
5326 ac_shift=shift
5327 ;;
5328 esac
5329
5330 case $ac_option in
5331 # Handling of the options.
5332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5333 ac_cs_recheck=: ;;
5334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5335 $as_echo "$ac_cs_version"; exit ;;
5336 --config | --confi | --conf | --con | --co | --c )
5337 $as_echo "$ac_cs_config"; exit ;;
5338 --debug | --debu | --deb | --de | --d | -d )
5339 debug=: ;;
5340 --file | --fil | --fi | --f )
5341 $ac_shift
5342 case $ac_optarg in
5343 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5344 '') as_fn_error $? "missing file argument" ;;
5345 esac
5346 as_fn_append CONFIG_FILES " '$ac_optarg'"
5347 ac_need_defaults=false;;
5348 --he | --h | --help | --hel | -h )
5349 $as_echo "$ac_cs_usage"; exit ;;
5350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5351 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5352 ac_cs_silent=: ;;
5353
5354 # This is an error.
5355 -*) as_fn_error $? "unrecognized option: \`$1'
5356 Try \`$0 --help' for more information." ;;
5357
5358 *) as_fn_append ac_config_targets " $1"
5359 ac_need_defaults=false ;;
5360
5361 esac
5362 shift
5363 done
5364
5365 ac_configure_extra_args=
5366
5367 if $ac_cs_silent; then
5368 exec 6>/dev/null
5369 ac_configure_extra_args="$ac_configure_extra_args --silent"
5370 fi
5371
5372 _ACEOF
5373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5374 if \$ac_cs_recheck; then
5375 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5376 shift
5377 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5378 CONFIG_SHELL='$SHELL'
5379 export CONFIG_SHELL
5380 exec "\$@"
5381 fi
5382
5383 _ACEOF
5384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5385 exec 5>>config.log
5386 {
5387 echo
5388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5389 ## Running $as_me. ##
5390 _ASBOX
5391 $as_echo "$ac_log"
5392 } >&5
5393
5394 _ACEOF
5395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5396 #
5397 # INIT-COMMANDS
5398 #
5399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5400
5401 _ACEOF
5402
5403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5404
5405 # Handling of arguments.
5406 for ac_config_target in $ac_config_targets
5407 do
5408 case $ac_config_target in
5409 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5411
5412 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5413 esac
5414 done
5415
5416
5417 # If the user did not use the arguments to specify the items to instantiate,
5418 # then the envvar interface is used. Set only those that are not.
5419 # We use the long form for the default assignment because of an extremely
5420 # bizarre bug on SunOS 4.1.3.
5421 if $ac_need_defaults; then
5422 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5424 fi
5425
5426 # Have a temporary directory for convenience. Make it in the build tree
5427 # simply because there is no reason against having it here, and in addition,
5428 # creating and moving files from /tmp can sometimes cause problems.
5429 # Hook for its removal unless debugging.
5430 # Note that there is a small window in which the directory will not be cleaned:
5431 # after its creation but before its name has been assigned to `$tmp'.
5432 $debug ||
5433 {
5434 tmp= ac_tmp=
5435 trap 'exit_status=$?
5436 : "${ac_tmp:=$tmp}"
5437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5438 ' 0
5439 trap 'as_fn_exit 1' 1 2 13 15
5440 }
5441 # Create a (secure) tmp directory for tmp files.
5442
5443 {
5444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5445 test -d "$tmp"
5446 } ||
5447 {
5448 tmp=./conf$$-$RANDOM
5449 (umask 077 && mkdir "$tmp")
5450 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5451 ac_tmp=$tmp
5452
5453 # Set up the scripts for CONFIG_FILES section.
5454 # No need to generate them if there are no CONFIG_FILES.
5455 # This happens for instance with `./config.status config.h'.
5456 if test -n "$CONFIG_FILES"; then
5457
5458
5459 ac_cr=`echo X | tr X '\015'`
5460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5461 # But we know of no other shell where ac_cr would be empty at this
5462 # point, so we can use a bashism as a fallback.
5463 if test "x$ac_cr" = x; then
5464 eval ac_cr=\$\'\\r\'
5465 fi
5466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5468 ac_cs_awk_cr='\\r'
5469 else
5470 ac_cs_awk_cr=$ac_cr
5471 fi
5472
5473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5474 _ACEOF
5475
5476
5477 {
5478 echo "cat >conf$$subs.awk <<_ACEOF" &&
5479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5480 echo "_ACEOF"
5481 } >conf$$subs.sh ||
5482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5484 ac_delim='%!_!# '
5485 for ac_last_try in false false false false false :; do
5486 . ./conf$$subs.sh ||
5487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5488
5489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5490 if test $ac_delim_n = $ac_delim_num; then
5491 break
5492 elif $ac_last_try; then
5493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5494 else
5495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5496 fi
5497 done
5498 rm -f conf$$subs.sh
5499
5500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5501 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5502 _ACEOF
5503 sed -n '
5504 h
5505 s/^/S["/; s/!.*/"]=/
5506 p
5507 g
5508 s/^[^!]*!//
5509 :repl
5510 t repl
5511 s/'"$ac_delim"'$//
5512 t delim
5513 :nl
5514 h
5515 s/\(.\{148\}\)..*/\1/
5516 t more1
5517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5518 p
5519 n
5520 b repl
5521 :more1
5522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5523 p
5524 g
5525 s/.\{148\}//
5526 t nl
5527 :delim
5528 h
5529 s/\(.\{148\}\)..*/\1/
5530 t more2
5531 s/["\\]/\\&/g; s/^/"/; s/$/"/
5532 p
5533 b
5534 :more2
5535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5536 p
5537 g
5538 s/.\{148\}//
5539 t delim
5540 ' <conf$$subs.awk | sed '
5541 /^[^""]/{
5542 N
5543 s/\n//
5544 }
5545 ' >>$CONFIG_STATUS || ac_write_fail=1
5546 rm -f conf$$subs.awk
5547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5548 _ACAWK
5549 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5550 for (key in S) S_is_set[key] = 1
5551 FS = "\a"
5552
5553 }
5554 {
5555 line = $ 0
5556 nfields = split(line, field, "@")
5557 substed = 0
5558 len = length(field[1])
5559 for (i = 2; i < nfields; i++) {
5560 key = field[i]
5561 keylen = length(key)
5562 if (S_is_set[key]) {
5563 value = S[key]
5564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5565 len += length(value) + length(field[++i])
5566 substed = 1
5567 } else
5568 len += 1 + keylen
5569 }
5570
5571 print line
5572 }
5573
5574 _ACAWK
5575 _ACEOF
5576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5579 else
5580 cat
5581 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5583 _ACEOF
5584
5585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5587 # trailing colons and then remove the whole line if VPATH becomes empty
5588 # (actually we leave an empty line to preserve line numbers).
5589 if test "x$srcdir" = x.; then
5590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5591 h
5592 s///
5593 s/^/:/
5594 s/[ ]*$/:/
5595 s/:\$(srcdir):/:/g
5596 s/:\${srcdir}:/:/g
5597 s/:@srcdir@:/:/g
5598 s/^:*//
5599 s/:*$//
5600 x
5601 s/\(=[ ]*\).*/\1/
5602 G
5603 s/\n//
5604 s/^[^=]*=[ ]*$//
5605 }'
5606 fi
5607
5608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5609 fi # test -n "$CONFIG_FILES"
5610
5611
5612 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5613 shift
5614 for ac_tag
5615 do
5616 case $ac_tag in
5617 :[FHLC]) ac_mode=$ac_tag; continue;;
5618 esac
5619 case $ac_mode$ac_tag in
5620 :[FHL]*:*);;
5621 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5622 :[FH]-) ac_tag=-:-;;
5623 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5624 esac
5625 ac_save_IFS=$IFS
5626 IFS=:
5627 set x $ac_tag
5628 IFS=$ac_save_IFS
5629 shift
5630 ac_file=$1
5631 shift
5632
5633 case $ac_mode in
5634 :L) ac_source=$1;;
5635 :[FH])
5636 ac_file_inputs=
5637 for ac_f
5638 do
5639 case $ac_f in
5640 -) ac_f="$ac_tmp/stdin";;
5641 *) # Look for the file first in the build tree, then in the source tree
5642 # (if the path is not absolute). The absolute path cannot be DOS-style,
5643 # because $ac_f cannot contain `:'.
5644 test -f "$ac_f" ||
5645 case $ac_f in
5646 [\\/$]*) false;;
5647 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5648 esac ||
5649 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5650 esac
5651 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5652 as_fn_append ac_file_inputs " '$ac_f'"
5653 done
5654
5655 # Let's still pretend it is `configure' which instantiates (i.e., don't
5656 # use $as_me), people would be surprised to read:
5657 # /* config.h. Generated by config.status. */
5658 configure_input='Generated from '`
5659 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5660 `' by configure.'
5661 if test x"$ac_file" != x-; then
5662 configure_input="$ac_file. $configure_input"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5664 $as_echo "$as_me: creating $ac_file" >&6;}
5665 fi
5666 # Neutralize special characters interpreted by sed in replacement strings.
5667 case $configure_input in #(
5668 *\&* | *\|* | *\\* )
5669 ac_sed_conf_input=`$as_echo "$configure_input" |
5670 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5671 *) ac_sed_conf_input=$configure_input;;
5672 esac
5673
5674 case $ac_tag in
5675 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5677 esac
5678 ;;
5679 esac
5680
5681 ac_dir=`$as_dirname -- "$ac_file" ||
5682 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5683 X"$ac_file" : 'X\(//\)[^/]' \| \
5684 X"$ac_file" : 'X\(//\)$' \| \
5685 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5686 $as_echo X"$ac_file" |
5687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5688 s//\1/
5689 q
5690 }
5691 /^X\(\/\/\)[^/].*/{
5692 s//\1/
5693 q
5694 }
5695 /^X\(\/\/\)$/{
5696 s//\1/
5697 q
5698 }
5699 /^X\(\/\).*/{
5700 s//\1/
5701 q
5702 }
5703 s/.*/./; q'`
5704 as_dir="$ac_dir"; as_fn_mkdir_p
5705 ac_builddir=.
5706
5707 case "$ac_dir" in
5708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5709 *)
5710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5711 # A ".." for each directory in $ac_dir_suffix.
5712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5713 case $ac_top_builddir_sub in
5714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5716 esac ;;
5717 esac
5718 ac_abs_top_builddir=$ac_pwd
5719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5720 # for backward compatibility:
5721 ac_top_builddir=$ac_top_build_prefix
5722
5723 case $srcdir in
5724 .) # We are building in place.
5725 ac_srcdir=.
5726 ac_top_srcdir=$ac_top_builddir_sub
5727 ac_abs_top_srcdir=$ac_pwd ;;
5728 [\\/]* | ?:[\\/]* ) # Absolute name.
5729 ac_srcdir=$srcdir$ac_dir_suffix;
5730 ac_top_srcdir=$srcdir
5731 ac_abs_top_srcdir=$srcdir ;;
5732 *) # Relative name.
5733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5734 ac_top_srcdir=$ac_top_build_prefix$srcdir
5735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5736 esac
5737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5738
5739
5740 case $ac_mode in
5741 :F)
5742 #
5743 # CONFIG_FILE
5744 #
5745
5746 case $INSTALL in
5747 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5748 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5749 esac
5750 ac_MKDIR_P=$MKDIR_P
5751 case $MKDIR_P in
5752 [\\/$]* | ?:[\\/]* ) ;;
5753 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5754 esac
5755 _ACEOF
5756
5757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5758 # If the template does not know about datarootdir, expand it.
5759 # FIXME: This hack should be removed a few years after 2.60.
5760 ac_datarootdir_hack=; ac_datarootdir_seen=
5761 ac_sed_dataroot='
5762 /datarootdir/ {
5763 p
5764 q
5765 }
5766 /@datadir@/p
5767 /@docdir@/p
5768 /@infodir@/p
5769 /@localedir@/p
5770 /@mandir@/p'
5771 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5772 *datarootdir*) ac_datarootdir_seen=yes;;
5773 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5775 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5776 _ACEOF
5777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5778 ac_datarootdir_hack='
5779 s&@datadir@&$datadir&g
5780 s&@docdir@&$docdir&g
5781 s&@infodir@&$infodir&g
5782 s&@localedir@&$localedir&g
5783 s&@mandir@&$mandir&g
5784 s&\\\${datarootdir}&$datarootdir&g' ;;
5785 esac
5786 _ACEOF
5787
5788 # Neutralize VPATH when `$srcdir' = `.'.
5789 # Shell code in configure.ac might set extrasub.
5790 # FIXME: do we really want to maintain this feature?
5791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5792 ac_sed_extra="$ac_vpsub
5793 $extrasub
5794 _ACEOF
5795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5796 :t
5797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5798 s|@configure_input@|$ac_sed_conf_input|;t t
5799 s&@top_builddir@&$ac_top_builddir_sub&;t t
5800 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5801 s&@srcdir@&$ac_srcdir&;t t
5802 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5803 s&@top_srcdir@&$ac_top_srcdir&;t t
5804 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5805 s&@builddir@&$ac_builddir&;t t
5806 s&@abs_builddir@&$ac_abs_builddir&;t t
5807 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5808 s&@INSTALL@&$ac_INSTALL&;t t
5809 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5810 $ac_datarootdir_hack
5811 "
5812 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5813 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5814
5815 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5816 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5817 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5818 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5820 which seems to be undefined. Please make sure it is defined" >&5
5821 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5822 which seems to be undefined. Please make sure it is defined" >&2;}
5823
5824 rm -f "$ac_tmp/stdin"
5825 case $ac_file in
5826 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5827 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5828 esac \
5829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5830 ;;
5831
5832
5833 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5834 $as_echo "$as_me: executing $ac_file commands" >&6;}
5835 ;;
5836 esac
5837
5838
5839 case $ac_file$ac_mode in
5840 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5841 # Autoconf 2.62 quotes --file arguments for eval, but not when files
5842 # are listed without --file. Let's play safe and only enable the eval
5843 # if we detect the quoting.
5844 case $CONFIG_FILES in
5845 *\'*) eval set x "$CONFIG_FILES" ;;
5846 *) set x $CONFIG_FILES ;;
5847 esac
5848 shift
5849 for mf
5850 do
5851 # Strip MF so we end up with the name of the file.
5852 mf=`echo "$mf" | sed -e 's/:.*$//'`
5853 # Check whether this is an Automake generated Makefile or not.
5854 # We used to match only the files named 'Makefile.in', but
5855 # some people rename them; so instead we look at the file content.
5856 # Grep'ing the first line is not enough: some people post-process
5857 # each Makefile.in and add a new line on top of each file to say so.
5858 # Grep'ing the whole file is not good either: AIX grep has a line
5859 # limit of 2048, but all sed's we know have understand at least 4000.
5860 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5861 dirpart=`$as_dirname -- "$mf" ||
5862 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5863 X"$mf" : 'X\(//\)[^/]' \| \
5864 X"$mf" : 'X\(//\)$' \| \
5865 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5866 $as_echo X"$mf" |
5867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5868 s//\1/
5869 q
5870 }
5871 /^X\(\/\/\)[^/].*/{
5872 s//\1/
5873 q
5874 }
5875 /^X\(\/\/\)$/{
5876 s//\1/
5877 q
5878 }
5879 /^X\(\/\).*/{
5880 s//\1/
5881 q
5882 }
5883 s/.*/./; q'`
5884 else
5885 continue
5886 fi
5887 # Extract the definition of DEPDIR, am__include, and am__quote
5888 # from the Makefile without running 'make'.
5889 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5890 test -z "$DEPDIR" && continue
5891 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5892 test -z "am__include" && continue
5893 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5894 # Find all dependency output files, they are included files with
5895 # $(DEPDIR) in their names. We invoke sed twice because it is the
5896 # simplest approach to changing $(DEPDIR) to its actual value in the
5897 # expansion.
5898 for file in `sed -n "
5899 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5900 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5901 # Make sure the directory exists.
5902 test -f "$dirpart/$file" && continue
5903 fdir=`$as_dirname -- "$file" ||
5904 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5905 X"$file" : 'X\(//\)[^/]' \| \
5906 X"$file" : 'X\(//\)$' \| \
5907 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5908 $as_echo X"$file" |
5909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5910 s//\1/
5911 q
5912 }
5913 /^X\(\/\/\)[^/].*/{
5914 s//\1/
5915 q
5916 }
5917 /^X\(\/\/\)$/{
5918 s//\1/
5919 q
5920 }
5921 /^X\(\/\).*/{
5922 s//\1/
5923 q
5924 }
5925 s/.*/./; q'`
5926 as_dir=$dirpart/$fdir; as_fn_mkdir_p
5927 # echo "creating $dirpart/$file"
5928 echo '# dummy' > "$dirpart/$file"
5929 done
5930 done
5931 }
5932 ;;
5933
5934 esac
5935 done # for ac_tag
5936
5937
5938 as_fn_exit 0
5939 _ACEOF
5940 ac_clean_files=$ac_clean_files_save
5941
5942 test $ac_write_fail = 0 ||
5943 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5944
5945
5946 # configure is writing to config.log, and then calls config.status.
5947 # config.status does its own redirection, appending to config.log.
5948 # Unfortunately, on DOS this fails, as config.log is still kept open
5949 # by configure, so config.status won't be able to write to it; its
5950 # output is simply discarded. So we exec the FD to /dev/null,
5951 # effectively closing config.log, so it can be properly (re)opened and
5952 # appended to by config.status. When coming back to configure, we
5953 # need to make the FD available again.
5954 if test "$no_create" != yes; then
5955 ac_cs_success=:
5956 ac_config_status_args=
5957 test "$silent" = yes &&
5958 ac_config_status_args="$ac_config_status_args --quiet"
5959 exec 5>/dev/null
5960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5961 exec 5>>config.log
5962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5963 # would make configure fail if this is the last instruction.
5964 $ac_cs_success || as_fn_exit 1
5965 fi
5966 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5968 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5969 fi
5970