2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for FULL-PACKAGE-NAME VERSION.
5 # Report bugs to <BUG-REPORT-ADDRESS>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='FULL-PACKAGE-NAME'
562 PACKAGE_TARNAME='full-package-name'
563 PACKAGE_VERSION='VERSION'
564 PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
565 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
568 ac_unique_file="src/lib/database.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars='am__EXEEXT_FALSE
650 INSTALL_STRIP_PROGRAM
692 program_transform_name
705 enable_option_checking
706 enable_dependency_tracking
708 ac_precious_vars='build_alias
727 # Initialize some variables set by options.
729 ac_init_version=false
730 ac_unrecognized_opts=
732 # The variables have the same names as the options, with
733 # dashes changed to underlines.
741 program_transform_name=s,x,x,
749 # Installation directory options.
750 # These are left unexpanded so users can "make install exec_prefix=/foo"
751 # and all the variables that are supposed to be based on exec_prefix
752 # by default will actually change.
753 # Use braces instead of parens because sh, perl, etc. also accept them.
754 # (The list follows the same order as the GNU Coding Standards.)
755 bindir='${exec_prefix}/bin'
756 sbindir='${exec_prefix}/sbin'
757 libexecdir='${exec_prefix}/libexec'
758 datarootdir='${prefix}/share'
759 datadir='${datarootdir}'
760 sysconfdir='${prefix}/etc'
761 sharedstatedir='${prefix}/com'
762 localstatedir='${prefix}/var'
763 includedir='${prefix}/include'
764 oldincludedir='/usr/include'
765 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
766 infodir='${datarootdir}/info'
771 libdir='${exec_prefix}/lib'
772 localedir='${datarootdir}/locale'
773 mandir='${datarootdir}/man'
779 # If the previous option needs an argument, assign it.
780 if test -n "$ac_prev"; then
781 eval $ac_prev=\$ac_option
787 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792 # Accept the important Cygnus configure options, so we can diagnose typos.
794 case $ac_dashdash$ac_option in
798 -bindir | --bindir | --bindi | --bind | --bin | --bi)
800 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 -build | --build | --buil | --bui | --bu)
804 ac_prev=build_alias ;;
805 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
806 build_alias=$ac_optarg ;;
808 -cache-file | --cache-file | --cache-fil | --cache-fi \
809 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
810 ac_prev=cache_file ;;
811 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
812 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
813 cache_file=$ac_optarg ;;
816 cache_file=config.cache ;;
818 -datadir | --datadir | --datadi | --datad)
820 -datadir=* | --datadir=* | --datadi=* | --datad=*)
821 datadir=$ac_optarg ;;
823 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
824 | --dataroo | --dataro | --datar)
825 ac_prev=datarootdir ;;
826 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
827 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
828 datarootdir=$ac_optarg ;;
830 -disable-* | --disable-*)
831 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834 as_fn_error $? "invalid feature name: $ac_useropt"
835 ac_useropt_orig=$ac_useropt
836 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
837 case $ac_user_opts in
841 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
842 ac_unrecognized_sep=', ';;
844 eval enable_$ac_useropt=no ;;
846 -docdir | --docdir | --docdi | --doc | --do)
848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 -enable-* | --enable-*)
857 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error $? "invalid feature name: $ac_useropt"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=\$ac_optarg ;;
872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874 | --exec | --exe | --ex)
875 ac_prev=exec_prefix ;;
876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878 | --exec=* | --exe=* | --ex=*)
879 exec_prefix=$ac_optarg ;;
881 -gas | --gas | --ga | --g)
882 # Obsolete; use --with-gas.
885 -help | --help | --hel | --he | -h)
887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888 ac_init_help=recursive ;;
889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890 ac_init_help=short ;;
892 -host | --host | --hos | --ho)
893 ac_prev=host_alias ;;
894 -host=* | --host=* | --hos=* | --ho=*)
895 host_alias=$ac_optarg ;;
897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 htmldir=$ac_optarg ;;
903 -includedir | --includedir | --includedi | --included | --include \
904 | --includ | --inclu | --incl | --inc)
905 ac_prev=includedir ;;
906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907 | --includ=* | --inclu=* | --incl=* | --inc=*)
908 includedir=$ac_optarg ;;
910 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913 infodir=$ac_optarg ;;
915 -libdir | --libdir | --libdi | --libd)
917 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921 | --libexe | --libex | --libe)
922 ac_prev=libexecdir ;;
923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924 | --libexe=* | --libex=* | --libe=*)
925 libexecdir=$ac_optarg ;;
927 -localedir | --localedir | --localedi | --localed | --locale)
929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930 localedir=$ac_optarg ;;
932 -localstatedir | --localstatedir | --localstatedi | --localstated \
933 | --localstate | --localstat | --localsta | --localst | --locals)
934 ac_prev=localstatedir ;;
935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937 localstatedir=$ac_optarg ;;
939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 # Obsolete; use --without-fp.
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c | -n)
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958 | --oldin | --oldi | --old | --ol | --o)
959 ac_prev=oldincludedir ;;
960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963 oldincludedir=$ac_optarg ;;
965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 -program-prefix | --program-prefix | --program-prefi | --program-pref \
971 | --program-pre | --program-pr | --program-p)
972 ac_prev=program_prefix ;;
973 -program-prefix=* | --program-prefix=* | --program-prefi=* \
974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975 program_prefix=$ac_optarg ;;
977 -program-suffix | --program-suffix | --program-suffi | --program-suff \
978 | --program-suf | --program-su | --program-s)
979 ac_prev=program_suffix ;;
980 -program-suffix=* | --program-suffix=* | --program-suffi=* \
981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982 program_suffix=$ac_optarg ;;
984 -program-transform-name | --program-transform-name \
985 | --program-transform-nam | --program-transform-na \
986 | --program-transform-n | --program-transform- \
987 | --program-transform | --program-transfor \
988 | --program-transfo | --program-transf \
989 | --program-trans | --program-tran \
990 | --progr-tra | --program-tr | --program-t)
991 ac_prev=program_transform_name ;;
992 -program-transform-name=* | --program-transform-name=* \
993 | --program-transform-nam=* | --program-transform-na=* \
994 | --program-transform-n=* | --program-transform-=* \
995 | --program-transform=* | --program-transfor=* \
996 | --program-transfo=* | --program-transf=* \
997 | --program-trans=* | --program-tran=* \
998 | --progr-tra=* | --program-tr=* | --program-t=*)
999 program_transform_name=$ac_optarg ;;
1001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004 pdfdir=$ac_optarg ;;
1006 -psdir | --psdir | --psdi | --psd | --ps)
1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 sbindir=$ac_optarg ;;
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 sharedstatedir=$ac_optarg ;;
1032 -site | --site | --sit)
1034 -site=* | --site=* | --sit=*)
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1061 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error $? "invalid package name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1074 eval with_$ac_useropt=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid package name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1090 eval with_$ac_useropt=no ;;
1093 # Obsolete; use --with-x.
1096 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1097 | --x-incl | --x-inc | --x-in | --x-i)
1098 ac_prev=x_includes ;;
1099 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1100 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1101 x_includes=$ac_optarg ;;
1103 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1104 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1105 ac_prev=x_libraries ;;
1106 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1107 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1108 x_libraries=$ac_optarg ;;
1110 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1111 Try \`$0 --help' for more information"
1115 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1116 # Reject names that are not valid shell variable names.
1117 case $ac_envvar in #(
1118 '' | [0-9]* | *[!_$as_cr_alnum]* )
1119 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1121 eval $ac_envvar=\$ac_optarg
1122 export $ac_envvar ;;
1125 # FIXME: should be removed in autoconf 3.0.
1126 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1127 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1128 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1129 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1135 if test -n "$ac_prev"; then
1136 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1137 as_fn_error $? "missing argument to $ac_option"
1140 if test -n "$ac_unrecognized_opts"; then
1141 case $enable_option_checking in
1143 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1144 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1148 # Check all directory arguments for consistency.
1149 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1150 datadir sysconfdir sharedstatedir localstatedir includedir \
1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1152 libdir localedir mandir
1154 eval ac_val=\$$ac_var
1155 # Remove trailing slashes.
1158 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1159 eval $ac_var=\$ac_val;;
1161 # Be sure to have absolute directory names.
1163 [\\/$]* | ?:[\\/]* ) continue;;
1164 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1166 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1169 # There might be people who depend on the old broken behavior: `$host'
1170 # used to hold the argument of --host etc.
1171 # FIXME: To remove some day.
1174 target=$target_alias
1176 # FIXME: To remove some day.
1177 if test "x$host_alias" != x; then
1178 if test "x$build_alias" = x; then
1179 cross_compiling=maybe
1180 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1181 If a cross compiler is detected then cross compile mode will be used" >&2
1182 elif test "x$build_alias" != "x$host_alias"; then
1188 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1190 test "$silent" = yes && exec 6>/dev/null
1193 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1194 ac_ls_di=`ls -di .` &&
1195 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1196 as_fn_error $? "working directory cannot be determined"
1197 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1198 as_fn_error $? "pwd does not report name of working directory"
1201 # Find the source files, if location was not specified.
1202 if test -z "$srcdir"; then
1203 ac_srcdir_defaulted=yes
1204 # Try the directory containing this script, then the parent directory.
1205 ac_confdir=`$as_dirname -- "$as_myself" ||
1206 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207 X"$as_myself" : 'X\(//\)[^/]' \| \
1208 X"$as_myself" : 'X\(//\)$' \| \
1209 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1210 $as_echo X"$as_myself" |
1211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1233 ac_srcdir_defaulted=no
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1239 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1243 # When building in place, set srcdir=.
1244 if test "$ac_abs_confdir" = "$ac_pwd"; then
1247 # Remove unnecessary trailing slashes from srcdir.
1248 # Double slashes in file names in object file debugging info
1249 # mess up M-x gdb in Emacs.
1251 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1253 for ac_var in $ac_precious_vars; do
1254 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_env_${ac_var}_value=\$${ac_var}
1256 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1261 # Report the --help message.
1263 if test "$ac_init_help" = "long"; then
1264 # Omit some internal or obsolete options to make the list less imposing.
1265 # This message is too long to be a string in the A/UX 3.1 sh.
1267 \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
1269 Usage: $0 [OPTION]... [VAR=VALUE]...
1271 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1272 VAR=VALUE. See below for descriptions of some of the useful variables.
1274 Defaults for the options are specified in brackets.
1277 -h, --help display this help and exit
1278 --help=short display options specific to this package
1279 --help=recursive display the short help of all the included packages
1280 -V, --version display version information and exit
1281 -q, --quiet, --silent do not print \`checking ...' messages
1282 --cache-file=FILE cache test results in FILE [disabled]
1283 -C, --config-cache alias for \`--cache-file=config.cache'
1284 -n, --no-create do not create output files
1285 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1287 Installation directories:
1288 --prefix=PREFIX install architecture-independent files in PREFIX
1289 [$ac_default_prefix]
1290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1293 By default, \`make install' will install all the files in
1294 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1295 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1296 for instance \`--prefix=\$HOME'.
1298 For better control, use the options below.
1300 Fine tuning of the installation directories:
1301 --bindir=DIR user executables [EPREFIX/bin]
1302 --sbindir=DIR system admin executables [EPREFIX/sbin]
1303 --libexecdir=DIR program executables [EPREFIX/libexec]
1304 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1305 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1306 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1307 --libdir=DIR object code libraries [EPREFIX/lib]
1308 --includedir=DIR C header files [PREFIX/include]
1309 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1310 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1311 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1312 --infodir=DIR info documentation [DATAROOTDIR/info]
1313 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1314 --mandir=DIR man documentation [DATAROOTDIR/man]
1315 --docdir=DIR documentation root
1316 [DATAROOTDIR/doc/full-package-name]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
1326 --program-prefix=PREFIX prepend PREFIX to installed program names
1327 --program-suffix=SUFFIX append SUFFIX to installed program names
1328 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1332 if test -n "$ac_init_help"; then
1333 case $ac_init_help in
1334 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
1339 --disable-option-checking ignore unrecognized --enable/--with options
1340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1342 --disable-dependency-tracking speeds up one-time build
1343 --enable-dependency-tracking do not reject slow dependency extractors
1345 Some influential environment variables:
1346 CXX C++ compiler command
1347 CXXFLAGS C++ compiler flags
1348 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1349 nonstandard directory <lib dir>
1350 LIBS libraries to pass to the linker, e.g. -l<library>
1351 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1352 you have headers in a nonstandard directory <include dir>
1353 CC C compiler command
1354 CFLAGS C compiler flags
1355 PKG_CONFIG path to pkg-config utility
1357 directories to add to pkg-config's search path
1359 path overriding pkg-config's built-in search path
1361 C compiler flags for LIBPQXX, overriding pkg-config
1363 linker flags for LIBPQXX, overriding pkg-config
1366 Use these variables to override the choices made by `configure' or to help
1367 it to find libraries and programs with nonstandard names/locations.
1369 Report bugs to <BUG-REPORT-ADDRESS>.
1374 if test "$ac_init_help" = "recursive"; then
1375 # If there are subdirs, report their specific --help.
1376 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1377 test -d "$ac_dir" ||
1378 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1386 # A ".." for each directory in $ac_dir_suffix.
1387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1388 case $ac_top_builddir_sub in
1389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1393 ac_abs_top_builddir=$ac_pwd
1394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1395 # for backward compatibility:
1396 ac_top_builddir=$ac_top_build_prefix
1399 .) # We are building in place.
1401 ac_top_srcdir=$ac_top_builddir_sub
1402 ac_abs_top_srcdir=$ac_pwd ;;
1403 [\\/]* | ?:[\\/]* ) # Absolute name.
1404 ac_srcdir=$srcdir$ac_dir_suffix;
1405 ac_top_srcdir=$srcdir
1406 ac_abs_top_srcdir=$srcdir ;;
1408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1409 ac_top_srcdir=$ac_top_build_prefix$srcdir
1410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414 cd "$ac_dir" || { ac_status=$?; continue; }
1415 # Check for guested configure.
1416 if test -f "$ac_srcdir/configure.gnu"; then
1418 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1419 elif test -f "$ac_srcdir/configure"; then
1421 $SHELL "$ac_srcdir/configure" --help=recursive
1423 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425 cd "$ac_pwd" || { ac_status=$?; break; }
1429 test -n "$ac_init_help" && exit $ac_status
1430 if $ac_init_version; then
1432 FULL-PACKAGE-NAME configure VERSION
1433 generated by GNU Autoconf 2.68
1435 Copyright (C) 2010 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1442 ## ------------------------ ##
1443 ## Autoconf initialization. ##
1444 ## ------------------------ ##
1446 # ac_fn_cxx_try_compile LINENO
1447 # ----------------------------
1448 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1449 ac_fn_cxx_try_compile ()
1451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1452 rm -f conftest.$ac_objext
1453 if { { ac_try="$ac_compile"
1455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1456 *) ac_try_echo=$ac_try;;
1458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1459 $as_echo "$ac_try_echo"; } >&5
1460 (eval "$ac_compile") 2>conftest.err
1462 if test -s conftest.err; then
1463 grep -v '^ *+' conftest.err >conftest.er1
1464 cat conftest.er1 >&5
1465 mv -f conftest.er1 conftest.err
1467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1468 test $ac_status = 0; } && {
1469 test -z "$ac_cxx_werror_flag" ||
1470 test ! -s conftest.err
1471 } && test -s conftest.$ac_objext; then :
1474 $as_echo "$as_me: failed program was:" >&5
1475 sed 's/^/| /' conftest.$ac_ext >&5
1479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1480 as_fn_set_status $ac_retval
1482 } # ac_fn_cxx_try_compile
1484 # ac_fn_c_try_compile LINENO
1485 # --------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_compile ()
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext
1491 if { { ac_try="$ac_compile"
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.$ac_objext; then :
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status $ac_retval
1520 } # ac_fn_c_try_compile
1522 # ac_fn_c_try_link LINENO
1523 # -----------------------
1524 # Try to link conftest.$ac_ext, and return whether this succeeded.
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext conftest$ac_exeext
1529 if { { ac_try="$ac_link"
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_link") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest$ac_exeext && {
1548 test "$cross_compiling" = yes ||
1549 $as_test_x conftest$ac_exeext
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1558 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1559 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1560 # interfere with the next link command; also delete a directory that is
1561 # left behind by Apple's compiler. We do this before executing the actions.
1562 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1566 } # ac_fn_c_try_link
1568 # ac_fn_c_try_cpp LINENO
1569 # ----------------------
1570 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 if { { ac_try="$ac_cpp conftest.$ac_ext"
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } > conftest.i && {
1590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1605 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1608 # the include files in INCLUDES and setting the cache variable VAR
1610 ac_fn_c_check_header_mongrel ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if eval \${$3+:} false; then :
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1623 # Is the header compilable?
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1625 $as_echo_n "checking $2 usability... " >&6; }
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632 ac_header_compiler=yes
1634 ac_header_compiler=no
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1638 $as_echo "$ac_header_compiler" >&6; }
1640 # Is the header present?
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1642 $as_echo_n "checking $2 presence... " >&6; }
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1647 if ac_fn_c_try_cpp "$LINENO"; then :
1648 ac_header_preproc=yes
1650 ac_header_preproc=no
1652 rm -f conftest.err conftest.i conftest.$ac_ext
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1654 $as_echo "$ac_header_preproc" >&6; }
1656 # So? What about this header?
1657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1660 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1662 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1666 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1668 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1670 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1672 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 ( $as_echo "## --------------------------------- ##
1676 ## Report this to BUG-REPORT-ADDRESS ##
1677 ## --------------------------------- ##"
1678 ) | sed "s/^/$as_me: WARNING: /" >&2
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1686 eval "$3=\$ac_header_compiler"
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 } # ac_fn_c_check_header_mongrel
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=$ac_status
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1738 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists and can be compiled using the include files in
1741 # INCLUDES, setting the cache variable VAR accordingly.
1742 ac_fn_c_check_header_compile ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if eval \${$3+:} false; then :
1748 $as_echo_n "(cached) " >&6
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1755 if ac_fn_c_try_compile "$LINENO"; then :
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 } # ac_fn_c_check_header_compile
1769 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1770 # -------------------------------------------
1771 # Tests whether TYPE exists after having included INCLUDES, setting cache
1772 # variable VAR accordingly.
1773 ac_fn_c_check_type ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1807 if ac_fn_c_try_compile "$LINENO"; then :
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } # ac_fn_c_check_type
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838 #define $2 innocuous_$2
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1846 # include <limits.h>
1848 # include <assert.h>
1853 /* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined __stub_$2 || defined __stub___$2
1875 if ac_fn_c_try_link "$LINENO"; then :
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_func
1889 cat >config.log <<_ACEOF
1890 This file contains any messages produced by compilers while
1891 running configure, to aid debugging if configure makes a mistake.
1893 It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
1894 generated by GNU Autoconf 2.68. Invocation command line was
1906 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1915 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1916 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1917 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1919 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1920 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1921 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 $as_echo "PATH: $as_dir"
1946 # Keep a trace of the command line.
1947 # Strip out --no-create and --no-recursion so they do not pile up.
1948 # Strip out --silent because we don't want to record it for future runs.
1949 # Also quote any args containing shell meta-characters.
1950 # Make two passes to allow for proper duplicate-argument suppression.
1954 ac_must_keep_next=false
1960 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1962 | -silent | --silent | --silen | --sile | --sil)
1965 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970 as_fn_append ac_configure_args1 " '$ac_arg'"
1971 if test $ac_must_keep_next = true; then
1972 ac_must_keep_next=false # Got value, back to normal.
1975 *=* | --config-cache | -C | -disable-* | --disable-* \
1976 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1977 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1978 | -with-* | --with-* | -without-* | --without-* | --x)
1979 case "$ac_configure_args0 " in
1980 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 -* ) ac_must_keep_next=true ;;
1986 as_fn_append ac_configure_args " '$ac_arg'"
1991 { ac_configure_args0=; unset ac_configure_args0;}
1992 { ac_configure_args1=; unset ac_configure_args1;}
1994 # When interrupted or exit'd, cleanup temporary files, and complete
1995 # config.log. We remove comments because anyway the quotes in there
1996 # would cause problems or look ugly.
1997 # WARNING: Use '\'' to represent an apostrophe within the trap.
1998 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1999 trap 'exit_status=$?
2000 # Save into config.log some information that might help in debugging.
2004 $as_echo "## ---------------- ##
2005 ## Cache variables. ##
2006 ## ---------------- ##"
2008 # The following way of writing the cache mishandles newlines in values,
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040 $as_echo "## ----------------- ##
2041 ## Output variables. ##
2042 ## ----------------- ##"
2044 for ac_var in $ac_subst_vars
2046 eval ac_val=\$$ac_var
2048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 $as_echo "$ac_var='\''$ac_val'\''"
2054 if test -n "$ac_subst_files"; then
2055 $as_echo "## ------------------- ##
2056 ## File substitutions. ##
2057 ## ------------------- ##"
2059 for ac_var in $ac_subst_files
2061 eval ac_val=\$$ac_var
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 $as_echo "$ac_var='\''$ac_val'\''"
2070 if test -s confdefs.h; then
2071 $as_echo "## ----------- ##
2078 test "$ac_signal" != 0 &&
2079 $as_echo "$as_me: caught signal $ac_signal"
2080 $as_echo "$as_me: exit $exit_status"
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086 for ac_signal in 1 2 13 15; do
2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2094 $as_echo "/* confdefs.h */" > confdefs.h
2096 # Predefined preprocessor variables.
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2127 if test -n "$CONFIG_SITE"; then
2128 # We do not want a PATH search for config.site.
2129 case $CONFIG_SITE in #((
2130 -*) ac_site_file1=./$CONFIG_SITE;;
2131 */*) ac_site_file1=$CONFIG_SITE;;
2132 *) ac_site_file1=./$CONFIG_SITE;;
2134 elif test "x$prefix" != xNONE; then
2135 ac_site_file1=$prefix/share/config.site
2136 ac_site_file2=$prefix/etc/config.site
2138 ac_site_file1=$ac_default_prefix/share/config.site
2139 ac_site_file2=$ac_default_prefix/etc/config.site
2141 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143 test "x$ac_site_file" = xNONE && continue
2144 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2147 sed 's/^/| /' "$ac_site_file" >&5
2149 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 as_fn_error $? "failed to load site script $ac_site_file
2152 See \`config.log' for more details" "$LINENO" 5; }
2156 if test -r "$cache_file"; then
2157 # Some versions of bash will fail to source /dev/null (special files
2158 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2159 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164 *) . "./$cache_file";;
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169 $as_echo "$as_me: creating cache $cache_file" >&6;}
2173 # Check that the precious variables saved in the cache have kept the same
2175 ac_cache_corrupted=false
2176 for ac_var in $ac_precious_vars; do
2177 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2178 eval ac_new_set=\$ac_env_${ac_var}_set
2179 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2180 eval ac_new_val=\$ac_env_${ac_var}_value
2181 case $ac_old_set,$ac_new_set in
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2184 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2185 ac_cache_corrupted=: ;;
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2188 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2189 ac_cache_corrupted=: ;;
2192 if test "x$ac_old_val" != "x$ac_new_val"; then
2193 # differences in whitespace do not lead to failure.
2194 ac_old_val_w=`echo x $ac_old_val`
2195 ac_new_val_w=`echo x $ac_new_val`
2196 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2198 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2199 ac_cache_corrupted=:
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2202 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2203 eval $ac_var=\$ac_old_val
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2206 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2208 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2211 # Pass precious variables to config.status.
2212 if test "$ac_new_set" = set; then
2214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2215 *) ac_arg=$ac_var=$ac_new_val ;;
2217 case " $ac_configure_args " in
2218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2219 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223 if $ac_cache_corrupted; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2227 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2228 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230 ## -------------------- ##
2231 ## Main body of script. ##
2232 ## -------------------- ##
2235 ac_cpp='$CPP $CPPFLAGS'
2236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 am__api_version='1.11'
2244 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 if test -f "$ac_dir/install-sh"; then
2247 ac_install_sh="$ac_aux_dir/install-sh -c"
2249 elif test -f "$ac_dir/install.sh"; then
2251 ac_install_sh="$ac_aux_dir/install.sh -c"
2253 elif test -f "$ac_dir/shtool"; then
2255 ac_install_sh="$ac_aux_dir/shtool install -c"
2259 if test -z "$ac_aux_dir"; then
2260 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2263 # These three variables are undocumented and unsupported,
2264 # and are intended to be withdrawn in a future Autoconf release.
2265 # They can cause serious problems if a builder's source tree is in a directory
2266 # whose full name contains unusual characters.
2267 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2268 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2269 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2272 # Find a good install program. We prefer a C program (faster),
2273 # so one script is as good as another. But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # OS/2's system install, which has a completely different semantic
2284 # ./install, which can be erroneously created by make from ./install.sh.
2285 # Reject install programs that cannot install multiple files.
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2287 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2288 if test -z "$INSTALL"; then
2289 if ${ac_cv_path_install+:} false; then :
2290 $as_echo_n "(cached) " >&6
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 # Account for people who put trailing slashes in PATH elements.
2298 case $as_dir/ in #((
2299 ./ | .// | /[cC]/* | \
2300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2301 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2304 # OSF1 and SCO ODT 3.0 have their own names for install.
2305 # Don't use installbsd from OSF since it installs stuff as root
2307 for ac_prog in ginstall scoinst install; do
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2310 if test $ac_prog = install &&
2311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # AIX install. It has an incompatible calling convention.
2314 elif test $ac_prog = install &&
2315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2316 # program-specific install script used by HP pwplus--don't use.
2319 rm -rf conftest.one conftest.two conftest.dir
2320 echo one > conftest.one
2321 echo two > conftest.two
2323 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2324 test -s conftest.one && test -s conftest.two &&
2325 test -s conftest.dir/conftest.one &&
2326 test -s conftest.dir/conftest.two
2328 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2341 rm -rf conftest.one conftest.two conftest.dir
2344 if test "${ac_cv_path_install+set}" = set; then
2345 INSTALL=$ac_cv_path_install
2347 # As a last resort, use the slow shell script. Don't cache a
2348 # value for INSTALL within a source directory, because that will
2349 # break other packages using the cache if that directory is
2350 # removed, or if the value is a relative name.
2351 INSTALL=$ac_install_sh
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2355 $as_echo "$INSTALL" >&6; }
2357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2358 # It thinks the first close brace ends the variable substitution.
2359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2366 $as_echo_n "checking whether build environment is sane... " >&6; }
2369 echo timestamp > conftest.file
2370 # Reject unsafe characters in $srcdir or the absolute working directory
2371 # name. Accept space and tab only in the latter.
2375 *[\\\"\#\$\&\'\`$am_lf]*)
2376 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2379 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2380 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2383 # Do `set' in a subshell so we don't clobber the current shell's
2384 # arguments. Must try -L first in case configure is actually a
2385 # symlink; some systems play weird games with the mod time of symlinks
2386 # (eg FreeBSD returns the mod time of the symlink's containing
2389 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2390 if test "$*" = "X"; then
2392 set X `ls -t "$srcdir/configure" conftest.file`
2395 if test "$*" != "X $srcdir/configure conftest.file" \
2396 && test "$*" != "X conftest.file $srcdir/configure"; then
2398 # If neither matched, then we have a broken ls. This can happen
2399 # if, for instance, CONFIG_SHELL is bash and it inherits a
2400 # broken ls alias from the environment. This has actually
2401 # happened. Such a system could not be considered "sane".
2402 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2403 alias in your environment" "$LINENO" 5
2406 test "$2" = conftest.file
2412 as_fn_error $? "newly created file is older than distributed files!
2413 Check your system clock" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416 $as_echo "yes" >&6; }
2417 test "$program_prefix" != NONE &&
2418 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419 # Use a double $ so make ignores it.
2420 test "$program_suffix" != NONE &&
2421 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422 # Double any \ or $.
2423 # By default was `s,x,x', remove it if useless.
2424 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2427 # expand $ac_aux_dir to an absolute path
2428 am_aux_dir=`cd $ac_aux_dir && pwd`
2430 if test x"${MISSING+set}" != xset; then
2433 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2435 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2438 # Use eval to expand $SHELL
2439 if eval "$MISSING --run true"; then
2440 am_missing_run="$MISSING --run "
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2444 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2447 if test x"${install_sh}" != xset; then
2450 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2452 install_sh="\${SHELL} $am_aux_dir/install-sh"
2456 # Installed binaries are usually stripped using `strip' when the user
2457 # run `make install-strip'. However `strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the `STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_STRIP+:} false; then :
2467 $as_echo_n "(cached) " >&6
2469 if test -n "$STRIP"; then
2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492 $as_echo "$STRIP" >&6; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2500 if test -z "$ac_cv_prog_STRIP"; then
2502 # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507 $as_echo_n "(cached) " >&6
2509 if test -n "$ac_ct_STRIP"; then
2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_ac_ct_STRIP="strip"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532 $as_echo "$ac_ct_STRIP" >&6; }
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2538 if test "x$ac_ct_STRIP" = x; then
2541 case $cross_compiling:$ac_tool_warned in
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545 ac_tool_warned=yes ;;
2550 STRIP="$ac_cv_prog_STRIP"
2554 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558 if test -z "$MKDIR_P"; then
2559 if ${ac_cv_path_mkdir+:} false; then :
2560 $as_echo_n "(cached) " >&6
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2566 test -z "$as_dir" && as_dir=.
2567 for ac_prog in mkdir gmkdir; do
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2570 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571 'mkdir (GNU coreutils) '* | \
2572 'mkdir (coreutils) '* | \
2573 'mkdir (fileutils) '4.1*)
2574 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2584 test -d ./--version && rmdir ./--version
2585 if test "${ac_cv_path_mkdir+set}" = set; then
2586 MKDIR_P="$ac_cv_path_mkdir -p"
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for MKDIR_P within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 MKDIR_P="$ac_install_sh -d"
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596 $as_echo "$MKDIR_P" >&6; }
2600 [\\/$]* | ?:[\\/]*) ;;
2601 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2604 for ac_prog in gawk mawk nawk awk
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_AWK+:} false; then :
2611 $as_echo_n "(cached) " >&6
2613 if test -n "$AWK"; then
2614 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_AWK="$ac_prog"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 if test -n "$AWK"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2636 $as_echo "$AWK" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2643 test -n "$AWK" && break
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2647 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2649 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2651 $as_echo_n "(cached) " >&6
2653 cat >conftest.make <<\_ACEOF
2656 @echo '@@@%%%=$(MAKE)=@@@%%%'
2658 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2659 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2661 eval ac_cv_prog_make_${ac_make}_set=yes;;
2663 eval ac_cv_prog_make_${ac_make}_set=no;;
2667 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 SET_MAKE="MAKE=${MAKE-make}"
2677 rm -rf .tst 2>/dev/null
2678 mkdir .tst 2>/dev/null
2679 if test -d .tst; then
2684 rmdir .tst 2>/dev/null
2686 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2687 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2688 # is not polluted with repeated "-I."
2689 am__isrc=' -I$(srcdir)'
2690 # test to see if srcdir already configured
2691 if test -f $srcdir/config.status; then
2692 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2696 # test whether we have cygpath
2697 if test -z "$CYGPATH_W"; then
2698 if (cygpath --version) >/dev/null 2>/dev/null; then
2699 CYGPATH_W='cygpath -w'
2706 # Define the identity of the package.
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE "$PACKAGE"
2716 cat >>confdefs.h <<_ACEOF
2717 #define VERSION "$VERSION"
2720 # Some tools Automake needs.
2722 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2725 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2728 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2731 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2734 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2736 # We need awk for the "check" target. The system "awk" is bad on
2738 # Always define AMTAR for backward compatibility. Yes, it's still used
2739 # in the wild :-( We should find a proper way to deprecate it ...
2742 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2749 ac_config_headers="$ac_config_headers config.h"
2752 # Checks for programs.
2754 ac_cpp='$CXXCPP $CPPFLAGS'
2755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2758 if test -z "$CXX"; then
2759 if test -n "$CCC"; then
2762 if test -n "$ac_tool_prefix"; then
2763 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_CXX+:} false; then :
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$CXX"; then
2773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 if test -n "$CXX"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2795 $as_echo "$CXX" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2802 test -n "$CXX" && break
2805 if test -z "$CXX"; then
2807 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$ac_ct_CXX"; then
2817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_ac_ct_CXX="$ac_prog"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2837 if test -n "$ac_ct_CXX"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2839 $as_echo "$ac_ct_CXX" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2846 test -n "$ac_ct_CXX" && break
2849 if test "x$ac_ct_CXX" = x; then
2852 case $cross_compiling:$ac_tool_warned in
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2864 # Provide some information about the compiler.
2865 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2868 for ac_option in --version -v -V -qversion; do
2869 { { ac_try="$ac_compiler $ac_option >&5"
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2878 if test -s conftest.err; then
2880 ... rest of stderr output deleted ...
2881 10q' conftest.err >conftest.er1
2882 cat conftest.er1 >&5
2884 rm -f conftest.er1 conftest.err
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2900 ac_clean_files_save=$ac_clean_files
2901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2902 # Try to create an executable without -o first, disregard a.out.
2903 # It will help us diagnose broken compilers, and finding out an intuition
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2906 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2907 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2909 # The possible output files:
2910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2913 for ac_file in $ac_files
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2922 if { { ac_try="$ac_link_default"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_link_default") 2>&5
2931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 test $ac_status = 0; }; then :
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2938 for ac_file in $ac_files ''
2940 test -f "$ac_file" || continue
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2945 # We found the default executable, but exeext='' is most
2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2968 if test -z "$ac_file"; then :
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 $as_echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error 77 "C++ compiler cannot create executables
2977 See \`config.log' for more details" "$LINENO" 5; }
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2983 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2985 $as_echo "$ac_file" >&6; }
2986 ac_exeext=$ac_cv_exeext
2988 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2989 ac_clean_files=$ac_clean_files_save
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2991 $as_echo_n "checking for suffix of executables... " >&6; }
2992 if { { ac_try="$ac_link"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_link") 2>&5
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }; then :
3003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3004 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3005 # work properly (i.e., refer to `conftest.exe'), while it won't with
3007 for ac_file in conftest.exe conftest conftest.*; do
3008 test -f "$ac_file" || continue
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3020 See \`config.log' for more details" "$LINENO" 5; }
3022 rm -f conftest conftest$ac_cv_exeext
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3024 $as_echo "$ac_cv_exeext" >&6; }
3026 rm -f conftest.$ac_ext
3027 EXEEXT=$ac_cv_exeext
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3035 FILE *f = fopen ("conftest.out", "w");
3036 return ferror (f) || fclose (f) != 0;
3042 ac_clean_files="$ac_clean_files conftest.out"
3043 # Check that the compiler produces executables we can run. If not, either
3044 # the compiler is broken, or we cross compile.
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3046 $as_echo_n "checking whether we are cross compiling... " >&6; }
3047 if test "$cross_compiling" != yes; then
3048 { { ac_try="$ac_link"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 if { ac_try='./conftest$ac_cv_exeext'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3072 if test "$cross_compiling" = maybe; then
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "cannot run C++ compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details" "$LINENO" 5; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3084 $as_echo "$cross_compiling" >&6; }
3086 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3087 ac_clean_files=$ac_clean_files_save
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3089 $as_echo_n "checking for suffix of object files... " >&6; }
3090 if ${ac_cv_objext+:} false; then :
3091 $as_echo_n "(cached) " >&6
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3104 rm -f conftest.o conftest.obj
3105 if { { ac_try="$ac_compile"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_compile") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 for ac_file in conftest.o conftest.obj conftest.*; do
3117 test -f "$ac_file" || continue;
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details" "$LINENO" 5; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3141 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3158 if ac_fn_cxx_try_compile "$LINENO"; then :
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3168 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3169 if test $ac_compiler_gnu = yes; then
3174 ac_test_CXXFLAGS=${CXXFLAGS+set}
3175 ac_save_CXXFLAGS=$CXXFLAGS
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3177 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3178 if ${ac_cv_prog_cxx_g+:} false; then :
3179 $as_echo_n "(cached) " >&6
3181 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3182 ac_cxx_werror_flag=yes
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 if ac_fn_cxx_try_compile "$LINENO"; then :
3197 ac_cv_prog_cxx_g=yes
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3211 if ac_fn_cxx_try_compile "$LINENO"; then :
3214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3227 if ac_fn_cxx_try_compile "$LINENO"; then :
3228 ac_cv_prog_cxx_g=yes
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3238 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3239 if test "$ac_test_CXXFLAGS" = set; then
3240 CXXFLAGS=$ac_save_CXXFLAGS
3241 elif test $ac_cv_prog_cxx_g = yes; then
3242 if test "$GXX" = yes; then
3248 if test "$GXX" = yes; then
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 DEPDIR="${am__leading_dot}deps"
3261 ac_config_commands="$ac_config_commands depfiles"
3264 am_make=${MAKE-make}
3265 cat > confinc << 'END'
3267 @echo this is the am__doit target
3270 # If we don't find an include directive, just comment out the code.
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3272 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3276 # First try GNU make style include.
3277 echo "include confinc" > confmf
3278 # Ignore all kinds of additional output from `make'.
3279 case `$am_make -s -f confmf 2> /dev/null` in #(
3280 *the\ am__doit\ target*)
3286 # Now try BSD make style include.
3287 if test "$am__include" = "#"; then
3288 echo '.include "confinc"' > confmf
3289 case `$am_make -s -f confmf 2> /dev/null` in #(
3290 *the\ am__doit\ target*)
3291 am__include=.include
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3300 $as_echo "$_am_result" >&6; }
3301 rm -f confinc confmf
3303 # Check whether --enable-dependency-tracking was given.
3304 if test "${enable_dependency_tracking+set}" = set; then :
3305 enableval=$enable_dependency_tracking;
3308 if test "x$enable_dependency_tracking" != xno; then
3309 am_depcomp="$ac_aux_dir/depcomp"
3313 if test "x$enable_dependency_tracking" != xno; then
3323 depcc="$CXX" am_compiler_list=
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3326 $as_echo_n "checking dependency style of $depcc... " >&6; }
3327 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3331 # We make a subdir and do the tests there. Otherwise we can end up
3332 # making bogus files that we don't know about and never remove. For
3333 # instance it was reported that on HP-UX the gcc test will end up
3334 # making a dummy file named `D' -- because `-MD' means `put the output
3338 # Copy depcomp to subdir because otherwise we won't find it if we're
3339 # using a relative directory.
3340 cp "$am_depcomp" conftest.dir
3342 # We will build objects and dependencies in a subdirectory because
3343 # it helps to detect inapplicable dependency modes. For instance
3344 # both Tru64's cc and ICC support -MD to output dependencies as a
3345 # side effect of compilation, but ICC will put the dependencies in
3346 # the current directory while Tru64 will put them in the object
3350 am_cv_CXX_dependencies_compiler_type=none
3351 if test "$am_compiler_list" = ""; then
3352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3355 case " $depcc " in #(
3356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3359 for depmode in $am_compiler_list; do
3360 # Setup a source with many dependencies, because some compilers
3361 # like to wrap large dependency lists on column 80 (with \), and
3362 # we should not choose a depcomp mode which is confused by this.
3364 # We need to recreate these files for each test, as the compiler may
3365 # overwrite some of them when testing with obscure command lines.
3366 # This happens at least with the AIX C compiler.
3368 for i in 1 2 3 4 5 6; do
3369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3371 # Solaris 8's {/usr,}/bin/sh.
3372 touch sub/conftst$i.h
3374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3377 # mode. It turns out that the SunPro C++ compiler does not properly
3378 # handle `-M -o', and we need to detect this. Also, some Intel
3379 # versions had trouble with output in subdirs
3380 am__obj=sub/conftest.${OBJEXT-o}
3381 am__minus_obj="-o $am__obj"
3384 # This depmode causes a compiler race in universal mode.
3385 test "$am__universal" = false || continue
3388 # after this tag, mechanisms are not by side-effect, so they'll
3389 # only be used when explicitly requested
3390 if test "x$enable_dependency_tracking" = xyes; then
3396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3397 # This compiler won't grok `-c -o', but also, the minuso test has
3398 # not run yet. These depmodes are late enough in the game, and
3399 # so weak that their functioning should not be impacted.
3400 am__obj=conftest.${OBJEXT-o}
3405 if depmode=$depmode \
3406 source=sub/conftest.c object=$am__obj \
3407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3409 >/dev/null 2>conftest.err &&
3410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3414 # icc doesn't choke on unknown options, it will just issue warnings
3415 # or remarks (even with -Werror). So we grep stderr for any message
3416 # that says an option was ignored or not supported.
3417 # When given -MP, icc 7.0 and 7.1 complain thusly:
3418 # icc: Command line warning: ignoring option '-M'; no argument required
3419 # The diagnosis changed in icc 8.0:
3420 # icc: Command line remark: option '-MP' not supported
3421 if (grep 'ignoring option' conftest.err ||
3422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3423 am_cv_CXX_dependencies_compiler_type=$depmode
3432 am_cv_CXX_dependencies_compiler_type=none
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3437 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3438 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3441 test "x$enable_dependency_tracking" != xno \
3442 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3443 am__fastdepCXX_TRUE=
3444 am__fastdepCXX_FALSE='#'
3446 am__fastdepCXX_TRUE='#'
3447 am__fastdepCXX_FALSE=
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 $as_echo_n "checking for $ac_word... " >&6; }
3461 if ${ac_cv_prog_CC+:} false; then :
3462 $as_echo_n "(cached) " >&6
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 if test -n "$CC"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487 $as_echo "$CC" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3495 if test -z "$ac_cv_prog_CC"; then
3497 # Extract the first word of "gcc", so it can be a program name with args.
3498 set dummy gcc; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 if test -n "$ac_ct_CC"; then
3505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_ac_ct_CC="gcc"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3525 if test -n "$ac_ct_CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3527 $as_echo "$ac_ct_CC" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3533 if test "x$ac_ct_CC" = x; then
3536 case $cross_compiling:$ac_tool_warned in
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540 ac_tool_warned=yes ;;
3548 if test -z "$CC"; then
3549 if test -n "$ac_tool_prefix"; then
3550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3551 set dummy ${ac_tool_prefix}cc; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_CC+:} false; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CC="${ac_tool_prefix}cc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3589 if test -z "$CC"; then
3590 # Extract the first word of "cc", so it can be a program name with args.
3591 set dummy cc; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_CC+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3609 ac_prog_rejected=yes
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 if test $ac_prog_rejected = yes; then
3621 # We found a bogon in the path, so make sure we never use it.
3622 set dummy $ac_cv_prog_CC
3624 if test $# != 0; then
3625 # We chose a different compiler from the bogus one.
3626 # However, it has the same basename, so the bogon will be chosen
3627 # first if we set CC to just the basename; use the full file name.
3629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3645 if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 for ac_prog in cl.exe
3649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if ${ac_cv_prog_CC+:} false; then :
3654 $as_echo_n "(cached) " >&6
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3686 test -n "$CC" && break
3689 if test -z "$CC"; then
3691 for ac_prog in cl.exe
3693 # Extract the first word of "$ac_prog", so it can be a program name with args.
3694 set dummy $ac_prog; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3698 $as_echo_n "(cached) " >&6
3700 if test -n "$ac_ct_CC"; then
3701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_ac_ct_CC="$ac_prog"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3721 if test -n "$ac_ct_CC"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3723 $as_echo "$ac_ct_CC" >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3730 test -n "$ac_ct_CC" && break
3733 if test "x$ac_ct_CC" = x; then
3736 case $cross_compiling:$ac_tool_warned in
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3740 ac_tool_warned=yes ;;
3749 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "no acceptable C compiler found in \$PATH
3752 See \`config.log' for more details" "$LINENO" 5; }
3754 # Provide some information about the compiler.
3755 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 for ac_option in --version -v -V -qversion; do
3759 { { ac_try="$ac_compiler $ac_option >&5"
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768 if test -s conftest.err; then
3770 ... rest of stderr output deleted ...
3771 10q' conftest.err >conftest.er1
3772 cat conftest.er1 >&5
3774 rm -f conftest.er1 conftest.err
3775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776 test $ac_status = 0; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3780 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3781 if ${ac_cv_c_compiler_gnu+:} false; then :
3782 $as_echo_n "(cached) " >&6
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3798 if ac_fn_c_try_compile "$LINENO"; then :
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3808 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3809 if test $ac_compiler_gnu = yes; then
3814 ac_test_CFLAGS=${CFLAGS+set}
3815 ac_save_CFLAGS=$CFLAGS
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3817 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3818 if ${ac_cv_prog_cc_g+:} false; then :
3819 $as_echo_n "(cached) " >&6
3821 ac_save_c_werror_flag=$ac_c_werror_flag
3822 ac_c_werror_flag=yes
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 if ac_fn_c_try_compile "$LINENO"; then :
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3851 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_c_werror_flag=$ac_save_c_werror_flag
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3867 if ac_fn_c_try_compile "$LINENO"; then :
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_c_werror_flag=$ac_save_c_werror_flag
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3878 $as_echo "$ac_cv_prog_cc_g" >&6; }
3879 if test "$ac_test_CFLAGS" = set; then
3880 CFLAGS=$ac_save_CFLAGS
3881 elif test $ac_cv_prog_cc_g = yes; then
3882 if test "$GCC" = yes; then
3888 if test "$GCC" = yes; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3895 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3896 if ${ac_cv_prog_cc_c89+:} false; then :
3897 $as_echo_n "(cached) " >&6
3899 ac_cv_prog_cc_c89=no
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3905 #include <sys/types.h>
3906 #include <sys/stat.h>
3907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3908 struct buf { int x; };
3909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3910 static char *e (p, i)
3916 static char *f (char * (*g) (char **, int), char **p, ...)
3921 s = g (p, va_arg (v,int));
3926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3927 function prototypes and stuff, but not '\xHH' hex character constants.
3928 These don't provoke an error unfortunately, instead are silently treated
3929 as 'x'. The following induces an error, until -std is added to get
3930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3931 array size at least. It's necessary to write '\x00'==0 to get something
3932 that's true only with -std. */
3933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3936 inside strings and character constants. */
3938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3940 int test (int i, double x);
3941 struct s1 {int (*f) (int a);};
3942 struct s2 {int (*f) (double a);};
3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3957 CC="$ac_save_CC $ac_arg"
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959 ac_cv_prog_cc_c89=$ac_arg
3961 rm -f core conftest.err conftest.$ac_objext
3962 test "x$ac_cv_prog_cc_c89" != "xno" && break
3964 rm -f conftest.$ac_ext
3969 case "x$ac_cv_prog_cc_c89" in
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3972 $as_echo "none needed" >&6; } ;;
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3975 $as_echo "unsupported" >&6; } ;;
3977 CC="$CC $ac_cv_prog_cc_c89"
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3979 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3981 if test "x$ac_cv_prog_cc_c89" != xno; then :
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 depcc="$CC" am_compiler_list=
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3994 $as_echo_n "checking dependency style of $depcc... " >&6; }
3995 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3996 $as_echo_n "(cached) " >&6
3998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3999 # We make a subdir and do the tests there. Otherwise we can end up
4000 # making bogus files that we don't know about and never remove. For
4001 # instance it was reported that on HP-UX the gcc test will end up
4002 # making a dummy file named `D' -- because `-MD' means `put the output
4006 # Copy depcomp to subdir because otherwise we won't find it if we're
4007 # using a relative directory.
4008 cp "$am_depcomp" conftest.dir
4010 # We will build objects and dependencies in a subdirectory because
4011 # it helps to detect inapplicable dependency modes. For instance
4012 # both Tru64's cc and ICC support -MD to output dependencies as a
4013 # side effect of compilation, but ICC will put the dependencies in
4014 # the current directory while Tru64 will put them in the object
4018 am_cv_CC_dependencies_compiler_type=none
4019 if test "$am_compiler_list" = ""; then
4020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4023 case " $depcc " in #(
4024 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4027 for depmode in $am_compiler_list; do
4028 # Setup a source with many dependencies, because some compilers
4029 # like to wrap large dependency lists on column 80 (with \), and
4030 # we should not choose a depcomp mode which is confused by this.
4032 # We need to recreate these files for each test, as the compiler may
4033 # overwrite some of them when testing with obscure command lines.
4034 # This happens at least with the AIX C compiler.
4036 for i in 1 2 3 4 5 6; do
4037 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4039 # Solaris 8's {/usr,}/bin/sh.
4040 touch sub/conftst$i.h
4042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4044 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4045 # mode. It turns out that the SunPro C++ compiler does not properly
4046 # handle `-M -o', and we need to detect this. Also, some Intel
4047 # versions had trouble with output in subdirs
4048 am__obj=sub/conftest.${OBJEXT-o}
4049 am__minus_obj="-o $am__obj"
4052 # This depmode causes a compiler race in universal mode.
4053 test "$am__universal" = false || continue
4056 # after this tag, mechanisms are not by side-effect, so they'll
4057 # only be used when explicitly requested
4058 if test "x$enable_dependency_tracking" = xyes; then
4064 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4065 # This compiler won't grok `-c -o', but also, the minuso test has
4066 # not run yet. These depmodes are late enough in the game, and
4067 # so weak that their functioning should not be impacted.
4068 am__obj=conftest.${OBJEXT-o}
4073 if depmode=$depmode \
4074 source=sub/conftest.c object=$am__obj \
4075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4076 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4077 >/dev/null 2>conftest.err &&
4078 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4079 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4080 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4081 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4082 # icc doesn't choke on unknown options, it will just issue warnings
4083 # or remarks (even with -Werror). So we grep stderr for any message
4084 # that says an option was ignored or not supported.
4085 # When given -MP, icc 7.0 and 7.1 complain thusly:
4086 # icc: Command line warning: ignoring option '-M'; no argument required
4087 # The diagnosis changed in icc 8.0:
4088 # icc: Command line remark: option '-MP' not supported
4089 if (grep 'ignoring option' conftest.err ||
4090 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4091 am_cv_CC_dependencies_compiler_type=$depmode
4100 am_cv_CC_dependencies_compiler_type=none
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4105 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4109 test "x$enable_dependency_tracking" != xno \
4110 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4112 am__fastdepCC_FALSE='#'
4114 am__fastdepCC_TRUE='#'
4115 am__fastdepCC_FALSE=
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_RANLIB+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$RANLIB"; then
4128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 RANLIB=$ac_cv_prog_RANLIB
4148 if test -n "$RANLIB"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4150 $as_echo "$RANLIB" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4158 if test -z "$ac_cv_prog_RANLIB"; then
4159 ac_ct_RANLIB=$RANLIB
4160 # Extract the first word of "ranlib", so it can be a program name with args.
4161 set dummy ranlib; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -n "$ac_ct_RANLIB"; then
4168 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_ac_ct_RANLIB="ranlib"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4188 if test -n "$ac_ct_RANLIB"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4190 $as_echo "$ac_ct_RANLIB" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4196 if test "x$ac_ct_RANLIB" = x; then
4199 case $cross_compiling:$ac_tool_warned in
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203 ac_tool_warned=yes ;;
4205 RANLIB=$ac_ct_RANLIB
4208 RANLIB="$ac_cv_prog_RANLIB"
4212 # Extract the first word of "xml2-config", so it can be a program name with args.
4213 set dummy xml2-config; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if ${ac_cv_path_XML_CONFIG+:} false; then :
4217 $as_echo_n "(cached) " >&6
4221 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
4243 XML_CONFIG=$ac_cv_path_XML_CONFIG
4244 if test -n "$XML_CONFIG"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
4246 $as_echo "$XML_CONFIG" >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4255 if test $XML_CONFIG = "no"
4257 echo "XML library not found (see http://xmlsoft.org/)."
4261 # Checks for libraries.
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
4264 $as_echo_n "checking for gzread in -lz... " >&6; }
4265 if ${ac_cv_lib_z_gzread+:} false; then :
4266 $as_echo_n "(cached) " >&6
4268 ac_check_lib_save_LIBS=$LIBS
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4273 /* Override any GCC internal prototype to avoid an error.
4274 Use char because int might match the return type of a GCC
4275 builtin and then its argument prototype would still apply. */
4288 if ac_fn_c_try_link "$LINENO"; then :
4289 ac_cv_lib_z_gzread=yes
4291 ac_cv_lib_z_gzread=no
4293 rm -f core conftest.err conftest.$ac_objext \
4294 conftest$ac_exeext conftest.$ac_ext
4295 LIBS=$ac_check_lib_save_LIBS
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
4298 $as_echo "$ac_cv_lib_z_gzread" >&6; }
4299 if test "x$ac_cv_lib_z_gzread" = xyes; then :
4300 cat >>confdefs.h <<_ACEOF
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
4309 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
4310 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
4311 $as_echo_n "(cached) " >&6
4313 ac_check_lib_save_LIBS=$LIBS
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4318 /* Override any GCC internal prototype to avoid an error.
4319 Use char because int might match the return type of a GCC
4320 builtin and then its argument prototype would still apply. */
4324 char xmlParseFile ();
4328 return xmlParseFile ();
4333 if ac_fn_c_try_link "$LINENO"; then :
4334 ac_cv_lib_xml2_xmlParseFile=yes
4336 ac_cv_lib_xml2_xmlParseFile=no
4338 rm -f core conftest.err conftest.$ac_objext \
4339 conftest$ac_exeext conftest.$ac_ext
4340 LIBS=$ac_check_lib_save_LIBS
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
4343 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
4344 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
4345 cat >>confdefs.h <<_ACEOF
4346 #define HAVE_LIBXML2 1
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
4354 $as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
4355 if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
4356 $as_echo_n "(cached) " >&6
4358 ac_check_lib_save_LIBS=$LIBS
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4363 /* Override any GCC internal prototype to avoid an error.
4364 Use char because int might match the return type of a GCC
4365 builtin and then its argument prototype would still apply. */
4369 char PQconnectdb ();
4373 return PQconnectdb ();
4378 if ac_fn_c_try_link "$LINENO"; then :
4379 ac_cv_lib_pq_PQconnectdb=yes
4381 ac_cv_lib_pq_PQconnectdb=no
4383 rm -f core conftest.err conftest.$ac_objext \
4384 conftest$ac_exeext conftest.$ac_ext
4385 LIBS=$ac_check_lib_save_LIBS
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
4388 $as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
4389 if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
4390 cat >>confdefs.h <<_ACEOF
4391 #define HAVE_LIBPQ 1
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lAXE" >&5
4399 $as_echo_n "checking for main in -lAXE... " >&6; }
4400 if ${ac_cv_lib_AXE_main+:} false; then :
4401 $as_echo_n "(cached) " >&6
4403 ac_check_lib_save_LIBS=$LIBS
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4417 if ac_fn_c_try_link "$LINENO"; then :
4418 ac_cv_lib_AXE_main=yes
4420 ac_cv_lib_AXE_main=no
4422 rm -f core conftest.err conftest.$ac_objext \
4423 conftest$ac_exeext conftest.$ac_ext
4424 LIBS=$ac_check_lib_save_LIBS
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_AXE_main" >&5
4427 $as_echo "$ac_cv_lib_AXE_main" >&6; }
4428 if test "x$ac_cv_lib_AXE_main" = xyes; then :
4429 cat >>confdefs.h <<_ACEOF
4430 #define HAVE_LIBAXE 1
4436 as_fn_error $? "AXE Library is not installed" "$LINENO" 5
4447 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4448 if test -n "$ac_tool_prefix"; then
4449 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4450 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4454 $as_echo_n "(cached) " >&6
4458 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4480 if test -n "$PKG_CONFIG"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4482 $as_echo "$PKG_CONFIG" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4490 if test -z "$ac_cv_path_PKG_CONFIG"; then
4491 ac_pt_PKG_CONFIG=$PKG_CONFIG
4492 # Extract the first word of "pkg-config", so it can be a program name with args.
4493 set dummy pkg-config; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 case $ac_pt_PKG_CONFIG in
4501 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4523 if test -n "$ac_pt_PKG_CONFIG"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4525 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4531 if test "x$ac_pt_PKG_CONFIG" = x; then
4534 case $cross_compiling:$ac_tool_warned in
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538 ac_tool_warned=yes ;;
4540 PKG_CONFIG=$ac_pt_PKG_CONFIG
4543 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4547 if test -n "$PKG_CONFIG"; then
4548 _pkg_min_version=0.9.0
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4550 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4551 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPQXX" >&5
4563 $as_echo_n "checking for LIBPQXX... " >&6; }
4565 if test -n "$LIBPQXX_CFLAGS"; then
4566 pkg_cv_LIBPQXX_CFLAGS="$LIBPQXX_CFLAGS"
4567 elif test -n "$PKG_CONFIG"; then
4568 if test -n "$PKG_CONFIG" && \
4569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpqxx >= 4.0.1\""; } >&5
4570 ($PKG_CONFIG --exists --print-errors "libpqxx >= 4.0.1") 2>&5
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then
4574 pkg_cv_LIBPQXX_CFLAGS=`$PKG_CONFIG --cflags "libpqxx >= 4.0.1" 2>/dev/null`
4575 test "x$?" != "x0" && pkg_failed=yes
4582 if test -n "$LIBPQXX_LIBS"; then
4583 pkg_cv_LIBPQXX_LIBS="$LIBPQXX_LIBS"
4584 elif test -n "$PKG_CONFIG"; then
4585 if test -n "$PKG_CONFIG" && \
4586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpqxx >= 4.0.1\""; } >&5
4587 ($PKG_CONFIG --exists --print-errors "libpqxx >= 4.0.1") 2>&5
4589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }; then
4591 pkg_cv_LIBPQXX_LIBS=`$PKG_CONFIG --libs "libpqxx >= 4.0.1" 2>/dev/null`
4592 test "x$?" != "x0" && pkg_failed=yes
4602 if test $pkg_failed = yes; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4607 _pkg_short_errors_supported=yes
4609 _pkg_short_errors_supported=no
4611 if test $_pkg_short_errors_supported = yes; then
4612 LIBPQXX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpqxx >= 4.0.1" 2>&1`
4614 LIBPQXX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpqxx >= 4.0.1" 2>&1`
4616 # Put the nasty error message in config.log where it belongs
4617 echo "$LIBPQXX_PKG_ERRORS" >&5
4619 as_fn_error $? "Package requirements (libpqxx >= 4.0.1) were not met:
4623 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4624 installed software in a non-standard prefix.
4626 Alternatively, you may set the environment variables LIBPQXX_CFLAGS
4627 and LIBPQXX_LIBS to avoid the need to call pkg-config.
4628 See the pkg-config man page for more details." "$LINENO" 5
4629 elif test $pkg_failed = untried; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4634 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4635 is in your PATH or set the PKG_CONFIG environment variable to the full
4638 Alternatively, you may set the environment variables LIBPQXX_CFLAGS
4639 and LIBPQXX_LIBS to avoid the need to call pkg-config.
4640 See the pkg-config man page for more details.
4642 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4643 See \`config.log' for more details" "$LINENO" 5; }
4645 LIBPQXX_CFLAGS=$pkg_cv_LIBPQXX_CFLAGS
4646 LIBPQXX_LIBS=$pkg_cv_LIBPQXX_LIBS
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4648 $as_echo "yes" >&6; }
4654 # Checks for header files.
4655 XML_CFLAGS=`$XML_CONFIG --cflags`
4656 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS "
4657 CXXFLAGS="$CXXFLAGS -Wno-deprecated $X_CFLAGS $XML_CFLAGS"
4660 ac_cpp='$CPP $CPPFLAGS'
4661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4665 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4666 # On Suns, sometimes $CPP names a directory.
4667 if test -n "$CPP" && test -d "$CPP"; then
4670 if test -z "$CPP"; then
4671 if ${ac_cv_prog_CPP+:} false; then :
4672 $as_echo_n "(cached) " >&6
4674 # Double quotes because CPP needs to be expanded
4675 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4678 for ac_c_preproc_warn_flag in '' yes
4680 # Use a header file that comes with gcc, so configuring glibc
4681 # with a fresh cross-compiler works.
4682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4683 # <limits.h> exists even on freestanding compilers.
4684 # On the NeXT, cc -E runs the code through the compiler's parser,
4685 # not just through cpp. "Syntax error" is here to catch this case.
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4689 # include <limits.h>
4691 # include <assert.h>
4695 if ac_fn_c_try_cpp "$LINENO"; then :
4698 # Broken: fails on valid input.
4701 rm -f conftest.err conftest.i conftest.$ac_ext
4703 # OK, works on sane cases. Now check whether nonexistent headers
4704 # can be detected and how.
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <ac_nonexistent.h>
4709 if ac_fn_c_try_cpp "$LINENO"; then :
4710 # Broken: success on invalid input.
4713 # Passes both tests.
4717 rm -f conftest.err conftest.i conftest.$ac_ext
4720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4721 rm -f conftest.i conftest.err conftest.$ac_ext
4722 if $ac_preproc_ok; then :
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4735 $as_echo "$CPP" >&6; }
4737 for ac_c_preproc_warn_flag in '' yes
4739 # Use a header file that comes with gcc, so configuring glibc
4740 # with a fresh cross-compiler works.
4741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742 # <limits.h> exists even on freestanding compilers.
4743 # On the NeXT, cc -E runs the code through the compiler's parser,
4744 # not just through cpp. "Syntax error" is here to catch this case.
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4748 # include <limits.h>
4750 # include <assert.h>
4754 if ac_fn_c_try_cpp "$LINENO"; then :
4757 # Broken: fails on valid input.
4760 rm -f conftest.err conftest.i conftest.$ac_ext
4762 # OK, works on sane cases. Now check whether nonexistent headers
4763 # can be detected and how.
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #include <ac_nonexistent.h>
4768 if ac_fn_c_try_cpp "$LINENO"; then :
4769 # Broken: success on invalid input.
4772 # Passes both tests.
4776 rm -f conftest.err conftest.i conftest.$ac_ext
4779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4780 rm -f conftest.i conftest.err conftest.$ac_ext
4781 if $ac_preproc_ok; then :
4784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4786 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4787 See \`config.log' for more details" "$LINENO" 5; }
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4798 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4799 if ${ac_cv_path_GREP+:} false; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -z "$GREP"; then
4803 ac_path_GREP_found=false
4804 # Loop through the user's path and test for each of PROGNAME-LIST
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4809 test -z "$as_dir" && as_dir=.
4810 for ac_prog in grep ggrep; do
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4813 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4814 # Check for GNU ac_path_GREP and select it if it is found.
4815 # Check for GNU $ac_path_GREP
4816 case `"$ac_path_GREP" --version 2>&1` in
4818 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4821 $as_echo_n 0123456789 >"conftest.in"
4824 cat "conftest.in" "conftest.in" >"conftest.tmp"
4825 mv "conftest.tmp" "conftest.in"
4826 cp "conftest.in" "conftest.nl"
4827 $as_echo 'GREP' >> "conftest.nl"
4828 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830 as_fn_arith $ac_count + 1 && ac_count=$as_val
4831 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4832 # Best one so far, save it but keep looking for a better one
4833 ac_cv_path_GREP="$ac_path_GREP"
4834 ac_path_GREP_max=$ac_count
4836 # 10*(2^10) chars as input seems more than enough
4837 test $ac_count -gt 10 && break
4839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4842 $ac_path_GREP_found && break 3
4847 if test -z "$ac_cv_path_GREP"; then
4848 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4851 ac_cv_path_GREP=$GREP
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4856 $as_echo "$ac_cv_path_GREP" >&6; }
4857 GREP="$ac_cv_path_GREP"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4861 $as_echo_n "checking for egrep... " >&6; }
4862 if ${ac_cv_path_EGREP+:} false; then :
4863 $as_echo_n "(cached) " >&6
4865 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4866 then ac_cv_path_EGREP="$GREP -E"
4868 if test -z "$EGREP"; then
4869 ac_path_EGREP_found=false
4870 # Loop through the user's path and test for each of PROGNAME-LIST
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875 test -z "$as_dir" && as_dir=.
4876 for ac_prog in egrep; do
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4879 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4880 # Check for GNU ac_path_EGREP and select it if it is found.
4881 # Check for GNU $ac_path_EGREP
4882 case `"$ac_path_EGREP" --version 2>&1` in
4884 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4887 $as_echo_n 0123456789 >"conftest.in"
4890 cat "conftest.in" "conftest.in" >"conftest.tmp"
4891 mv "conftest.tmp" "conftest.in"
4892 cp "conftest.in" "conftest.nl"
4893 $as_echo 'EGREP' >> "conftest.nl"
4894 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896 as_fn_arith $ac_count + 1 && ac_count=$as_val
4897 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4898 # Best one so far, save it but keep looking for a better one
4899 ac_cv_path_EGREP="$ac_path_EGREP"
4900 ac_path_EGREP_max=$ac_count
4902 # 10*(2^10) chars as input seems more than enough
4903 test $ac_count -gt 10 && break
4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908 $ac_path_EGREP_found && break 3
4913 if test -z "$ac_cv_path_EGREP"; then
4914 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917 ac_cv_path_EGREP=$EGREP
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4923 $as_echo "$ac_cv_path_EGREP" >&6; }
4924 EGREP="$ac_cv_path_EGREP"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4928 $as_echo_n "checking for ANSI C header files... " >&6; }
4929 if ${ac_cv_header_stdc+:} false; then :
4930 $as_echo_n "(cached) " >&6
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 ac_cv_header_stdc=yes
4950 ac_cv_header_stdc=no
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 if test $ac_cv_header_stdc = yes; then
4955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4962 $EGREP "memchr" >/dev/null 2>&1; then :
4965 ac_cv_header_stdc=no
4971 if test $ac_cv_header_stdc = yes; then
4972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4979 $EGREP "free" >/dev/null 2>&1; then :
4982 ac_cv_header_stdc=no
4988 if test $ac_cv_header_stdc = yes; then
4989 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4990 if test "$cross_compiling" = yes; then :
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4997 #if ((' ' & 0x0FF) == 0x020)
4998 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4999 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5001 # define ISLOWER(c) \
5002 (('a' <= (c) && (c) <= 'i') \
5003 || ('j' <= (c) && (c) <= 'r') \
5004 || ('s' <= (c) && (c) <= 'z'))
5005 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5008 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5013 for (i = 0; i < 256; i++)
5014 if (XOR (islower (i), ISLOWER (i))
5015 || toupper (i) != TOUPPER (i))
5020 if ac_fn_c_try_run "$LINENO"; then :
5023 ac_cv_header_stdc=no
5025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5026 conftest.$ac_objext conftest.beam conftest.$ac_ext
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5032 $as_echo "$ac_cv_header_stdc" >&6; }
5033 if test $ac_cv_header_stdc = yes; then
5035 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5039 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5040 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5041 inttypes.h stdint.h unistd.h
5043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5046 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5047 cat >>confdefs.h <<_ACEOF
5048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5056 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h
5058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5061 cat >>confdefs.h <<_ACEOF
5062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5070 # Checks for typedefs, structures, and compiler characteristics.
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5072 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5073 if ${ac_cv_header_stdbool_h+:} false; then :
5074 $as_echo_n "(cached) " >&6
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5079 #include <stdbool.h>
5081 "error: bool is not defined"
5084 "error: false is not defined"
5087 "error: false is not 0"
5090 "error: true is not defined"
5093 "error: true is not 1"
5095 #ifndef __bool_true_false_are_defined
5096 "error: __bool_true_false_are_defined is not defined"
5099 struct s { _Bool s: 1; _Bool t; } s;
5101 char a[true == 1 ? 1 : -1];
5102 char b[false == 0 ? 1 : -1];
5103 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5104 char d[(bool) 0.5 == true ? 1 : -1];
5105 /* See body of main program for 'e'. */
5106 char f[(_Bool) 0.0 == false ? 1 : -1];
5108 char h[sizeof (_Bool)];
5110 enum { j = false, k = true, l = false * true, m = true * 256 };
5111 /* The following fails for
5112 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5114 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5115 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5116 /* Catch a bug in an HP-UX C compiler. See
5117 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5118 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5130 /* Refer to every declared value, to avoid compiler optimizations. */
5131 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5132 + !m + !n + !o + !p + !q + !pq);
5138 if ac_fn_c_try_compile "$LINENO"; then :
5139 ac_cv_header_stdbool_h=yes
5141 ac_cv_header_stdbool_h=no
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5146 $as_echo "$ac_cv_header_stdbool_h" >&6; }
5147 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5148 if test "x$ac_cv_type__Bool" = xyes; then :
5150 cat >>confdefs.h <<_ACEOF
5151 #define HAVE__BOOL 1
5157 if test $ac_cv_header_stdbool_h = yes; then
5159 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5163 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5164 if test "x$ac_cv_type_off_t" = xyes; then :
5168 cat >>confdefs.h <<_ACEOF
5169 #define off_t long int
5175 # Checks for library functions.
5176 for ac_header in stdlib.h
5178 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5179 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5180 cat >>confdefs.h <<_ACEOF
5181 #define HAVE_STDLIB_H 1
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5189 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5190 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5191 $as_echo_n "(cached) " >&6
5193 if test "$cross_compiling" = yes; then :
5194 ac_cv_func_malloc_0_nonnull=no
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5199 # include <stdlib.h>
5207 return ! malloc (0);
5212 if ac_fn_c_try_run "$LINENO"; then :
5213 ac_cv_func_malloc_0_nonnull=yes
5215 ac_cv_func_malloc_0_nonnull=no
5217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5218 conftest.$ac_objext conftest.beam conftest.$ac_ext
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5223 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5224 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5226 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5229 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5231 case " $LIBOBJS " in
5232 *" malloc.$ac_objext "* ) ;;
5233 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5238 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5243 for ac_func in gethostbyname gethostname memmove socket strchr strdup strerror
5245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5247 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5248 cat >>confdefs.h <<_ACEOF
5249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5256 ac_config_files="$ac_config_files Makefile src/Makefile src/gcm_input/Makefile src/lib/Makefile test/Makefile"
5258 cat >confcache <<\_ACEOF
5259 # This file is a shell script that caches the results of configure
5260 # tests run on this system so they can be shared between configure
5261 # scripts and configure runs, see configure's option --config-cache.
5262 # It is not useful on other systems. If it contains results you don't
5263 # want to keep, you may remove or edit it.
5265 # config.status only pays attention to the cache file if you give it
5266 # the --recheck option to rerun configure.
5268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5274 # The following way of writing the cache mishandles newlines in values,
5275 # but we know of no workaround that is simple, portable, and efficient.
5276 # So, we kill variables containing newlines.
5277 # Ultrix sh set writes to stderr and can't be redirected directly,
5278 # and sets the high bit in the cache file unless we assign to the vars.
5280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5281 eval ac_val=\$$ac_var
5285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5289 _ | IFS | as_nl) ;; #(
5290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5291 *) { eval $ac_var=; unset $ac_var;} ;;
5297 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5298 *${as_nl}ac_space=\ *)
5299 # `set' does not quote correctly, so add quotes: double-quote
5300 # substitution turns \\\\ into \\, and sed turns \\ into \.
5303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5306 # `set' quotes correctly as required by POSIX, so do not add quotes.
5307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5318 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5320 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5321 if test -w "$cache_file"; then
5322 if test "x$cache_file" != "x/dev/null"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5324 $as_echo "$as_me: updating cache $cache_file" >&6;}
5325 if test ! -f "$cache_file" || test -h "$cache_file"; then
5326 cat confcache >"$cache_file"
5328 case $cache_file in #(
5330 mv -f confcache "$cache_file"$$ &&
5331 mv -f "$cache_file"$$ "$cache_file" ;; #(
5333 mv -f confcache "$cache_file" ;;
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5339 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5344 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5345 # Let make expand exec_prefix.
5346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5348 DEFS=-DHAVE_CONFIG_H
5353 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5354 # 1. Remove the extension, and $U if already installed.
5355 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5356 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5358 # will be set to the directory where LIBOBJS objects are built.
5359 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5360 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5364 LTLIBOBJS=$ac_ltlibobjs
5367 if test -n "$EXEEXT"; then
5369 am__EXEEXT_FALSE='#'
5375 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5376 as_fn_error $? "conditional \"AMDEP\" was never defined.
5377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5379 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5380 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5384 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5388 : "${CONFIG_STATUS=./config.status}"
5390 ac_clean_files_save=$ac_clean_files
5391 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5393 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5395 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5397 # Generated by $as_me.
5398 # Run this file to recreate the current configuration.
5399 # Compiler output produced by configure, useful for debugging
5400 # configure, is in config.log if it exists.
5406 SHELL=\${CONFIG_SHELL-$SHELL}
5409 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5410 ## -------------------- ##
5411 ## M4sh Initialization. ##
5412 ## -------------------- ##
5414 # Be more Bourne compatible
5415 DUALCASE=1; export DUALCASE # for MKS sh
5416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5420 # is contrary to our usage. Disable this feature.
5421 alias -g '${1+"$@"}'='"$@"'
5422 setopt NO_GLOB_SUBST
5424 case `(set -o) 2>/dev/null` in #(
5436 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5437 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5440 # Prefer a ksh shell builtin over an external printf program on Solaris,
5441 # but without wasting forks for bash or zsh.
5442 if test -z "$BASH_VERSION$ZSH_VERSION" \
5443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5444 as_echo='print -r --'
5445 as_echo_n='print -rn --'
5446 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5447 as_echo='printf %s\n'
5448 as_echo_n='printf %s'
5450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5452 as_echo_n='/usr/ucb/echo -n'
5454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5455 as_echo_n_body='eval
5459 expr "X$arg" : "X\\(.*\\)$as_nl";
5460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5464 export as_echo_n_body
5465 as_echo_n='sh -c $as_echo_n_body as_echo'
5468 as_echo='sh -c $as_echo_body as_echo'
5471 # The user is always right.
5472 if test "${PATH_SEPARATOR+set}" != set; then
5474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5482 # We need space, tab and new line, in precisely that order. Quoting is
5483 # there to prevent editors from complaining about space-tab.
5484 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5485 # splitting by setting IFS to empty value.)
5488 # Find who we are. Look in the path if we contain no directory separator.
5491 *[\\/]* ) as_myself=$0 ;;
5492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5503 # We did not find ourselves, most probably we were run as `sh COMMAND'
5504 # in which case we are not to be found in the path.
5505 if test "x$as_myself" = x; then
5508 if test ! -f "$as_myself"; then
5509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5513 # Unset variables that we do not need and which cause bugs (e.g. in
5514 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5515 # suppresses any "Segmentation fault" message there. '((' could
5516 # trigger a bug in pdksh 5.2.14.
5517 for as_var in BASH_ENV ENV MAIL MAILPATH
5518 do eval test x\${$as_var+set} = xset \
5519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5535 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5536 # ----------------------------------------
5537 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5538 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5539 # script with STATUS, using 1 if that was 0.
5542 as_status=$1; test $as_status -eq 0 && as_status=1
5544 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5545 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5547 $as_echo "$as_me: error: $2" >&2
5548 as_fn_exit $as_status
5552 # as_fn_set_status STATUS
5553 # -----------------------
5554 # Set $? to STATUS, without forking.
5558 } # as_fn_set_status
5562 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5572 # Portably unset VAR.
5575 { eval $1=; unset $1;}
5577 as_unset=as_fn_unset
5578 # as_fn_append VAR VALUE
5579 # ----------------------
5580 # Append the text in VALUE to the end of the definition contained in VAR. Take
5581 # advantage of any shell optimizations that allow amortized linear growth over
5582 # repeated appends, instead of the typical quadratic growth present in naive
5584 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5585 eval 'as_fn_append ()
5596 # as_fn_arith ARG...
5597 # ------------------
5598 # Perform arithmetic evaluation on the ARGs, and store the result in the
5599 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5600 # must be portable across $(()) and expr.
5601 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5602 eval 'as_fn_arith ()
5609 as_val=`expr "$@" || test $? -eq 1`
5614 if expr a : '\(a\)' >/dev/null 2>&1 &&
5615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5622 as_basename=basename
5627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5633 as_me=`$as_basename -- "$0" ||
5634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5635 X"$0" : 'X\(//\)$' \| \
5636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5638 sed '/^.*\/\([^/][^/]*\)\/*$/{
5652 # Avoid depending upon Character Ranges.
5653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5656 as_cr_digits='0123456789'
5657 as_cr_alnum=$as_cr_Letters$as_cr_digits
5659 ECHO_C= ECHO_N= ECHO_T=
5660 case `echo -n x` in #(((((
5662 case `echo 'xy\c'` in
5663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5665 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5672 rm -f conf$$ conf$$.exe conf$$.file
5673 if test -d conf$$.dir; then
5674 rm -f conf$$.dir/conf$$.file
5677 mkdir conf$$.dir 2>/dev/null
5679 if (echo >conf$$.file) 2>/dev/null; then
5680 if ln -s conf$$.file conf$$ 2>/dev/null; then
5682 # ... but there are two gotchas:
5683 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5684 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5685 # In both cases, we have to default to `cp -p'.
5686 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5688 elif ln conf$$.file conf$$ 2>/dev/null; then
5696 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5697 rmdir conf$$.dir 2>/dev/null
5702 # Create "$as_dir" as a directory, including parents if necessary.
5707 -*) as_dir=./$as_dir;;
5709 test -d "$as_dir" || eval $as_mkdir_p || {
5713 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5714 *) as_qdir=$as_dir;;
5716 as_dirs="'$as_qdir' $as_dirs"
5717 as_dir=`$as_dirname -- "$as_dir" ||
5718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5719 X"$as_dir" : 'X\(//\)[^/]' \| \
5720 X"$as_dir" : 'X\(//\)$' \| \
5721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5722 $as_echo X"$as_dir" |
5723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5740 test -d "$as_dir" && break
5742 test -z "$as_dirs" || eval "mkdir $as_dirs"
5743 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5747 if mkdir -p . 2>/dev/null; then
5748 as_mkdir_p='mkdir -p "$as_dir"'
5750 test -d ./-p && rmdir ./-p
5754 if test -x / >/dev/null 2>&1; then
5757 if ls -dL / >/dev/null 2>&1; then
5764 if test -d "$1"; then
5770 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5771 ???[sx]*):;;*)false;;esac;fi
5775 as_executable_p=$as_test_x
5777 # Sed expression to map a string onto a valid CPP name.
5778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5780 # Sed expression to map a string onto a valid variable name.
5781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5785 ## ----------------------------------- ##
5786 ## Main body of $CONFIG_STATUS script. ##
5787 ## ----------------------------------- ##
5789 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5792 # Save the log message, to keep $0 and so on meaningful, and to
5793 # report actual input values of CONFIG_FILES etc. instead of their
5794 # values after options handling.
5796 This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
5797 generated by GNU Autoconf 2.68. Invocation command line was
5799 CONFIG_FILES = $CONFIG_FILES
5800 CONFIG_HEADERS = $CONFIG_HEADERS
5801 CONFIG_LINKS = $CONFIG_LINKS
5802 CONFIG_COMMANDS = $CONFIG_COMMANDS
5805 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5810 case $ac_config_files in *"
5811 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5814 case $ac_config_headers in *"
5815 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5820 # Files that config.status was made for.
5821 config_files="$ac_config_files"
5822 config_headers="$ac_config_headers"
5823 config_commands="$ac_config_commands"
5827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5829 \`$as_me' instantiates files and other configuration actions
5830 from templates according to the current configuration. Unless the files
5831 and actions are specified as TAGs, all are instantiated by default.
5833 Usage: $0 [OPTION]... [TAG]...
5835 -h, --help print this help, then exit
5836 -V, --version print version number and configuration settings, then exit
5837 --config print configuration, then exit
5838 -q, --quiet, --silent
5839 do not print progress messages
5840 -d, --debug don't remove temporary files
5841 --recheck update $as_me by reconfiguring in the same conditions
5842 --file=FILE[:TEMPLATE]
5843 instantiate the configuration file FILE
5844 --header=FILE[:TEMPLATE]
5845 instantiate the configuration header FILE
5847 Configuration files:
5850 Configuration headers:
5853 Configuration commands:
5856 Report bugs to <BUG-REPORT-ADDRESS>."
5859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5860 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5862 FULL-PACKAGE-NAME config.status VERSION
5863 configured by $0, generated by GNU Autoconf 2.68,
5864 with options \\"\$ac_cs_config\\"
5866 Copyright (C) 2010 Free Software Foundation, Inc.
5867 This config.status script is free software; the Free Software Foundation
5868 gives unlimited permission to copy, distribute and modify it."
5875 test -n "\$AWK" || AWK=awk
5878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5879 # The default lists apply if the user does not specify any file.
5885 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5902 # Handling of the options.
5903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5906 $as_echo "$ac_cs_version"; exit ;;
5907 --config | --confi | --conf | --con | --co | --c )
5908 $as_echo "$ac_cs_config"; exit ;;
5909 --debug | --debu | --deb | --de | --d | -d )
5911 --file | --fil | --fi | --f )
5914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5915 '') as_fn_error $? "missing file argument" ;;
5917 as_fn_append CONFIG_FILES " '$ac_optarg'"
5918 ac_need_defaults=false;;
5919 --header | --heade | --head | --hea )
5922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5924 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5925 ac_need_defaults=false;;
5927 # Conflict between --help and --header
5928 as_fn_error $? "ambiguous option: \`$1'
5929 Try \`$0 --help' for more information.";;
5930 --help | --hel | -h )
5931 $as_echo "$ac_cs_usage"; exit ;;
5932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5937 -*) as_fn_error $? "unrecognized option: \`$1'
5938 Try \`$0 --help' for more information." ;;
5940 *) as_fn_append ac_config_targets " $1"
5941 ac_need_defaults=false ;;
5947 ac_configure_extra_args=
5949 if $ac_cs_silent; then
5951 ac_configure_extra_args="$ac_configure_extra_args --silent"
5955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5956 if \$ac_cs_recheck; then
5957 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5959 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5960 CONFIG_SHELL='$SHELL'
5966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5971 ## Running $as_me. ##
5977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5981 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5987 # Handling of arguments.
5988 for ac_config_target in $ac_config_targets
5990 case $ac_config_target in
5991 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5992 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5993 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5994 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5995 "src/gcm_input/Makefile") CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
5996 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
5997 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
5999 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6004 # If the user did not use the arguments to specify the items to instantiate,
6005 # then the envvar interface is used. Set only those that are not.
6006 # We use the long form for the default assignment because of an extremely
6007 # bizarre bug on SunOS 4.1.3.
6008 if $ac_need_defaults; then
6009 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6010 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6011 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6014 # Have a temporary directory for convenience. Make it in the build tree
6015 # simply because there is no reason against having it here, and in addition,
6016 # creating and moving files from /tmp can sometimes cause problems.
6017 # Hook for its removal unless debugging.
6018 # Note that there is a small window in which the directory will not be cleaned:
6019 # after its creation but before its name has been assigned to `$tmp'.
6023 trap 'exit_status=$?
6025 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6027 trap 'as_fn_exit 1' 1 2 13 15
6029 # Create a (secure) tmp directory for tmp files.
6032 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6036 tmp=./conf$$-$RANDOM
6037 (umask 077 && mkdir "$tmp")
6038 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6041 # Set up the scripts for CONFIG_FILES section.
6042 # No need to generate them if there are no CONFIG_FILES.
6043 # This happens for instance with `./config.status config.h'.
6044 if test -n "$CONFIG_FILES"; then
6047 ac_cr=`echo X | tr X '\015'`
6048 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6049 # But we know of no other shell where ac_cr would be empty at this
6050 # point, so we can use a bashism as a fallback.
6051 if test "x$ac_cr" = x; then
6052 eval ac_cr=\$\'\\r\'
6054 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6055 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6061 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6066 echo "cat >conf$$subs.awk <<_ACEOF" &&
6067 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6071 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6073 for ac_last_try in false false false false false :; do
6074 . ./conf$$subs.sh ||
6075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6077 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6078 if test $ac_delim_n = $ac_delim_num; then
6080 elif $ac_last_try; then
6081 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6089 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6093 s/^/S["/; s/!.*/"]=/
6103 s/\(.\{148\}\)..*/\1/
6105 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6117 s/\(.\{148\}\)..*/\1/
6119 s/["\\]/\\&/g; s/^/"/; s/$/"/
6123 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6128 ' <conf$$subs.awk | sed '
6133 ' >>$CONFIG_STATUS || ac_write_fail=1
6134 rm -f conf$$subs.awk
6135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6137 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6138 for (key in S) S_is_set[key] = 1
6144 nfields = split(line, field, "@")
6146 len = length(field[1])
6147 for (i = 2; i < nfields; i++) {
6149 keylen = length(key)
6150 if (S_is_set[key]) {
6152 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6153 len += length(value) + length(field[++i])
6164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6165 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6166 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6169 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6170 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6173 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6174 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6175 # trailing colons and then remove the whole line if VPATH becomes empty
6176 # (actually we leave an empty line to preserve line numbers).
6177 if test "x$srcdir" = x.; then
6178 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6197 fi # test -n "$CONFIG_FILES"
6199 # Set up the scripts for CONFIG_HEADERS section.
6200 # No need to generate them if there are no CONFIG_HEADERS.
6201 # This happens for instance with `./config.status Makefile'.
6202 if test -n "$CONFIG_HEADERS"; then
6203 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6207 # Transform confdefs.h into an awk script `defines.awk', embedded as
6208 # here-document in config.status, that substitutes the proper values into
6209 # config.h.in to produce config.h.
6211 # Create a delimiter string that does not exist in confdefs.h, to ease
6212 # handling of long lines.
6214 for ac_last_try in false false :; do
6215 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6216 if test -z "$ac_tt"; then
6218 elif $ac_last_try; then
6219 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6225 # For the awk script, D is an array of macro values keyed by name,
6226 # likewise P contains macro parameters if any. Preserve backslash
6227 # newline sequences.
6229 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6231 s/.\{148\}/&'"$ac_delim"'/g
6234 s/^[ ]*#[ ]*define[ ][ ]*/ /
6241 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6247 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6248 D["\1"]=" \3\\\\\\n"\\/p
6250 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6255 s/.\{148\}/&'"$ac_delim"'/g
6260 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6263 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6265 ' <confdefs.h | sed '
6266 s/'"$ac_delim"'/"\\\
6267 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6270 for (key in D) D_is_set[key] = 1
6273 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6275 split(line, arg, " ")
6276 if (arg[1] == "#") {
6280 defundef = substr(arg[1], 2)
6283 split(mac1, mac2, "(") #)
6285 prefix = substr(line, 1, index(line, defundef) - 1)
6286 if (D_is_set[macro]) {
6287 # Preserve the white space surrounding the "#".
6288 print prefix "define", macro P[macro] D[macro]
6291 # Replace #undef with comments. This is necessary, for example,
6292 # in the case of _POSIX_SOURCE, which is predefined and required
6293 # on some systems where configure will not decide to define it.
6294 if (defundef == "undef") {
6295 print "/*", prefix defundef, macro, "*/"
6303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6304 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6305 fi # test -n "$CONFIG_HEADERS"
6308 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6313 :[FHLC]) ac_mode=$ac_tag; continue;;
6315 case $ac_mode$ac_tag in
6317 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6318 :[FH]-) ac_tag=-:-;;
6319 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6336 -) ac_f="$ac_tmp/stdin";;
6337 *) # Look for the file first in the build tree, then in the source tree
6338 # (if the path is not absolute). The absolute path cannot be DOS-style,
6339 # because $ac_f cannot contain `:'.
6343 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6345 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6347 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6348 as_fn_append ac_file_inputs " '$ac_f'"
6351 # Let's still pretend it is `configure' which instantiates (i.e., don't
6352 # use $as_me), people would be surprised to read:
6353 # /* config.h. Generated by config.status. */
6354 configure_input='Generated from '`
6355 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6357 if test x"$ac_file" != x-; then
6358 configure_input="$ac_file. $configure_input"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6360 $as_echo "$as_me: creating $ac_file" >&6;}
6362 # Neutralize special characters interpreted by sed in replacement strings.
6363 case $configure_input in #(
6364 *\&* | *\|* | *\\* )
6365 ac_sed_conf_input=`$as_echo "$configure_input" |
6366 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6367 *) ac_sed_conf_input=$configure_input;;
6371 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6377 ac_dir=`$as_dirname -- "$ac_file" ||
6378 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6379 X"$ac_file" : 'X\(//\)[^/]' \| \
6380 X"$ac_file" : 'X\(//\)$' \| \
6381 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6382 $as_echo X"$ac_file" |
6383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6400 as_dir="$ac_dir"; as_fn_mkdir_p
6404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6407 # A ".." for each directory in $ac_dir_suffix.
6408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6409 case $ac_top_builddir_sub in
6410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6414 ac_abs_top_builddir=$ac_pwd
6415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6416 # for backward compatibility:
6417 ac_top_builddir=$ac_top_build_prefix
6420 .) # We are building in place.
6422 ac_top_srcdir=$ac_top_builddir_sub
6423 ac_abs_top_srcdir=$ac_pwd ;;
6424 [\\/]* | ?:[\\/]* ) # Absolute name.
6425 ac_srcdir=$srcdir$ac_dir_suffix;
6426 ac_top_srcdir=$srcdir
6427 ac_abs_top_srcdir=$srcdir ;;
6429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6430 ac_top_srcdir=$ac_top_build_prefix$srcdir
6431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6443 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6444 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6448 [\\/$]* | ?:[\\/]* ) ;;
6449 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6454 # If the template does not know about datarootdir, expand it.
6455 # FIXME: This hack should be removed a few years after 2.60.
6456 ac_datarootdir_hack=; ac_datarootdir_seen=
6467 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6468 *datarootdir*) ac_datarootdir_seen=yes;;
6469 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6471 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6474 ac_datarootdir_hack='
6475 s&@datadir@&$datadir&g
6476 s&@docdir@&$docdir&g
6477 s&@infodir@&$infodir&g
6478 s&@localedir@&$localedir&g
6479 s&@mandir@&$mandir&g
6480 s&\\\${datarootdir}&$datarootdir&g' ;;
6484 # Neutralize VPATH when `$srcdir' = `.'.
6485 # Shell code in configure.ac might set extrasub.
6486 # FIXME: do we really want to maintain this feature?
6487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6488 ac_sed_extra="$ac_vpsub
6491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6494 s|@configure_input@|$ac_sed_conf_input|;t t
6495 s&@top_builddir@&$ac_top_builddir_sub&;t t
6496 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6497 s&@srcdir@&$ac_srcdir&;t t
6498 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6499 s&@top_srcdir@&$ac_top_srcdir&;t t
6500 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6501 s&@builddir@&$ac_builddir&;t t
6502 s&@abs_builddir@&$ac_abs_builddir&;t t
6503 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6504 s&@INSTALL@&$ac_INSTALL&;t t
6505 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6506 $ac_datarootdir_hack
6508 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6509 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6511 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6512 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6513 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6514 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6516 which seems to be undefined. Please make sure it is defined" >&5
6517 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6518 which seems to be undefined. Please make sure it is defined" >&2;}
6520 rm -f "$ac_tmp/stdin"
6522 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6523 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6531 if test x"$ac_file" != x-; then
6533 $as_echo "/* $configure_input */" \
6534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6535 } >"$ac_tmp/config.h" \
6536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6537 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6539 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6542 mv "$ac_tmp/config.h" "$ac_file" \
6543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6546 $as_echo "/* $configure_input */" \
6547 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6548 || as_fn_error $? "could not create -" "$LINENO" 5
6550 # Compute "$ac_file"'s index in $config_headers.
6553 for _am_header in $config_headers :; do
6555 $_am_arg | $_am_arg:* )
6558 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6561 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6562 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6563 X"$_am_arg" : 'X\(//\)[^/]' \| \
6564 X"$_am_arg" : 'X\(//\)$' \| \
6565 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6566 $as_echo X"$_am_arg" |
6567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6583 s/.*/./; q'`/stamp-h$_am_stamp_count
6586 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6587 $as_echo "$as_me: executing $ac_file commands" >&6;}
6592 case $ac_file$ac_mode in
6593 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6594 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6595 # are listed without --file. Let's play safe and only enable the eval
6596 # if we detect the quoting.
6597 case $CONFIG_FILES in
6598 *\'*) eval set x "$CONFIG_FILES" ;;
6599 *) set x $CONFIG_FILES ;;
6604 # Strip MF so we end up with the name of the file.
6605 mf=`echo "$mf" | sed -e 's/:.*$//'`
6606 # Check whether this is an Automake generated Makefile or not.
6607 # We used to match only the files named `Makefile.in', but
6608 # some people rename them; so instead we look at the file content.
6609 # Grep'ing the first line is not enough: some people post-process
6610 # each Makefile.in and add a new line on top of each file to say so.
6611 # Grep'ing the whole file is not good either: AIX grep has a line
6612 # limit of 2048, but all sed's we know have understand at least 4000.
6613 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6614 dirpart=`$as_dirname -- "$mf" ||
6615 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6616 X"$mf" : 'X\(//\)[^/]' \| \
6617 X"$mf" : 'X\(//\)$' \| \
6618 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6640 # Extract the definition of DEPDIR, am__include, and am__quote
6641 # from the Makefile without running `make'.
6642 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6643 test -z "$DEPDIR" && continue
6644 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6645 test -z "am__include" && continue
6646 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6647 # When using ansi2knr, U may be empty or an underscore; expand it
6648 U=`sed -n 's/^U = //p' < "$mf"`
6649 # Find all dependency output files, they are included files with
6650 # $(DEPDIR) in their names. We invoke sed twice because it is the
6651 # simplest approach to changing $(DEPDIR) to its actual value in the
6653 for file in `sed -n "
6654 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6655 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6656 # Make sure the directory exists.
6657 test -f "$dirpart/$file" && continue
6658 fdir=`$as_dirname -- "$file" ||
6659 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6660 X"$file" : 'X\(//\)[^/]' \| \
6661 X"$file" : 'X\(//\)$' \| \
6662 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6681 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6682 # echo "creating $dirpart/$file"
6683 echo '# dummy' > "$dirpart/$file"
6695 ac_clean_files=$ac_clean_files_save
6697 test $ac_write_fail = 0 ||
6698 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6701 # configure is writing to config.log, and then calls config.status.
6702 # config.status does its own redirection, appending to config.log.
6703 # Unfortunately, on DOS this fails, as config.log is still kept open
6704 # by configure, so config.status won't be able to write to it; its
6705 # output is simply discarded. So we exec the FD to /dev/null,
6706 # effectively closing config.log, so it can be properly (re)opened and
6707 # appended to by config.status. When coming back to configure, we
6708 # need to make the FD available again.
6709 if test "$no_create" != yes; then
6711 ac_config_status_args=
6712 test "$silent" = yes &&
6713 ac_config_status_args="$ac_config_status_args --quiet"
6715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6718 # would make configure fail if this is the last instruction.
6719 $ac_cs_success || as_fn_exit 1
6721 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6723 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}