2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for lcr 1.7.
5 # Report bugs to <andreas@eversberg.eu>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: andreas@eversberg.eu about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='lcr'
555 PACKAGE_VERSION='1.7'
556 PACKAGE_STRING='lcr 1.7'
557 PACKAGE_BUGREPORT='andreas@eversberg.eu'
560 ac_unique_file="main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars='LTLIBOBJS
609 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
610 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
633 INSTALL_STRIP_PROGRAM
684 program_transform_name
697 enable_option_checking
698 enable_dependency_tracking
705 ac_precious_vars='build_alias
719 # Initialize some variables set by options.
721 ac_init_version=false
722 ac_unrecognized_opts=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
733 program_transform_name=s,x,x,
741 # Installation directory options.
742 # These are left unexpanded so users can "make install exec_prefix=/foo"
743 # and all the variables that are supposed to be based on exec_prefix
744 # by default will actually change.
745 # Use braces instead of parens because sh, perl, etc. also accept them.
746 # (The list follows the same order as the GNU Coding Standards.)
747 bindir='${exec_prefix}/bin'
748 sbindir='${exec_prefix}/sbin'
749 libexecdir='${exec_prefix}/libexec'
750 datarootdir='${prefix}/share'
751 datadir='${datarootdir}'
752 sysconfdir='${prefix}/etc'
753 sharedstatedir='${prefix}/com'
754 localstatedir='${prefix}/var'
755 includedir='${prefix}/include'
756 oldincludedir='/usr/include'
757 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
758 infodir='${datarootdir}/info'
763 libdir='${exec_prefix}/lib'
764 localedir='${datarootdir}/locale'
765 mandir='${datarootdir}/man'
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\$ac_option
779 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
807 cache_file=config.cache ;;
809 -datadir | --datadir | --datadi | --datad)
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
821 -disable-* | --disable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
835 eval enable_$ac_useropt=no ;;
837 -docdir | --docdir | --docdi | --doc | --do)
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847 -enable-* | --enable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
861 eval enable_$ac_useropt=\$ac_optarg ;;
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
876 -help | --help | --hel | --he | -h)
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 htmldir=$ac_optarg ;;
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
906 -libdir | --libdir | --libdi | --libd)
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
918 -localedir | --localedir | --localedi | --localed | --locale)
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 # Obsolete; use --without-fp.
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 -psdir | --psdir | --psdi | --psd | --ps)
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 sbindir=$ac_optarg ;;
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 sharedstatedir=$ac_optarg ;;
1023 -site | --site | --sit)
1025 -site=* | --site=* | --sit=*)
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval with_$ac_useropt=\$ac_optarg ;;
1067 -without-* | --without-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1081 eval with_$ac_useropt=no ;;
1084 # Obsolete; use --with-x.
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1101 -*) as_fn_error "unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information."
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error "missing argument to $ac_option"
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1134 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 # Check all directory arguments for consistency.
1140 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1152 # Be sure to have absolute directory names.
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1165 target=$target_alias
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x; then
1169 if test "x$build_alias" = x; then
1170 cross_compiling=maybe
1171 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1172 If a cross compiler is detected then cross compile mode will be used." >&2
1173 elif test "x$build_alias" != "x$host_alias"; then
1179 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1181 test "$silent" = yes && exec 6>/dev/null
1184 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1185 ac_ls_di=`ls -di .` &&
1186 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error "working directory cannot be determined"
1188 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error "pwd does not report name of working directory"
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1224 ac_srcdir_defaulted=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1228 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1242 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1258 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1316 --program-prefix=PREFIX prepend PREFIX to installed program names
1317 --program-suffix=SUFFIX append SUFFIX to installed program names
1318 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1322 if test -n "$ac_init_help"; then
1323 case $ac_init_help in
1324 short | recursive ) echo "Configuration of lcr 1.7:";;
1329 --disable-option-checking ignore unrecognized --enable/--with options
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --disable-dependency-tracking speeds up one-time build
1333 --enable-dependency-tracking do not reject slow dependency extractors
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --with-asterisk compile with built-in Asterisk channel driver
1341 --with-ssl compile with ssl support (libcrypto) [default=check]
1343 --with-gsm-bs compile with OpenBSC support [default=check]
1345 --with-gsm-ms compile with Osmocom-bb support [default=check]
1347 --with-ss5 compile with CCITT No. 5 support [default=no]
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1359 CXX C++ compiler command
1360 CXXFLAGS C++ compiler flags
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1365 Report bugs to <andreas@eversberg.eu>.
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" ||
1374 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1382 # A ".." for each directory in $ac_dir_suffix.
1383 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1384 case $ac_top_builddir_sub in
1385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1389 ac_abs_top_builddir=$ac_pwd
1390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1391 # for backward compatibility:
1392 ac_top_builddir=$ac_top_build_prefix
1395 .) # We are building in place.
1397 ac_top_srcdir=$ac_top_builddir_sub
1398 ac_abs_top_srcdir=$ac_pwd ;;
1399 [\\/]* | ?:[\\/]* ) # Absolute name.
1400 ac_srcdir=$srcdir$ac_dir_suffix;
1401 ac_top_srcdir=$srcdir
1402 ac_abs_top_srcdir=$srcdir ;;
1404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1405 ac_top_srcdir=$ac_top_build_prefix$srcdir
1406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1410 cd "$ac_dir" || { ac_status=$?; continue; }
1411 # Check for guested configure.
1412 if test -f "$ac_srcdir/configure.gnu"; then
1414 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1415 elif test -f "$ac_srcdir/configure"; then
1417 $SHELL "$ac_srcdir/configure" --help=recursive
1419 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421 cd "$ac_pwd" || { ac_status=$?; break; }
1425 test -n "$ac_init_help" && exit $ac_status
1426 if $ac_init_version; then
1429 generated by GNU Autoconf 2.65
1431 Copyright (C) 2009 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1438 ## ------------------------ ##
1439 ## Autoconf initialization. ##
1440 ## ------------------------ ##
1442 # ac_fn_c_try_compile LINENO
1443 # --------------------------
1444 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1445 ac_fn_c_try_compile ()
1447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1448 rm -f conftest.$ac_objext
1449 if { { ac_try="$ac_compile"
1451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1452 *) ac_try_echo=$ac_try;;
1454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1455 $as_echo "$ac_try_echo"; } >&5
1456 (eval "$ac_compile") 2>conftest.err
1458 if test -s conftest.err; then
1459 grep -v '^ *+' conftest.err >conftest.er1
1460 cat conftest.er1 >&5
1461 mv -f conftest.er1 conftest.err
1463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1464 test $ac_status = 0; } && {
1465 test -z "$ac_c_werror_flag" ||
1466 test ! -s conftest.err
1467 } && test -s conftest.$ac_objext; then :
1470 $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1476 as_fn_set_status $ac_retval
1478 } # ac_fn_c_try_compile
1480 # ac_fn_c_try_cpp LINENO
1481 # ----------------------
1482 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 if { { ac_try="$ac_cpp conftest.$ac_ext"
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } >/dev/null && {
1502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 as_fn_set_status $ac_retval
1517 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1518 # -------------------------------------------------------
1519 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1520 # the include files in INCLUDES and setting the cache variable VAR
1522 ac_fn_c_check_header_mongrel ()
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1527 $as_echo_n "checking for $2... " >&6; }
1528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1529 $as_echo_n "(cached) " >&6
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1533 $as_echo "$ac_res" >&6; }
1535 # Is the header compilable?
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1537 $as_echo_n "checking $2 usability... " >&6; }
1538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1539 /* end confdefs.h. */
1543 if ac_fn_c_try_compile "$LINENO"; then :
1544 ac_header_compiler=yes
1546 ac_header_compiler=no
1548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1550 $as_echo "$ac_header_compiler" >&6; }
1552 # Is the header present?
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1554 $as_echo_n "checking $2 presence... " >&6; }
1555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1556 /* end confdefs.h. */
1559 if ac_fn_c_try_cpp "$LINENO"; then :
1560 ac_header_preproc=yes
1562 ac_header_preproc=no
1564 rm -f conftest.err conftest.$ac_ext
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1566 $as_echo "$ac_header_preproc" >&6; }
1568 # So? What about this header?
1569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1572 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1574 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1578 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1580 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1582 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1584 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1586 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1588 ## ----------------------------------- ##
1589 ## Report this to andreas@eversberg.eu ##
1590 ## ----------------------------------- ##
1592 ) | sed "s/^/$as_me: WARNING: /" >&2
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1598 $as_echo_n "(cached) " >&6
1600 eval "$3=\$ac_header_compiler"
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 } # ac_fn_c_check_header_mongrel
1610 # ac_fn_c_try_run LINENO
1611 # ----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613 # that executables *can* be run.
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_link"
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>&5
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628 { { case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_try") 2>&5
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; }; }; then :
1640 $as_echo "$as_me: program exited with status $ac_status" >&5
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=$ac_status
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1669 if ac_fn_c_try_compile "$LINENO"; then :
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_cxx_try_compile LINENO
1684 # ----------------------------
1685 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_cxx_try_compile ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext
1690 if { { ac_try="$ac_compile"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_compile") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_cxx_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest.$ac_objext; then :
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_cxx_try_compile
1721 # ac_fn_c_try_link LINENO
1722 # -----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded.
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext conftest$ac_exeext
1728 if { { ac_try="$ac_link"
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>conftest.err
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest$ac_exeext && {
1747 test "$cross_compiling" = yes ||
1748 $as_test_x conftest$ac_exeext
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_c_try_link
1767 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1768 # -------------------------------------------
1769 # Tests whether TYPE exists after having included INCLUDES, setting cache
1770 # variable VAR accordingly.
1771 ac_fn_c_check_type ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_type
1821 # ac_fn_c_check_func LINENO FUNC VAR
1822 # ----------------------------------
1823 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1824 ac_fn_c_check_func ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 $as_echo_n "(cached) " >&6
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836 #define $2 innocuous_$2
1838 /* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1844 # include <limits.h>
1846 # include <assert.h>
1851 /* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined __stub_$2 || defined __stub___$2
1873 if ac_fn_c_try_link "$LINENO"; then :
1878 rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 } # ac_fn_c_check_func
1887 cat >config.log <<_ACEOF
1888 This file contains any messages produced by compilers while
1889 running configure, to aid debugging if configure makes a mistake.
1891 It was created by lcr $as_me 1.7, which was
1892 generated by GNU Autoconf 2.65. Invocation command line was
1904 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1913 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1916 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1917 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 $as_echo "PATH: $as_dir"
1944 # Keep a trace of the command line.
1945 # Strip out --no-create and --no-recursion so they do not pile up.
1946 # Strip out --silent because we don't want to record it for future runs.
1947 # Also quote any args containing shell meta-characters.
1948 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_must_keep_next=false
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1981 -* ) ac_must_keep_next=true ;;
1984 as_fn_append ac_configure_args " '$ac_arg'"
1989 { ac_configure_args0=; unset ac_configure_args0;}
1990 { ac_configure_args1=; unset ac_configure_args1;}
1992 # When interrupted or exit'd, cleanup temporary files, and complete
1993 # config.log. We remove comments because anyway the quotes in there
1994 # would cause problems or look ugly.
1995 # WARNING: Use '\'' to represent an apostrophe within the trap.
1996 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1997 trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
2003 ## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##
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"
2041 ## ----------------- ##
2042 ## Output variables. ##
2043 ## ----------------- ##
2046 for ac_var in $ac_subst_vars
2048 eval ac_val=\$$ac_var
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 $as_echo "$ac_var='\''$ac_val'\''"
2056 if test -n "$ac_subst_files"; then
2058 ## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##
2063 for ac_var in $ac_subst_files
2065 eval ac_val=\$$ac_var
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 $as_echo "$ac_var='\''$ac_val'\''"
2074 if test -s confdefs.h; then
2084 test "$ac_signal" != 0 &&
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092 for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2098 rm -f -r conftest* confdefs.h
2100 $as_echo "/* confdefs.h */" > confdefs.h
2102 # Predefined preprocessor variables.
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_NAME "$PACKAGE_NAME"
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_STRING "$PACKAGE_STRING"
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_URL "$PACKAGE_URL"
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2133 if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135 elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144 test "x$ac_site_file" = xNONE && continue
2145 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special files
2155 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 $as_echo "$as_me: loading cache $cache_file" >&6;}
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 $as_echo "$as_me: creating cache $cache_file" >&6;}
2170 # Check that the precious variables saved in the cache have kept the same
2172 ac_cache_corrupted=false
2173 for ac_var in $ac_precious_vars; do
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
2178 case $ac_old_set,$ac_new_set in
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2220 if $ac_cache_corrupted; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2227 ## -------------------- ##
2228 ## Main body of script. ##
2229 ## -------------------- ##
2232 ac_cpp='$CPP $CPPFLAGS'
2233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240 ac_config_headers="$ac_config_headers config.h"
2243 # fix warnings from autoconf + automake
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249 if test -n "$ac_tool_prefix"; then
2250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if test "${ac_cv_prog_CC+set}" = set; then :
2255 $as_echo_n "(cached) " >&6
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 if test -n "$CC"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2280 $as_echo "$CC" >&6; }
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2283 $as_echo "no" >&6; }
2288 if test -z "$ac_cv_prog_CC"; then
2290 # Extract the first word of "gcc", so it can be a program name with args.
2291 set dummy gcc; ac_word=$2
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2295 $as_echo_n "(cached) " >&6
2297 if test -n "$ac_ct_CC"; then
2298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_ac_ct_CC="gcc"
2308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2320 $as_echo "$ac_ct_CC" >&6; }
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323 $as_echo "no" >&6; }
2326 if test "x$ac_ct_CC" = x; then
2329 case $cross_compiling:$ac_tool_warned in
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2333 ac_tool_warned=yes ;;
2341 if test -z "$CC"; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}cc; ac_word=$2
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_CC+set}" = set; then :
2348 $as_echo_n "(cached) " >&6
2350 if test -n "$CC"; then
2351 ac_cv_prog_CC="$CC" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_CC="${ac_tool_prefix}cc"
2361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 if test -n "$CC"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2373 $as_echo "$CC" >&6; }
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2376 $as_echo "no" >&6; }
2382 if test -z "$CC"; then
2383 # Extract the first word of "cc", so it can be a program name with args.
2384 set dummy cc; ac_word=$2
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if test "${ac_cv_prog_CC+set}" = set; then :
2388 $as_echo_n "(cached) " >&6
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2402 ac_prog_rejected=yes
2406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test $ac_prog_rejected = yes; then
2414 # We found a bogon in the path, so make sure we never use it.
2415 set dummy $ac_cv_prog_CC
2417 if test $# != 0; then
2418 # We chose a different compiler from the bogus one.
2419 # However, it has the same basename, so the bogon will be chosen
2420 # first if we set CC to just the basename; use the full file name.
2422 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2428 if test -n "$CC"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2430 $as_echo "$CC" >&6; }
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433 $as_echo "no" >&6; }
2438 if test -z "$CC"; then
2439 if test -n "$ac_tool_prefix"; then
2440 for ac_prog in cl.exe
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 if test -n "$CC"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2472 $as_echo "$CC" >&6; }
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2479 test -n "$CC" && break
2482 if test -z "$CC"; then
2484 for ac_prog in cl.exe
2486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
2493 if test -n "$ac_ct_CC"; then
2494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_ac_ct_CC="$ac_prog"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2514 if test -n "$ac_ct_CC"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2516 $as_echo "$ac_ct_CC" >&6; }
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2523 test -n "$ac_ct_CC" && break
2526 if test "x$ac_ct_CC" = x; then
2529 case $cross_compiling:$ac_tool_warned in
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533 ac_tool_warned=yes ;;
2542 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 as_fn_error "no acceptable C compiler found in \$PATH
2545 See \`config.log' for more details." "$LINENO" 5; }
2547 # Provide some information about the compiler.
2548 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2551 for ac_option in --version -v -V -qversion; do
2552 { { ac_try="$ac_compiler $ac_option >&5"
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 $as_echo "$ac_try_echo"; } >&5
2559 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2561 if test -s conftest.err; then
2563 ... rest of stderr output deleted ...
2564 10q' conftest.err >conftest.er1
2565 cat conftest.er1 >&5
2567 rm -f conftest.er1 conftest.err
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; }
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2583 ac_clean_files_save=$ac_clean_files
2584 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2585 # Try to create an executable without -o first, disregard a.out.
2586 # It will help us diagnose broken compilers, and finding out an intuition
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2589 $as_echo_n "checking whether the C compiler works... " >&6; }
2590 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2592 # The possible output files:
2593 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2596 for ac_file in $ac_files
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2600 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2605 if { { ac_try="$ac_link_default"
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612 (eval "$ac_link_default") 2>&5
2614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2615 test $ac_status = 0; }; then :
2616 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2617 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2618 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2619 # so that the user can short-circuit this test for compilers unknown to
2621 for ac_file in $ac_files ''
2623 test -f "$ac_file" || continue
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2628 # We found the default executable, but exeext='' is most
2632 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2634 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636 # We set ac_cv_exeext here because the later test for it is not
2637 # safe: cross compilers may not add the suffix if given an `-o'
2638 # argument, so we may need to know it at that point already.
2639 # Even if this section looks crufty: it has the advantage of
2646 test "$ac_cv_exeext" = no && ac_cv_exeext=
2651 if test -z "$ac_file"; then :
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 { as_fn_set_status 77
2660 as_fn_error "C compiler cannot create executables
2661 See \`config.log' for more details." "$LINENO" 5; }; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2664 $as_echo "yes" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2667 $as_echo_n "checking for C compiler default output file name... " >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2669 $as_echo "$ac_file" >&6; }
2670 ac_exeext=$ac_cv_exeext
2672 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2673 ac_clean_files=$ac_clean_files_save
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2675 $as_echo_n "checking for suffix of executables... " >&6; }
2676 if { { ac_try="$ac_link"
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2682 $as_echo "$ac_try_echo"; } >&5
2683 (eval "$ac_link") 2>&5
2685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686 test $ac_status = 0; }; then :
2687 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2688 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2689 # work properly (i.e., refer to `conftest.exe'), while it won't with
2691 for ac_file in conftest.exe conftest conftest.*; do
2692 test -f "$ac_file" || continue
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2695 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703 as_fn_error "cannot compute suffix of executables: cannot compile and link
2704 See \`config.log' for more details." "$LINENO" 5; }
2706 rm -f conftest conftest$ac_cv_exeext
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2708 $as_echo "$ac_cv_exeext" >&6; }
2710 rm -f conftest.$ac_ext
2711 EXEEXT=$ac_cv_exeext
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2719 FILE *f = fopen ("conftest.out", "w");
2720 return ferror (f) || fclose (f) != 0;
2726 ac_clean_files="$ac_clean_files conftest.out"
2727 # Check that the compiler produces executables we can run. If not, either
2728 # the compiler is broken, or we cross compile.
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2730 $as_echo_n "checking whether we are cross compiling... " >&6; }
2731 if test "$cross_compiling" != yes; then
2732 { { ac_try="$ac_link"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2738 $as_echo "$ac_try_echo"; } >&5
2739 (eval "$ac_link") 2>&5
2741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2742 test $ac_status = 0; }
2743 if { ac_try='./conftest$ac_cv_exeext'
2744 { { case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749 $as_echo "$ac_try_echo"; } >&5
2750 (eval "$ac_try") 2>&5
2752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2753 test $ac_status = 0; }; }; then
2756 if test "$cross_compiling" = maybe; then
2759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 as_fn_error "cannot run C compiled programs.
2762 If you meant to cross compile, use \`--host'.
2763 See \`config.log' for more details." "$LINENO" 5; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2768 $as_echo "$cross_compiling" >&6; }
2770 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2771 ac_clean_files=$ac_clean_files_save
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2773 $as_echo_n "checking for suffix of object files... " >&6; }
2774 if test "${ac_cv_objext+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2788 rm -f conftest.o conftest.obj
2789 if { { ac_try="$ac_compile"
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2795 $as_echo "$ac_try_echo"; } >&5
2796 (eval "$ac_compile") 2>&5
2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799 test $ac_status = 0; }; then :
2800 for ac_file in conftest.o conftest.obj conftest.*; do
2801 test -f "$ac_file" || continue;
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2809 $as_echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 as_fn_error "cannot compute suffix of object files: cannot compile
2815 See \`config.log' for more details." "$LINENO" 5; }
2817 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2820 $as_echo "$ac_cv_objext" >&6; }
2821 OBJEXT=$ac_cv_objext
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2824 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2825 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829 /* end confdefs.h. */
2842 if ac_fn_c_try_compile "$LINENO"; then :
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2852 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2853 if test $ac_compiler_gnu = yes; then
2858 ac_test_CFLAGS=${CFLAGS+set}
2859 ac_save_CFLAGS=$CFLAGS
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2861 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2862 if test "${ac_cv_prog_cc_g+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2865 ac_save_c_werror_flag=$ac_c_werror_flag
2866 ac_c_werror_flag=yes
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2880 if ac_fn_c_try_compile "$LINENO"; then :
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2895 if ac_fn_c_try_compile "$LINENO"; then :
2898 ac_c_werror_flag=$ac_save_c_werror_flag
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2911 if ac_fn_c_try_compile "$LINENO"; then :
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919 ac_c_werror_flag=$ac_save_c_werror_flag
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2922 $as_echo "$ac_cv_prog_cc_g" >&6; }
2923 if test "$ac_test_CFLAGS" = set; then
2924 CFLAGS=$ac_save_CFLAGS
2925 elif test $ac_cv_prog_cc_g = yes; then
2926 if test "$GCC" = yes; then
2932 if test "$GCC" = yes; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2939 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2940 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2941 $as_echo_n "(cached) " >&6
2943 ac_cv_prog_cc_c89=no
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2949 #include <sys/types.h>
2950 #include <sys/stat.h>
2951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2952 struct buf { int x; };
2953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2954 static char *e (p, i)
2960 static char *f (char * (*g) (char **, int), char **p, ...)
2965 s = g (p, va_arg (v,int));
2970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2971 function prototypes and stuff, but not '\xHH' hex character constants.
2972 These don't provoke an error unfortunately, instead are silently treated
2973 as 'x'. The following induces an error, until -std is added to get
2974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2975 array size at least. It's necessary to write '\x00'==0 to get something
2976 that's true only with -std. */
2977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2979 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2980 inside strings and character constants. */
2982 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2984 int test (int i, double x);
2985 struct s1 {int (*f) (int a);};
2986 struct s2 {int (*f) (double a);};
2987 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2993 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2998 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2999 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3001 CC="$ac_save_CC $ac_arg"
3002 if ac_fn_c_try_compile "$LINENO"; then :
3003 ac_cv_prog_cc_c89=$ac_arg
3005 rm -f core conftest.err conftest.$ac_objext
3006 test "x$ac_cv_prog_cc_c89" != "xno" && break
3008 rm -f conftest.$ac_ext
3013 case "x$ac_cv_prog_cc_c89" in
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3016 $as_echo "none needed" >&6; } ;;
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3019 $as_echo "unsupported" >&6; } ;;
3021 CC="$CC $ac_cv_prog_cc_c89"
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3023 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3025 if test "x$ac_cv_prog_cc_c89" != xno; then :
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3042 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3043 # On Suns, sometimes $CPP names a directory.
3044 if test -n "$CPP" && test -d "$CPP"; then
3047 if test -z "$CPP"; then
3048 if test "${ac_cv_prog_CPP+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3051 # Double quotes because CPP needs to be expanded
3052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3055 for ac_c_preproc_warn_flag in '' yes
3057 # Use a header file that comes with gcc, so configuring glibc
3058 # with a fresh cross-compiler works.
3059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 # <limits.h> exists even on freestanding compilers.
3061 # On the NeXT, cc -E runs the code through the compiler's parser,
3062 # not just through cpp. "Syntax error" is here to catch this case.
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3066 # include <limits.h>
3068 # include <assert.h>
3072 if ac_fn_c_try_cpp "$LINENO"; then :
3075 # Broken: fails on valid input.
3078 rm -f conftest.err conftest.$ac_ext
3080 # OK, works on sane cases. Now check whether nonexistent headers
3081 # can be detected and how.
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3084 #include <ac_nonexistent.h>
3086 if ac_fn_c_try_cpp "$LINENO"; then :
3087 # Broken: success on invalid input.
3090 # Passes both tests.
3094 rm -f conftest.err conftest.$ac_ext
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then :
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3112 $as_echo "$CPP" >&6; }
3114 for ac_c_preproc_warn_flag in '' yes
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
3118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3125 # include <limits.h>
3127 # include <assert.h>
3131 if ac_fn_c_try_cpp "$LINENO"; then :
3134 # Broken: fails on valid input.
3137 rm -f conftest.err conftest.$ac_ext
3139 # OK, works on sane cases. Now check whether nonexistent headers
3140 # can be detected and how.
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3143 #include <ac_nonexistent.h>
3145 if ac_fn_c_try_cpp "$LINENO"; then :
3146 # Broken: success on invalid input.
3149 # Passes both tests.
3153 rm -f conftest.err conftest.$ac_ext
3156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157 rm -f conftest.err conftest.$ac_ext
3158 if $ac_preproc_ok; then :
3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." "$LINENO" 5; }
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3175 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3176 if test "${ac_cv_path_GREP+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3179 if test -z "$GREP"; then
3180 ac_path_GREP_found=false
3181 # Loop through the user's path and test for each of PROGNAME-LIST
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3186 test -z "$as_dir" && as_dir=.
3187 for ac_prog in grep ggrep; do
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3190 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3191 # Check for GNU ac_path_GREP and select it if it is found.
3192 # Check for GNU $ac_path_GREP
3193 case `"$ac_path_GREP" --version 2>&1` in
3195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3198 $as_echo_n 0123456789 >"conftest.in"
3201 cat "conftest.in" "conftest.in" >"conftest.tmp"
3202 mv "conftest.tmp" "conftest.in"
3203 cp "conftest.in" "conftest.nl"
3204 $as_echo 'GREP' >> "conftest.nl"
3205 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3207 as_fn_arith $ac_count + 1 && ac_count=$as_val
3208 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3209 # Best one so far, save it but keep looking for a better one
3210 ac_cv_path_GREP="$ac_path_GREP"
3211 ac_path_GREP_max=$ac_count
3213 # 10*(2^10) chars as input seems more than enough
3214 test $ac_count -gt 10 && break
3216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3219 $ac_path_GREP_found && break 3
3224 if test -z "$ac_cv_path_GREP"; then
3225 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3228 ac_cv_path_GREP=$GREP
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3233 $as_echo "$ac_cv_path_GREP" >&6; }
3234 GREP="$ac_cv_path_GREP"
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3238 $as_echo_n "checking for egrep... " >&6; }
3239 if test "${ac_cv_path_EGREP+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3243 then ac_cv_path_EGREP="$GREP -E"
3245 if test -z "$EGREP"; then
3246 ac_path_EGREP_found=false
3247 # Loop through the user's path and test for each of PROGNAME-LIST
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3252 test -z "$as_dir" && as_dir=.
3253 for ac_prog in egrep; do
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3257 # Check for GNU ac_path_EGREP and select it if it is found.
3258 # Check for GNU $ac_path_EGREP
3259 case `"$ac_path_EGREP" --version 2>&1` in
3261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3264 $as_echo_n 0123456789 >"conftest.in"
3267 cat "conftest.in" "conftest.in" >"conftest.tmp"
3268 mv "conftest.tmp" "conftest.in"
3269 cp "conftest.in" "conftest.nl"
3270 $as_echo 'EGREP' >> "conftest.nl"
3271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3273 as_fn_arith $ac_count + 1 && ac_count=$as_val
3274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3275 # Best one so far, save it but keep looking for a better one
3276 ac_cv_path_EGREP="$ac_path_EGREP"
3277 ac_path_EGREP_max=$ac_count
3279 # 10*(2^10) chars as input seems more than enough
3280 test $ac_count -gt 10 && break
3282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3285 $ac_path_EGREP_found && break 3
3290 if test -z "$ac_cv_path_EGREP"; then
3291 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3294 ac_cv_path_EGREP=$EGREP
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3300 $as_echo "$ac_cv_path_EGREP" >&6; }
3301 EGREP="$ac_cv_path_EGREP"
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3305 $as_echo_n "checking for ANSI C header files... " >&6; }
3306 if test "${ac_cv_header_stdc+set}" = set; then :
3307 $as_echo_n "(cached) " >&6
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3324 if ac_fn_c_try_compile "$LINENO"; then :
3325 ac_cv_header_stdc=yes
3327 ac_cv_header_stdc=no
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 if test $ac_cv_header_stdc = yes; then
3332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3339 $EGREP "memchr" >/dev/null 2>&1; then :
3342 ac_cv_header_stdc=no
3348 if test $ac_cv_header_stdc = yes; then
3349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3356 $EGREP "free" >/dev/null 2>&1; then :
3359 ac_cv_header_stdc=no
3365 if test $ac_cv_header_stdc = yes; then
3366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3367 if test "$cross_compiling" = yes; then :
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3374 #if ((' ' & 0x0FF) == 0x020)
3375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3378 # define ISLOWER(c) \
3379 (('a' <= (c) && (c) <= 'i') \
3380 || ('j' <= (c) && (c) <= 'r') \
3381 || ('s' <= (c) && (c) <= 'z'))
3382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3390 for (i = 0; i < 256; i++)
3391 if (XOR (islower (i), ISLOWER (i))
3392 || toupper (i) != TOUPPER (i))
3397 if ac_fn_c_try_run "$LINENO"; then :
3400 ac_cv_header_stdc=no
3402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3403 conftest.$ac_objext conftest.beam conftest.$ac_ext
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3409 $as_echo "$ac_cv_header_stdc" >&6; }
3410 if test $ac_cv_header_stdc = yes; then
3412 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3418 inttypes.h stdint.h unistd.h
3420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3421 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3423 eval as_val=\$$as_ac_Header
3424 if test "x$as_val" = x""yes; then :
3425 cat >>confdefs.h <<_ACEOF
3426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3435 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3436 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3443 if test "$MINIX" = yes; then
3445 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3448 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3451 $as_echo "#define _MINIX 1" >>confdefs.h
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3457 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3458 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3464 # define __EXTENSIONS__ 1
3465 $ac_includes_default
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_safe_to_define___extensions__=yes
3477 ac_cv_safe_to_define___extensions__=no
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3482 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3483 test $ac_cv_safe_to_define___extensions__ = yes &&
3484 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3486 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3488 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3490 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3492 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3496 # AC_USE_SYSTEM_EXTENSIONS
3497 am__api_version="1.9"
3499 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3500 for ac_t in install-sh install.sh shtool; do
3501 if test -f "$ac_dir/$ac_t"; then
3503 ac_install_sh="$ac_aux_dir/$ac_t -c"
3508 if test -z "$ac_aux_dir"; then
3509 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3512 # These three variables are undocumented and unsupported,
3513 # and are intended to be withdrawn in a future Autoconf release.
3514 # They can cause serious problems if a builder's source tree is in a directory
3515 # whose full name contains unusual characters.
3516 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3517 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3518 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3521 # Find a good install program. We prefer a C program (faster),
3522 # so one script is as good as another. But avoid the broken or
3523 # incompatible versions:
3524 # SysV /etc/install, /usr/sbin/install
3525 # SunOS /usr/etc/install
3526 # IRIX /sbin/install
3528 # AmigaOS /C/install, which installs bootblocks on floppy discs
3529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3532 # OS/2's system install, which has a completely different semantic
3533 # ./install, which can be erroneously created by make from ./install.sh.
3534 # Reject install programs that cannot install multiple files.
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3536 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3537 if test -z "$INSTALL"; then
3538 if test "${ac_cv_path_install+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 # Account for people who put trailing slashes in PATH elements.
3547 case $as_dir/ in #((
3548 ./ | .// | /[cC]/* | \
3549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3550 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3553 # OSF1 and SCO ODT 3.0 have their own names for install.
3554 # Don't use installbsd from OSF since it installs stuff as root
3556 for ac_prog in ginstall scoinst install; do
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3559 if test $ac_prog = install &&
3560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3561 # AIX install. It has an incompatible calling convention.
3563 elif test $ac_prog = install &&
3564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3565 # program-specific install script used by HP pwplus--don't use.
3568 rm -rf conftest.one conftest.two conftest.dir
3569 echo one > conftest.one
3570 echo two > conftest.two
3572 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3573 test -s conftest.one && test -s conftest.two &&
3574 test -s conftest.dir/conftest.one &&
3575 test -s conftest.dir/conftest.two
3577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3590 rm -rf conftest.one conftest.two conftest.dir
3593 if test "${ac_cv_path_install+set}" = set; then
3594 INSTALL=$ac_cv_path_install
3596 # As a last resort, use the slow shell script. Don't cache a
3597 # value for INSTALL within a source directory, because that will
3598 # break other packages using the cache if that directory is
3599 # removed, or if the value is a relative name.
3600 INSTALL=$ac_install_sh
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3604 $as_echo "$INSTALL" >&6; }
3606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3607 # It thinks the first close brace ends the variable substitution.
3608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3615 $as_echo_n "checking whether build environment is sane... " >&6; }
3618 echo timestamp > conftest.file
3619 # Do `set' in a subshell so we don't clobber the current shell's
3620 # arguments. Must try -L first in case configure is actually a
3621 # symlink; some systems play weird games with the mod time of symlinks
3622 # (eg FreeBSD returns the mod time of the symlink's containing
3625 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3626 if test "$*" = "X"; then
3628 set X `ls -t $srcdir/configure conftest.file`
3631 if test "$*" != "X $srcdir/configure conftest.file" \
3632 && test "$*" != "X conftest.file $srcdir/configure"; then
3634 # If neither matched, then we have a broken ls. This can happen
3635 # if, for instance, CONFIG_SHELL is bash and it inherits a
3636 # broken ls alias from the environment. This has actually
3637 # happened. Such a system could not be considered "sane".
3638 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3639 alias in your environment" "$LINENO" 5
3642 test "$2" = conftest.file
3648 as_fn_error "newly created file is older than distributed files!
3649 Check your system clock" "$LINENO" 5
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3652 $as_echo "yes" >&6; }
3653 test "$program_prefix" != NONE &&
3654 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3655 # Use a double $ so make ignores it.
3656 test "$program_suffix" != NONE &&
3657 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3658 # Double any \ or $.
3659 # By default was `s,x,x', remove it if useless.
3660 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3661 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3663 # expand $ac_aux_dir to an absolute path
3664 am_aux_dir=`cd $ac_aux_dir && pwd`
3666 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3667 # Use eval to expand $SHELL
3668 if eval "$MISSING --run true"; then
3669 am_missing_run="$MISSING --run "
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3673 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3676 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3677 # We used to keeping the `.' as first argument, in order to
3678 # allow $(mkdir_p) to be used without argument. As in
3679 # $(mkdir_p) $(somedir)
3680 # where $(somedir) is conditionally defined. However this is wrong
3682 # 1. if the package is installed by a user who cannot write `.'
3683 # make install will fail,
3684 # 2. the above comment should most certainly read
3685 # $(mkdir_p) $(DESTDIR)$(somedir)
3686 # so it does not work when $(somedir) is undefined and
3687 # $(DESTDIR) is not.
3688 # To support the latter case, we have to write
3689 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3690 # so the `.' trick is pointless.
3691 mkdir_p='mkdir -p --'
3693 # On NextStep and OpenStep, the `mkdir' command does not
3694 # recognize any option. It will interpret all options as
3695 # directories to create, and then abort because `.' already
3697 for d in ./-p ./--version;
3699 test -d $d && rmdir $d
3701 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3702 if test -f "$ac_aux_dir/mkinstalldirs"; then
3703 mkdir_p='$(mkinstalldirs)'
3705 mkdir_p='$(install_sh) -d'
3709 for ac_prog in gawk mawk nawk awk
3711 # Extract the first word of "$ac_prog", so it can be a program name with args.
3712 set dummy $ac_prog; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if test "${ac_cv_prog_AWK+set}" = set; then :
3716 $as_echo_n "(cached) " >&6
3718 if test -n "$AWK"; then
3719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_prog_AWK="$ac_prog"
3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 if test -n "$AWK"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3741 $as_echo "$AWK" >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3748 test -n "$AWK" && break
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3752 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3754 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3755 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3756 $as_echo_n "(cached) " >&6
3758 cat >conftest.make <<\_ACEOF
3761 @echo '@@@%%%=$(MAKE)=@@@%%%'
3763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3764 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3766 eval ac_cv_prog_make_${ac_make}_set=yes;;
3768 eval ac_cv_prog_make_${ac_make}_set=no;;
3772 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3774 $as_echo "yes" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 SET_MAKE="MAKE=${MAKE-make}"
3782 rm -rf .tst 2>/dev/null
3783 mkdir .tst 2>/dev/null
3784 if test -d .tst; then
3789 rmdir .tst 2>/dev/null
3791 DEPDIR="${am__leading_dot}deps"
3793 ac_config_commands="$ac_config_commands depfiles"
3796 am_make=${MAKE-make}
3797 cat > confinc << 'END'
3802 # If we don't find an include directive, just comment out the code.
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3804 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3808 # First try GNU make style include.
3809 echo "include confinc" > confmf
3810 # We grep out `Entering directory' and `Leaving directory'
3811 # messages which can occur if `w' ends up in MAKEFLAGS.
3812 # In particular we don't look at `^make:' because GNU make might
3813 # be invoked under some other name (usually "gmake"), in which
3814 # case it prints its new name instead of `make'.
3815 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3820 # Now try BSD make style include.
3821 if test "$am__include" = "#"; then
3822 echo '.include "confinc"' > confmf
3823 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3824 am__include=.include
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3832 $as_echo "$_am_result" >&6; }
3833 rm -f confinc confmf
3835 # Check whether --enable-dependency-tracking was given.
3836 if test "${enable_dependency_tracking+set}" = set; then :
3837 enableval=$enable_dependency_tracking;
3840 if test "x$enable_dependency_tracking" != xno; then
3841 am_depcomp="$ac_aux_dir/depcomp"
3846 if test "x$enable_dependency_tracking" != xno; then
3856 # test to see if srcdir already configured
3857 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3858 test -f $srcdir/config.status; then
3859 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3862 # test whether we have cygpath
3863 if test -z "$CYGPATH_W"; then
3864 if (cygpath --version) >/dev/null 2>/dev/null; then
3865 CYGPATH_W='cygpath -w'
3872 # Define the identity of the package.
3877 cat >>confdefs.h <<_ACEOF
3878 #define PACKAGE "$PACKAGE"
3882 cat >>confdefs.h <<_ACEOF
3883 #define VERSION "$VERSION"
3886 # Some tools Automake needs.
3888 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3891 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3894 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3897 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3900 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3902 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3904 # Installed binaries are usually stripped using `strip' when the user
3905 # run `make install-strip'. However `strip' might not be the right
3906 # tool to use in cross-compilation environments, therefore Automake
3907 # will honor the `STRIP' environment variable to overrule this program.
3908 if test "$cross_compiling" != no; then
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}strip; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if test "${ac_cv_prog_STRIP+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3917 if test -n "$STRIP"; then
3918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 STRIP=$ac_cv_prog_STRIP
3938 if test -n "$STRIP"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3940 $as_echo "$STRIP" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3948 if test -z "$ac_cv_prog_STRIP"; then
3950 # Extract the first word of "strip", so it can be a program name with args.
3951 set dummy strip; ac_word=$2
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 $as_echo_n "checking for $ac_word... " >&6; }
3954 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3957 if test -n "$ac_ct_STRIP"; then
3958 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967 ac_cv_prog_ac_ct_STRIP="strip"
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3978 if test -n "$ac_ct_STRIP"; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3980 $as_echo "$ac_ct_STRIP" >&6; }
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 $as_echo "no" >&6; }
3986 if test "x$ac_ct_STRIP" = x; then
3989 case $cross_compiling:$ac_tool_warned in
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3993 ac_tool_warned=yes ;;
3998 STRIP="$ac_cv_prog_STRIP"
4002 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4004 # We need awk for the "check" target. The system "awk" is bad on
4006 # Always define AMTAR for backward compatibility.
4008 AMTAR=${AMTAR-"${am_missing_run}tar"}
4010 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4015 depcc="$CC" am_compiler_list=
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4018 $as_echo_n "checking dependency style of $depcc... " >&6; }
4019 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4022 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4023 # We make a subdir and do the tests there. Otherwise we can end up
4024 # making bogus files that we don't know about and never remove. For
4025 # instance it was reported that on HP-UX the gcc test will end up
4026 # making a dummy file named `D' -- because `-MD' means `put the output
4029 # Copy depcomp to subdir because otherwise we won't find it if we're
4030 # using a relative directory.
4031 cp "$am_depcomp" conftest.dir
4033 # We will build objects and dependencies in a subdirectory because
4034 # it helps to detect inapplicable dependency modes. For instance
4035 # both Tru64's cc and ICC support -MD to output dependencies as a
4036 # side effect of compilation, but ICC will put the dependencies in
4037 # the current directory while Tru64 will put them in the object
4041 am_cv_CC_dependencies_compiler_type=none
4042 if test "$am_compiler_list" = ""; then
4043 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4045 for depmode in $am_compiler_list; do
4046 # Setup a source with many dependencies, because some compilers
4047 # like to wrap large dependency lists on column 80 (with \), and
4048 # we should not choose a depcomp mode which is confused by this.
4050 # We need to recreate these files for each test, as the compiler may
4051 # overwrite some of them when testing with obscure command lines.
4052 # This happens at least with the AIX C compiler.
4054 for i in 1 2 3 4 5 6; do
4055 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4056 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4057 # Solaris 8's {/usr,}/bin/sh.
4058 touch sub/conftst$i.h
4060 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4064 # after this tag, mechanisms are not by side-effect, so they'll
4065 # only be used when explicitly requested
4066 if test "x$enable_dependency_tracking" = xyes; then
4074 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4075 # mode. It turns out that the SunPro C++ compiler does not properly
4076 # handle `-M -o', and we need to detect this.
4077 if depmode=$depmode \
4078 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4079 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4080 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4081 >/dev/null 2>conftest.err &&
4082 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4083 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4084 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4085 # icc doesn't choke on unknown options, it will just issue warnings
4086 # or remarks (even with -Werror). So we grep stderr for any message
4087 # that says an option was ignored or not supported.
4088 # When given -MP, icc 7.0 and 7.1 complain thusly:
4089 # icc: Command line warning: ignoring option '-M'; no argument required
4090 # The diagnosis changed in icc 8.0:
4091 # icc: Command line remark: option '-MP' not supported
4092 if (grep 'ignoring option' conftest.err ||
4093 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4094 am_cv_CC_dependencies_compiler_type=$depmode
4103 am_cv_CC_dependencies_compiler_type=none
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4108 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4109 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4114 test "x$enable_dependency_tracking" != xno \
4115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4117 am__fastdepCC_FALSE='#'
4119 am__fastdepCC_TRUE='#'
4120 am__fastdepCC_FALSE=
4128 # Checks for programs.
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4135 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4136 # On Suns, sometimes $CPP names a directory.
4137 if test -n "$CPP" && test -d "$CPP"; then
4140 if test -z "$CPP"; then
4141 if test "${ac_cv_prog_CPP+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4144 # Double quotes because CPP needs to be expanded
4145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4148 for ac_c_preproc_warn_flag in '' yes
4150 # Use a header file that comes with gcc, so configuring glibc
4151 # with a fresh cross-compiler works.
4152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153 # <limits.h> exists even on freestanding compilers.
4154 # On the NeXT, cc -E runs the code through the compiler's parser,
4155 # not just through cpp. "Syntax error" is here to catch this case.
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4159 # include <limits.h>
4161 # include <assert.h>
4165 if ac_fn_c_try_cpp "$LINENO"; then :
4168 # Broken: fails on valid input.
4171 rm -f conftest.err conftest.$ac_ext
4173 # OK, works on sane cases. Now check whether nonexistent headers
4174 # can be detected and how.
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #include <ac_nonexistent.h>
4179 if ac_fn_c_try_cpp "$LINENO"; then :
4180 # Broken: success on invalid input.
4183 # Passes both tests.
4187 rm -f conftest.err conftest.$ac_ext
4190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191 rm -f conftest.err conftest.$ac_ext
4192 if $ac_preproc_ok; then :
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4205 $as_echo "$CPP" >&6; }
4207 for ac_c_preproc_warn_flag in '' yes
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4218 # include <limits.h>
4220 # include <assert.h>
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: fails on valid input.
4230 rm -f conftest.err conftest.$ac_ext
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239 # Broken: success on invalid input.
4242 # Passes both tests.
4246 rm -f conftest.err conftest.$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then :
4254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." "$LINENO" 5; }
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267 ac_cpp='$CXXCPP $CPPFLAGS'
4268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4271 if test -z "$CXX"; then
4272 if test -n "$CCC"; then
4275 if test -n "$ac_tool_prefix"; then
4276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if test "${ac_cv_prog_CXX+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
4285 if test -n "$CXX"; then
4286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 if test -n "$CXX"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4308 $as_echo "$CXX" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4315 test -n "$CXX" && break
4318 if test -z "$CXX"; then
4320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323 set dummy $ac_prog; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4329 if test -n "$ac_ct_CXX"; then
4330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_ac_ct_CXX="$ac_prog"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4350 if test -n "$ac_ct_CXX"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4352 $as_echo "$ac_ct_CXX" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4359 test -n "$ac_ct_CXX" && break
4362 if test "x$ac_ct_CXX" = x; then
4365 case $cross_compiling:$ac_tool_warned in
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4369 ac_tool_warned=yes ;;
4377 # Provide some information about the compiler.
4378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4381 for ac_option in --version -v -V -qversion; do
4382 { { ac_try="$ac_compiler $ac_option >&5"
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4391 if test -s conftest.err; then
4393 ... rest of stderr output deleted ...
4394 10q' conftest.err >conftest.er1
4395 cat conftest.er1 >&5
4397 rm -f conftest.er1 conftest.err
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4403 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4404 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4421 if ac_fn_cxx_try_compile "$LINENO"; then :
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4431 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4432 if test $ac_compiler_gnu = yes; then
4437 ac_test_CXXFLAGS=${CXXFLAGS+set}
4438 ac_save_CXXFLAGS=$CXXFLAGS
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4440 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4441 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4445 ac_cxx_werror_flag=yes
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4459 if ac_fn_cxx_try_compile "$LINENO"; then :
4460 ac_cv_prog_cxx_g=yes
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4474 if ac_fn_cxx_try_compile "$LINENO"; then :
4477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4490 if ac_fn_cxx_try_compile "$LINENO"; then :
4491 ac_cv_prog_cxx_g=yes
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4501 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4502 if test "$ac_test_CXXFLAGS" = set; then
4503 CXXFLAGS=$ac_save_CXXFLAGS
4504 elif test $ac_cv_prog_cxx_g = yes; then
4505 if test "$GXX" = yes; then
4511 if test "$GXX" = yes; then
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 depcc="$CXX" am_compiler_list=
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4526 $as_echo_n "checking dependency style of $depcc... " >&6; }
4527 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4531 # We make a subdir and do the tests there. Otherwise we can end up
4532 # making bogus files that we don't know about and never remove. For
4533 # instance it was reported that on HP-UX the gcc test will end up
4534 # making a dummy file named `D' -- because `-MD' means `put the output
4537 # Copy depcomp to subdir because otherwise we won't find it if we're
4538 # using a relative directory.
4539 cp "$am_depcomp" conftest.dir
4541 # We will build objects and dependencies in a subdirectory because
4542 # it helps to detect inapplicable dependency modes. For instance
4543 # both Tru64's cc and ICC support -MD to output dependencies as a
4544 # side effect of compilation, but ICC will put the dependencies in
4545 # the current directory while Tru64 will put them in the object
4549 am_cv_CXX_dependencies_compiler_type=none
4550 if test "$am_compiler_list" = ""; then
4551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4553 for depmode in $am_compiler_list; do
4554 # Setup a source with many dependencies, because some compilers
4555 # like to wrap large dependency lists on column 80 (with \), and
4556 # we should not choose a depcomp mode which is confused by this.
4558 # We need to recreate these files for each test, as the compiler may
4559 # overwrite some of them when testing with obscure command lines.
4560 # This happens at least with the AIX C compiler.
4562 for i in 1 2 3 4 5 6; do
4563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4565 # Solaris 8's {/usr,}/bin/sh.
4566 touch sub/conftst$i.h
4568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4572 # after this tag, mechanisms are not by side-effect, so they'll
4573 # only be used when explicitly requested
4574 if test "x$enable_dependency_tracking" = xyes; then
4582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4583 # mode. It turns out that the SunPro C++ compiler does not properly
4584 # handle `-M -o', and we need to detect this.
4585 if depmode=$depmode \
4586 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4588 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4589 >/dev/null 2>conftest.err &&
4590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4591 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4593 # icc doesn't choke on unknown options, it will just issue warnings
4594 # or remarks (even with -Werror). So we grep stderr for any message
4595 # that says an option was ignored or not supported.
4596 # When given -MP, icc 7.0 and 7.1 complain thusly:
4597 # icc: Command line warning: ignoring option '-M'; no argument required
4598 # The diagnosis changed in icc 8.0:
4599 # icc: Command line remark: option '-MP' not supported
4600 if (grep 'ignoring option' conftest.err ||
4601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4602 am_cv_CXX_dependencies_compiler_type=$depmode
4611 am_cv_CXX_dependencies_compiler_type=none
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4616 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4617 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4622 test "x$enable_dependency_tracking" != xno \
4623 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4624 am__fastdepCXX_TRUE=
4625 am__fastdepCXX_FALSE='#'
4627 am__fastdepCXX_TRUE='#'
4628 am__fastdepCXX_FALSE=
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_CC+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4645 if test -n "$CC"; then
4646 ac_cv_prog_CC="$CC" # Let the user override the test.
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 if test -n "$CC"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4668 $as_echo "$CC" >&6; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4676 if test -z "$ac_cv_prog_CC"; then
4678 # Extract the first word of "gcc", so it can be a program name with args.
4679 set dummy gcc; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4685 if test -n "$ac_ct_CC"; then
4686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_ac_ct_CC="gcc"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4706 if test -n "$ac_ct_CC"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4708 $as_echo "$ac_ct_CC" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4714 if test "x$ac_ct_CC" = x; then
4717 case $cross_compiling:$ac_tool_warned in
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4721 ac_tool_warned=yes ;;
4729 if test -z "$CC"; then
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}cc; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_CC+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$CC"; then
4739 ac_cv_prog_CC="$CC" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_CC="${ac_tool_prefix}cc"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 if test -n "$CC"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4761 $as_echo "$CC" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4770 if test -z "$CC"; then
4771 # Extract the first word of "cc", so it can be a program name with args.
4772 set dummy cc; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_CC+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -n "$CC"; then
4779 ac_cv_prog_CC="$CC" # Let the user override the test.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4790 ac_prog_rejected=yes
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 if test $ac_prog_rejected = yes; then
4802 # We found a bogon in the path, so make sure we never use it.
4803 set dummy $ac_cv_prog_CC
4805 if test $# != 0; then
4806 # We chose a different compiler from the bogus one.
4807 # However, it has the same basename, so the bogon will be chosen
4808 # first if we set CC to just the basename; use the full file name.
4810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4816 if test -n "$CC"; then
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4818 $as_echo "$CC" >&6; }
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 $as_echo "no" >&6; }
4826 if test -z "$CC"; then
4827 if test -n "$ac_tool_prefix"; then
4828 for ac_prog in cl.exe
4830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_CC+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4837 if test -n "$CC"; then
4838 ac_cv_prog_CC="$CC" # Let the user override the test.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 if test -n "$CC"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4860 $as_echo "$CC" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4867 test -n "$CC" && break
4870 if test -z "$CC"; then
4872 for ac_prog in cl.exe
4874 # Extract the first word of "$ac_prog", so it can be a program name with args.
4875 set dummy $ac_prog; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4881 if test -n "$ac_ct_CC"; then
4882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_ac_ct_CC="$ac_prog"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4902 if test -n "$ac_ct_CC"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4904 $as_echo "$ac_ct_CC" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4911 test -n "$ac_ct_CC" && break
4914 if test "x$ac_ct_CC" = x; then
4917 case $cross_compiling:$ac_tool_warned in
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4921 ac_tool_warned=yes ;;
4930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4932 as_fn_error "no acceptable C compiler found in \$PATH
4933 See \`config.log' for more details." "$LINENO" 5; }
4935 # Provide some information about the compiler.
4936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4939 for ac_option in --version -v -V -qversion; do
4940 { { ac_try="$ac_compiler $ac_option >&5"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4946 $as_echo "$ac_try_echo"; } >&5
4947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4949 if test -s conftest.err; then
4951 ... rest of stderr output deleted ...
4952 10q' conftest.err >conftest.er1
4953 cat conftest.er1 >&5
4955 rm -f conftest.er1 conftest.err
4956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4957 test $ac_status = 0; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4962 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4979 if ac_fn_c_try_compile "$LINENO"; then :
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4989 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4990 if test $ac_compiler_gnu = yes; then
4995 ac_test_CFLAGS=${CFLAGS+set}
4996 ac_save_CFLAGS=$CFLAGS
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4998 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4999 if test "${ac_cv_prog_cc_g+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5002 ac_save_c_werror_flag=$ac_c_werror_flag
5003 ac_c_werror_flag=yes
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5017 if ac_fn_c_try_compile "$LINENO"; then :
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5032 if ac_fn_c_try_compile "$LINENO"; then :
5035 ac_c_werror_flag=$ac_save_c_werror_flag
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5048 if ac_fn_c_try_compile "$LINENO"; then :
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 ac_c_werror_flag=$ac_save_c_werror_flag
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5059 $as_echo "$ac_cv_prog_cc_g" >&6; }
5060 if test "$ac_test_CFLAGS" = set; then
5061 CFLAGS=$ac_save_CFLAGS
5062 elif test $ac_cv_prog_cc_g = yes; then
5063 if test "$GCC" = yes; then
5069 if test "$GCC" = yes; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5077 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5078 $as_echo_n "(cached) " >&6
5080 ac_cv_prog_cc_c89=no
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5086 #include <sys/types.h>
5087 #include <sys/stat.h>
5088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5089 struct buf { int x; };
5090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5091 static char *e (p, i)
5097 static char *f (char * (*g) (char **, int), char **p, ...)
5102 s = g (p, va_arg (v,int));
5107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5108 function prototypes and stuff, but not '\xHH' hex character constants.
5109 These don't provoke an error unfortunately, instead are silently treated
5110 as 'x'. The following induces an error, until -std is added to get
5111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5112 array size at least. It's necessary to write '\x00'==0 to get something
5113 that's true only with -std. */
5114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5117 inside strings and character constants. */
5119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121 int test (int i, double x);
5122 struct s1 {int (*f) (int a);};
5123 struct s2 {int (*f) (double a);};
5124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138 CC="$ac_save_CC $ac_arg"
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 ac_cv_prog_cc_c89=$ac_arg
5142 rm -f core conftest.err conftest.$ac_objext
5143 test "x$ac_cv_prog_cc_c89" != "xno" && break
5145 rm -f conftest.$ac_ext
5150 case "x$ac_cv_prog_cc_c89" in
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5153 $as_echo "none needed" >&6; } ;;
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5156 $as_echo "unsupported" >&6; } ;;
5158 CC="$CC $ac_cv_prog_cc_c89"
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5162 if test "x$ac_cv_prog_cc_c89" != xno; then :
5167 ac_cpp='$CPP $CPPFLAGS'
5168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5174 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5176 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5177 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5178 $as_echo_n "(cached) " >&6
5180 cat >conftest.make <<\_ACEOF
5183 @echo '@@@%%%=$(MAKE)=@@@%%%'
5185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5186 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5188 eval ac_cv_prog_make_${ac_make}_set=yes;;
5190 eval ac_cv_prog_make_${ac_make}_set=no;;
5194 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 $as_echo "yes" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 SET_MAKE="MAKE=${MAKE-make}"
5206 # site specific configs
5208 # check for asterisk
5210 # Check whether --with-asterisk was given.
5211 if test "${with_asterisk+set}" = set; then :
5212 withval=$with_asterisk;
5214 with_asterisk="check"
5218 if test "x$with_asterisk" != xno; then :
5219 for ac_header in asterisk/compiler.h
5221 ac_fn_c_check_header_mongrel "$LINENO" "asterisk/compiler.h" "ac_cv_header_asterisk_compiler_h" "$ac_includes_default"
5222 if test "x$ac_cv_header_asterisk_compiler_h" = x""yes; then :
5223 cat >>confdefs.h <<_ACEOF
5224 #define HAVE_ASTERISK_COMPILER_H 1
5228 if test "x$with_asterisk" != xcheck ; then
5229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5231 as_fn_error "--with-asterisk was given, but test for header-file asterisk/compiler.h failed
5232 See \`config.log' for more details." "$LINENO" 5; }
5244 if test "x$with_asterisk" == "xyes" ; then
5245 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
5246 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
5248 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
5249 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
5255 # Check whether --with-ssl was given.
5256 if test "${with_ssl+set}" = set; then :
5263 if test "x$with_ssl" != xno; then :
5264 for ac_header in openssl/rsa.h
5266 ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
5267 if test "x$ac_cv_header_openssl_rsa_h" = x""yes; then :
5268 cat >>confdefs.h <<_ACEOF
5269 #define HAVE_OPENSSL_RSA_H 1
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
5277 $as_echo_n "checking for main in -lcrypto... " >&6; }
5278 if test "${ac_cv_lib_crypto_main+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5281 ac_check_lib_save_LIBS=$LIBS
5282 LIBS="-lcrypto -lcrypto
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5296 if ac_fn_c_try_link "$LINENO"; then :
5297 ac_cv_lib_crypto_main=yes
5299 ac_cv_lib_crypto_main=no
5301 rm -f core conftest.err conftest.$ac_objext \
5302 conftest$ac_exeext conftest.$ac_ext
5303 LIBS=$ac_check_lib_save_LIBS
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
5306 $as_echo "$ac_cv_lib_crypto_main" >&6; }
5307 if test "x$ac_cv_lib_crypto_main" = x""yes; then :
5308 LIBCRYPTO="-lcrypto"
5311 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5315 if test "x$with_ssl" != xcheck ; then
5316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318 as_fn_error "--with-ssl was given, but test for libcrypto failed
5319 See \`config.log' for more details." "$LINENO" 5; }
5330 # Check whether --with-gsm-bs was given.
5331 if test "${with_gsm_bs+set}" = set; then :
5332 withval=$with_gsm_bs;
5338 if test "x$with_gsm_bs" != xno; then :
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openbsc/include/openbsc/gsm_data.h" >&5
5340 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
5341 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5344 test "$cross_compiling" = yes &&
5345 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
5346 if test -r "openbsc/include/openbsc/gsm_data.h"; then
5347 ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
5349 ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
5353 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
5354 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then :
5357 if test "x$with_gsm_bs" != xcheck ; then
5358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5360 as_fn_error "--with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
5361 See \`config.log' for more details." "$LINENO" 5; }
5371 if test "x$with_gsm_bs" == "xyes" ; then
5373 ENABLE_GSM_BS_FALSE='#'
5375 ENABLE_GSM_BS_TRUE='#'
5376 ENABLE_GSM_BS_FALSE=
5382 # Check whether --with-gsm-ms was given.
5383 if test "${with_gsm_ms+set}" = set; then :
5384 withval=$with_gsm_ms;
5390 if test "x$with_gsm_ms" != xno; then :
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for layer23/include/osmocom/osmocom_data.h" >&5
5392 $as_echo_n "checking for layer23/include/osmocom/osmocom_data.h... " >&6; }
5393 if test "${ac_cv_file_layer23_include_osmocom_osmocom_data_h+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5396 test "$cross_compiling" = yes &&
5397 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
5398 if test -r "layer23/include/osmocom/osmocom_data.h"; then
5399 ac_cv_file_layer23_include_osmocom_osmocom_data_h=yes
5401 ac_cv_file_layer23_include_osmocom_osmocom_data_h=no
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&5
5405 $as_echo "$ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&6; }
5406 if test "x$ac_cv_file_layer23_include_osmocom_osmocom_data_h" = x""yes; then :
5409 if test "x$with_gsm_ms" != xcheck ; then
5410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5412 as_fn_error "--with-gsm-ms was given, but osmocom-bb/include/osmocom/osmocom_data.h was not found! Pleas link Osmocom-BB and libosmocore source directory to LCR source directory: ln -s path_to_osmocom-bb/src/host/layer23/ layer23 ; ln -s path_to_libosmocore libosmocore
5413 See \`config.log' for more details." "$LINENO" 5; }
5423 if test "x$with_gsm_ms" == "xyes" ; then
5425 ENABLE_GSM_MS_FALSE='#'
5427 ENABLE_GSM_MS_TRUE='#'
5428 ENABLE_GSM_MS_FALSE=
5434 if test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes"; then
5436 ENABLE_GSM_FALSE='#'
5445 # Check whether --with-ss5 was given.
5446 if test "${with_ss5+set}" = set; then :
5455 if test "x$with_ss5" == "xyes" ; then
5457 ENABLE_SS5_FALSE='#'
5464 # Checks for libraries.
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5466 $as_echo_n "checking for main in -lm... " >&6; }
5467 if test "${ac_cv_lib_m_main+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5470 ac_check_lib_save_LIBS=$LIBS
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5484 if ac_fn_c_try_link "$LINENO"; then :
5485 ac_cv_lib_m_main=yes
5489 rm -f core conftest.err conftest.$ac_objext \
5490 conftest$ac_exeext conftest.$ac_ext
5491 LIBS=$ac_check_lib_save_LIBS
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5494 $as_echo "$ac_cv_lib_m_main" >&6; }
5495 if test "x$ac_cv_lib_m_main" = x""yes; then :
5496 cat >>confdefs.h <<_ACEOF
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5505 $as_echo_n "checking for main in -lncurses... " >&6; }
5506 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5509 ac_check_lib_save_LIBS=$LIBS
5510 LIBS="-lncurses $LIBS"
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5523 if ac_fn_c_try_link "$LINENO"; then :
5524 ac_cv_lib_ncurses_main=yes
5526 ac_cv_lib_ncurses_main=no
5528 rm -f core conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext conftest.$ac_ext
5530 LIBS=$ac_check_lib_save_LIBS
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5533 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5534 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5535 cat >>confdefs.h <<_ACEOF
5536 #define HAVE_LIBNCURSES 1
5539 LIBS="-lncurses $LIBS"
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5544 $as_echo_n "checking for main in -lpthread... " >&6; }
5545 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
5548 ac_check_lib_save_LIBS=$LIBS
5549 LIBS="-lpthread $LIBS"
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5562 if ac_fn_c_try_link "$LINENO"; then :
5563 ac_cv_lib_pthread_main=yes
5565 ac_cv_lib_pthread_main=no
5567 rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569 LIBS=$ac_check_lib_save_LIBS
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5572 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5573 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5574 cat >>confdefs.h <<_ACEOF
5575 #define HAVE_LIBPTHREAD 1
5578 LIBS="-lpthread $LIBS"
5583 # Checks for header files.
5585 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5586 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5588 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5590 $as_echo_n "(cached) " >&6
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607 eval "$as_ac_Header=yes"
5609 eval "$as_ac_Header=no"
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 eval ac_res=\$$as_ac_Header
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5615 $as_echo "$ac_res" >&6; }
5616 eval as_val=\$$as_ac_Header
5617 if test "x$as_val" = x""yes; then :
5618 cat >>confdefs.h <<_ACEOF
5619 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5622 ac_header_dirent=$ac_hdr; break
5626 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5627 if test $ac_header_dirent = dirent.h; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5629 $as_echo_n "checking for library containing opendir... " >&6; }
5630 if test "${ac_cv_search_opendir+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 ac_func_search_save_LIBS=$LIBS
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5637 /* Override any GCC internal prototype to avoid an error.
5638 Use char because int might match the return type of a GCC
5639 builtin and then its argument prototype would still apply. */
5652 for ac_lib in '' dir; do
5653 if test -z "$ac_lib"; then
5654 ac_res="none required"
5657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5659 if ac_fn_c_try_link "$LINENO"; then :
5660 ac_cv_search_opendir=$ac_res
5662 rm -f core conftest.err conftest.$ac_objext \
5664 if test "${ac_cv_search_opendir+set}" = set; then :
5668 if test "${ac_cv_search_opendir+set}" = set; then :
5671 ac_cv_search_opendir=no
5674 LIBS=$ac_func_search_save_LIBS
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5677 $as_echo "$ac_cv_search_opendir" >&6; }
5678 ac_res=$ac_cv_search_opendir
5679 if test "$ac_res" != no; then :
5680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5686 $as_echo_n "checking for library containing opendir... " >&6; }
5687 if test "${ac_cv_search_opendir+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5690 ac_func_search_save_LIBS=$LIBS
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5694 /* Override any GCC internal prototype to avoid an error.
5695 Use char because int might match the return type of a GCC
5696 builtin and then its argument prototype would still apply. */
5709 for ac_lib in '' x; do
5710 if test -z "$ac_lib"; then
5711 ac_res="none required"
5714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5716 if ac_fn_c_try_link "$LINENO"; then :
5717 ac_cv_search_opendir=$ac_res
5719 rm -f core conftest.err conftest.$ac_objext \
5721 if test "${ac_cv_search_opendir+set}" = set; then :
5725 if test "${ac_cv_search_opendir+set}" = set; then :
5728 ac_cv_search_opendir=no
5731 LIBS=$ac_func_search_save_LIBS
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5734 $as_echo "$ac_cv_search_opendir" >&6; }
5735 ac_res=$ac_cv_search_opendir
5736 if test "$ac_res" != no; then :
5737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5744 $as_echo_n "checking for ANSI C header files... " >&6; }
5745 if test "${ac_cv_header_stdc+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 ac_cv_header_stdc=yes
5766 ac_cv_header_stdc=no
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 if test $ac_cv_header_stdc = yes; then
5771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778 $EGREP "memchr" >/dev/null 2>&1; then :
5781 ac_cv_header_stdc=no
5787 if test $ac_cv_header_stdc = yes; then
5788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5795 $EGREP "free" >/dev/null 2>&1; then :
5798 ac_cv_header_stdc=no
5804 if test $ac_cv_header_stdc = yes; then
5805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5806 if test "$cross_compiling" = yes; then :
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5813 #if ((' ' & 0x0FF) == 0x020)
5814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5817 # define ISLOWER(c) \
5818 (('a' <= (c) && (c) <= 'i') \
5819 || ('j' <= (c) && (c) <= 'r') \
5820 || ('s' <= (c) && (c) <= 'z'))
5821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5829 for (i = 0; i < 256; i++)
5830 if (XOR (islower (i), ISLOWER (i))
5831 || toupper (i) != TOUPPER (i))
5836 if ac_fn_c_try_run "$LINENO"; then :
5839 ac_cv_header_stdc=no
5841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5842 conftest.$ac_objext conftest.beam conftest.$ac_ext
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5848 $as_echo "$ac_cv_header_stdc" >&6; }
5849 if test $ac_cv_header_stdc = yes; then
5851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5856 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5857 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 #include <sys/types.h>
5863 #include <sys/wait.h>
5865 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5868 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5876 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 ac_cv_header_sys_wait_h=yes
5884 ac_cv_header_sys_wait_h=no
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5889 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5890 if test $ac_cv_header_sys_wait_h = yes; then
5892 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5896 for ac_header in fcntl.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h ctype.h assert.h mISDNuser/mbuffer.h assert.h
5898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5900 eval as_val=\$$as_ac_Header
5901 if test "x$as_val" = x""yes; then :
5902 cat >>confdefs.h <<_ACEOF
5903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5911 # Checks for typedefs, structures, and compiler characteristics.
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5913 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5914 if test "${ac_cv_header_stdbool_h+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5920 #include <stdbool.h>
5922 "error: bool is not defined"
5925 "error: false is not defined"
5928 "error: false is not 0"
5931 "error: true is not defined"
5934 "error: true is not 1"
5936 #ifndef __bool_true_false_are_defined
5937 "error: __bool_true_false_are_defined is not defined"
5940 struct s { _Bool s: 1; _Bool t; } s;
5942 char a[true == 1 ? 1 : -1];
5943 char b[false == 0 ? 1 : -1];
5944 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5945 char d[(bool) 0.5 == true ? 1 : -1];
5947 char f[(_Bool) 0.0 == false ? 1 : -1];
5949 char h[sizeof (_Bool)];
5951 enum { j = false, k = true, l = false * true, m = true * 256 };
5952 /* The following fails for
5953 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5955 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5956 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5957 # if defined __xlc__ || defined __GNUC__
5958 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5959 reported by James Lemley on 2005-10-05; see
5960 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5961 This test is not quite right, since xlc is allowed to
5962 reject this program, as the initializer for xlcbug is
5963 not one of the forms that C requires support for.
5964 However, doing the test right would require a runtime
5965 test, and that would make cross-compilation harder.
5966 Let us hope that IBM fixes the xlc bug, and also adds
5967 support for this kind of constant expression. In the
5968 meantime, this test will reject xlc, which is OK, since
5969 our stdbool.h substitute should suffice. We also test
5970 this with GCC, where it should work, to detect more
5971 quickly whether someone messes up the test in the
5973 char digs[] = "0123456789";
5974 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5976 /* Catch a bug in an HP-UX C compiler. See
5977 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5978 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5989 /* Refer to every declared value, to avoid compiler optimizations. */
5990 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5991 + !m + !n + !o + !p + !q + !pq);
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998 ac_cv_header_stdbool_h=yes
6000 ac_cv_header_stdbool_h=no
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6005 $as_echo "$ac_cv_header_stdbool_h" >&6; }
6006 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6007 if test "x$ac_cv_type__Bool" = x""yes; then :
6009 cat >>confdefs.h <<_ACEOF
6010 #define HAVE__BOOL 1
6016 if test $ac_cv_header_stdbool_h = yes; then
6018 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6023 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6024 if test "${ac_cv_c_const+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6033 /* FIXME: Include the comments suggested by Paul. */
6035 /* Ultrix mips cc rejects this. */
6036 typedef int charset[2];
6038 /* SunOS 4.1.1 cc rejects this. */
6039 char const *const *pcpcc;
6041 /* NEC SVR4.0.2 mips cc rejects this. */
6042 struct point {int x, y;};
6043 static struct point const zero = {0,0};
6044 /* AIX XL C 1.02.0.0 rejects this.
6045 It does not let you subtract one const X* pointer from another in
6046 an arm of an if-expression whose if-part is not a constant
6048 const char *g = "string";
6049 pcpcc = &g + (g ? g-g : 0);
6050 /* HPUX 7.0 cc rejects these. */
6052 ppc = (char**) pcpcc;
6053 pcpcc = (char const *const *) ppc;
6054 { /* SCO 3.2v4 cc rejects this. */
6056 char const *s = 0 ? (char *) 0 : (char const *) 0;
6061 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6063 const int *foo = &x[0];
6066 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6067 typedef const int *iptr;
6071 { /* AIX XL C 1.02.0.0 rejects this saying
6072 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6073 struct s { int j; const int *ap[3]; };
6074 struct s *b; b->j = 5;
6076 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6080 return !cs[0] && !zero.x;
6087 if ac_fn_c_try_compile "$LINENO"; then :
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6095 $as_echo "$ac_cv_c_const" >&6; }
6096 if test $ac_cv_c_const = no; then
6098 $as_echo "#define const /**/" >>confdefs.h
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6103 $as_echo_n "checking for inline... " >&6; }
6104 if test "${ac_cv_c_inline+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6108 for ac_kw in inline __inline__ __inline; do
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6113 static $ac_kw foo_t static_foo () {return 0; }
6114 $ac_kw foo_t foo () {return 0; }
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 ac_cv_c_inline=$ac_kw
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 test "$ac_cv_c_inline" != no && break
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6127 $as_echo "$ac_cv_c_inline" >&6; }
6129 case $ac_cv_c_inline in
6132 case $ac_cv_c_inline in
6134 *) ac_val=$ac_cv_c_inline;;
6136 cat >>confdefs.h <<_ACEOF
6138 #define inline $ac_val
6144 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6145 if test "x$ac_cv_type_pid_t" = x""yes; then :
6149 cat >>confdefs.h <<_ACEOF
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6156 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6157 if test "${ac_cv_header_time+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 #include <sys/types.h>
6163 #include <sys/time.h>
6169 if ((struct tm *) 0)
6175 if ac_fn_c_try_compile "$LINENO"; then :
6176 ac_cv_header_time=yes
6178 ac_cv_header_time=no
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6183 $as_echo "$ac_cv_header_time" >&6; }
6184 if test $ac_cv_header_time = yes; then
6186 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6191 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6192 if test "${ac_cv_struct_tm+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6204 int *p = &tm.tm_sec;
6210 if ac_fn_c_try_compile "$LINENO"; then :
6211 ac_cv_struct_tm=time.h
6213 ac_cv_struct_tm=sys/time.h
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6218 $as_echo "$ac_cv_struct_tm" >&6; }
6219 if test $ac_cv_struct_tm = sys/time.h; then
6221 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6226 # Checks for library functions.
6227 for ac_header in vfork.h
6229 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6230 if test "x$ac_cv_header_vfork_h" = x""yes; then :
6231 cat >>confdefs.h <<_ACEOF
6232 #define HAVE_VFORK_H 1
6239 for ac_func in fork vfork
6241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6243 eval as_val=\$$as_ac_var
6244 if test "x$as_val" = x""yes; then :
6245 cat >>confdefs.h <<_ACEOF
6246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6252 if test "x$ac_cv_func_fork" = xyes; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6254 $as_echo_n "checking for working fork... " >&6; }
6255 if test "${ac_cv_func_fork_works+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6258 if test "$cross_compiling" = yes; then :
6259 ac_cv_func_fork_works=cross
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 $ac_includes_default
6268 /* By Ruediger Kuhlmann. */
6275 if ac_fn_c_try_run "$LINENO"; then :
6276 ac_cv_func_fork_works=yes
6278 ac_cv_func_fork_works=no
6280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6281 conftest.$ac_objext conftest.beam conftest.$ac_ext
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6286 $as_echo "$ac_cv_func_fork_works" >&6; }
6289 ac_cv_func_fork_works=$ac_cv_func_fork
6291 if test "x$ac_cv_func_fork_works" = xcross; then
6293 *-*-amigaos* | *-*-msdosdjgpp*)
6294 # Override, as these systems have only a dummy fork() stub
6295 ac_cv_func_fork_works=no
6298 ac_cv_func_fork_works=yes
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6302 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6304 ac_cv_func_vfork_works=$ac_cv_func_vfork
6305 if test "x$ac_cv_func_vfork" = xyes; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6307 $as_echo_n "checking for working vfork... " >&6; }
6308 if test "${ac_cv_func_vfork_works+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6311 if test "$cross_compiling" = yes; then :
6312 ac_cv_func_vfork_works=cross
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 /* Thanks to Paul Eggert for this test. */
6317 $ac_includes_default
6318 #include <sys/wait.h>
6322 /* On some sparc systems, changes by the child to local and incoming
6323 argument registers are propagated back to the parent. The compiler
6324 is told about this with #include <vfork.h>, but some compilers
6325 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6326 static variable whose address is put into a register that is
6327 clobbered by the vfork. */
6330 sparc_address_test (int arg)
6332 sparc_address_test (arg) int arg;
6353 pid_t parent = getpid ();
6356 sparc_address_test (0);
6361 /* Here is another test for sparc vfork register problems. This
6362 test uses lots of local variables, at least as many local
6363 variables as main has allocated so far including compiler
6364 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6365 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6366 reuse the register of parent for one of the local variables,
6367 since it will think that parent can't possibly be used any more
6368 in this routine. Assigning to the local variable will thus
6369 munge parent in the parent process. */
6371 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6372 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6373 /* Convince the compiler that p..p7 are live; otherwise, it might
6374 use the same hardware register for all 8 local variables. */
6375 if (p != p1 || p != p2 || p != p3 || p != p4
6376 || p != p5 || p != p6 || p != p7)
6379 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6380 from child file descriptors. If the child closes a descriptor
6381 before it execs or exits, this munges the parent's descriptor
6382 as well. Test for this by closing stdout in the child. */
6383 _exit(close(fileno(stdout)) != 0);
6388 while (wait(&status) != child)
6391 /* Was there some problem with vforking? */
6394 /* Did the child fail? (This shouldn't happen.) */
6397 /* Did the vfork/compiler bug occur? */
6398 || parent != getpid()
6400 /* Did the file descriptor bug occur? */
6401 || fstat(fileno(stdout), &st) != 0
6406 if ac_fn_c_try_run "$LINENO"; then :
6407 ac_cv_func_vfork_works=yes
6409 ac_cv_func_vfork_works=no
6411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6412 conftest.$ac_objext conftest.beam conftest.$ac_ext
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6417 $as_echo "$ac_cv_func_vfork_works" >&6; }
6420 if test "x$ac_cv_func_fork_works" = xcross; then
6421 ac_cv_func_vfork_works=$ac_cv_func_vfork
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6423 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6426 if test "x$ac_cv_func_vfork_works" = xyes; then
6428 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6432 $as_echo "#define vfork fork" >>confdefs.h
6435 if test "x$ac_cv_func_fork_works" = xyes; then
6437 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6441 if test $ac_cv_c_compiler_gnu = yes; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6443 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6444 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6447 ac_pattern="Autoconf.*'x'"
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6454 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6455 ac_cv_prog_gcc_traditional=yes
6457 ac_cv_prog_gcc_traditional=no
6462 if test $ac_cv_prog_gcc_traditional = no; then
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6470 ac_cv_prog_gcc_traditional=yes
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6477 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6478 if test $ac_cv_prog_gcc_traditional = yes; then
6479 CC="$CC -traditional"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6484 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
6485 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6488 rm -f conftest.sym conftest.file
6490 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6491 if test "$cross_compiling" = yes; then :
6492 ac_cv_func_lstat_dereferences_slashed_symlink=no
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 $ac_includes_default
6501 /* Linux will dereference the symlink and fail, as required by POSIX.
6502 That is better in the sense that it means we will not
6503 have to compile and use the lstat wrapper. */
6504 return lstat ("conftest.sym/", &sbuf) == 0;
6509 if ac_fn_c_try_run "$LINENO"; then :
6510 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6512 ac_cv_func_lstat_dereferences_slashed_symlink=no
6514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6515 conftest.$ac_objext conftest.beam conftest.$ac_ext
6519 # If the `ln -s' command failed, then we probably don't even
6520 # have an lstat function.
6521 ac_cv_func_lstat_dereferences_slashed_symlink=no
6523 rm -f conftest.sym conftest.file
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6527 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6529 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6531 cat >>confdefs.h <<_ACEOF
6532 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6536 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6537 case " $LIBOBJS " in
6538 *" lstat.$ac_objext "* ) ;;
6539 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6546 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6547 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6550 if test "$cross_compiling" = yes; then :
6551 ac_cv_func_lstat_empty_string_bug=yes
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 $ac_includes_default
6560 return lstat ("", &sbuf) == 0;
6565 if ac_fn_c_try_run "$LINENO"; then :
6566 ac_cv_func_lstat_empty_string_bug=no
6568 ac_cv_func_lstat_empty_string_bug=yes
6570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6571 conftest.$ac_objext conftest.beam conftest.$ac_ext
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6576 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6577 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6578 case " $LIBOBJS " in
6579 *" lstat.$ac_objext "* ) ;;
6580 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6585 cat >>confdefs.h <<_ACEOF
6586 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6592 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
6593 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6596 rm -f conftest.sym conftest.file
6598 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6599 if test "$cross_compiling" = yes; then :
6600 ac_cv_func_lstat_dereferences_slashed_symlink=no
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 $ac_includes_default
6609 /* Linux will dereference the symlink and fail, as required by POSIX.
6610 That is better in the sense that it means we will not
6611 have to compile and use the lstat wrapper. */
6612 return lstat ("conftest.sym/", &sbuf) == 0;
6617 if ac_fn_c_try_run "$LINENO"; then :
6618 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6620 ac_cv_func_lstat_dereferences_slashed_symlink=no
6622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6623 conftest.$ac_objext conftest.beam conftest.$ac_ext
6627 # If the `ln -s' command failed, then we probably don't even
6628 # have an lstat function.
6629 ac_cv_func_lstat_dereferences_slashed_symlink=no
6631 rm -f conftest.sym conftest.file
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6635 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6637 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6639 cat >>confdefs.h <<_ACEOF
6640 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6644 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6645 case " $LIBOBJS " in
6646 *" lstat.$ac_objext "* ) ;;
6647 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6653 for ac_header in stdlib.h
6655 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6656 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6657 cat >>confdefs.h <<_ACEOF
6658 #define HAVE_STDLIB_H 1
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6666 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6667 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6670 if test "$cross_compiling" = yes; then :
6671 ac_cv_func_malloc_0_nonnull=no
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6676 # include <stdlib.h>
6684 return ! malloc (0);
6689 if ac_fn_c_try_run "$LINENO"; then :
6690 ac_cv_func_malloc_0_nonnull=yes
6692 ac_cv_func_malloc_0_nonnull=no
6694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6695 conftest.$ac_objext conftest.beam conftest.$ac_ext
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6700 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6701 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6703 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6706 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6708 case " $LIBOBJS " in
6709 *" malloc.$ac_objext "* ) ;;
6710 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6715 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6721 $as_echo_n "checking for working memcmp... " >&6; }
6722 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6723 $as_echo_n "(cached) " >&6
6725 if test "$cross_compiling" = yes; then :
6726 ac_cv_func_memcmp_working=no
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 $ac_includes_default
6735 /* Some versions of memcmp are not 8-bit clean. */
6736 char c0 = '\100', c1 = '\200', c2 = '\201';
6737 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6740 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6741 or more and with at least one buffer not starting on a 4-byte boundary.
6742 William Lewis provided this test program. */
6747 for (i = 0; i < 4; i++)
6751 strcpy (a, "--------01111111");
6752 strcpy (b, "--------10000000");
6753 if (memcmp (a, b, 16) >= 0)
6763 if ac_fn_c_try_run "$LINENO"; then :
6764 ac_cv_func_memcmp_working=yes
6766 ac_cv_func_memcmp_working=no
6768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6769 conftest.$ac_objext conftest.beam conftest.$ac_ext
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6774 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6775 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6776 *" memcmp.$ac_objext "* ) ;;
6777 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6783 $as_echo_n "checking return type of signal handlers... " >&6; }
6784 if test "${ac_cv_type_signal+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 #include <sys/types.h>
6795 return *(signal (0, 0)) (0) == 1;
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 ac_cv_type_signal=int
6803 ac_cv_type_signal=void
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6808 $as_echo "$ac_cv_type_signal" >&6; }
6810 cat >>confdefs.h <<_ACEOF
6811 #define RETSIGTYPE $ac_cv_type_signal
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
6816 $as_echo_n "checking for working strnlen... " >&6; }
6817 if test "${ac_cv_func_strnlen_working+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6820 if test "$cross_compiling" = yes; then :
6821 ac_cv_func_strnlen_working=no
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 $ac_includes_default
6831 #define S_LEN (sizeof S - 1)
6833 /* At least one implementation is buggy: that of AIX 4.3 would
6834 give strnlen (S, 1) == 3. */
6837 for (i = 0; i < S_LEN + 1; ++i)
6839 int expected = i <= S_LEN ? i : S_LEN;
6840 if (strnlen (S, i) != expected)
6849 if ac_fn_c_try_run "$LINENO"; then :
6850 ac_cv_func_strnlen_working=yes
6852 ac_cv_func_strnlen_working=no
6854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6855 conftest.$ac_objext conftest.beam conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
6860 $as_echo "$ac_cv_func_strnlen_working" >&6; }
6861 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
6862 *" strnlen.$ac_objext "* ) ;;
6863 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6869 $as_echo_n "checking for working strtod... " >&6; }
6870 if test "${ac_cv_func_strtod+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6873 if test "$cross_compiling" = yes; then :
6874 ac_cv_func_strtod=no
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6879 $ac_includes_default
6887 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6888 char *string = " +69";
6891 value = strtod (string, &term);
6892 if (value != 69 || term != (string + 4))
6897 /* Under Solaris 2.4, strtod returns the wrong value for the
6898 terminating character under some conditions. */
6899 char *string = "NaN";
6901 strtod (string, &term);
6902 if (term != string && *(term - 1) == 0)
6909 if ac_fn_c_try_run "$LINENO"; then :
6910 ac_cv_func_strtod=yes
6912 ac_cv_func_strtod=no
6914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6915 conftest.$ac_objext conftest.beam conftest.$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6920 $as_echo "$ac_cv_func_strtod" >&6; }
6921 if test $ac_cv_func_strtod = no; then
6922 case " $LIBOBJS " in
6923 *" strtod.$ac_objext "* ) ;;
6924 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6928 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6929 if test "x$ac_cv_func_pow" = x""yes; then :
6933 if test $ac_cv_func_pow = no; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6935 $as_echo_n "checking for pow in -lm... " >&6; }
6936 if test "${ac_cv_lib_m_pow+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6939 ac_check_lib_save_LIBS=$LIBS
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6944 /* Override any GCC internal prototype to avoid an error.
6945 Use char because int might match the return type of a GCC
6946 builtin and then its argument prototype would still apply. */
6959 if ac_fn_c_try_link "$LINENO"; then :
6964 rm -f core conftest.err conftest.$ac_objext \
6965 conftest$ac_exeext conftest.$ac_ext
6966 LIBS=$ac_check_lib_save_LIBS
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6969 $as_echo "$ac_cv_lib_m_pow" >&6; }
6970 if test "x$ac_cv_lib_m_pow" = x""yes; then :
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6974 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6981 for ac_func in vprintf
6983 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6984 if test "x$ac_cv_func_vprintf" = x""yes; then :
6985 cat >>confdefs.h <<_ACEOF
6986 #define HAVE_VPRINTF 1
6989 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6990 if test "x$ac_cv_func__doprnt" = x""yes; then :
6992 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7000 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
7002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7004 eval as_val=\$$as_ac_var
7005 if test "x$as_val" = x""yes; then :
7006 cat >>confdefs.h <<_ACEOF
7007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7015 ac_config_files="$ac_config_files Makefile"
7017 cat >confcache <<\_ACEOF
7018 # This file is a shell script that caches the results of configure
7019 # tests run on this system so they can be shared between configure
7020 # scripts and configure runs, see configure's option --config-cache.
7021 # It is not useful on other systems. If it contains results you don't
7022 # want to keep, you may remove or edit it.
7024 # config.status only pays attention to the cache file if you give it
7025 # the --recheck option to rerun configure.
7027 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7028 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7033 # The following way of writing the cache mishandles newlines in values,
7034 # but we know of no workaround that is simple, portable, and efficient.
7035 # So, we kill variables containing newlines.
7036 # Ultrix sh set writes to stderr and can't be redirected directly,
7037 # and sets the high bit in the cache file unless we assign to the vars.
7039 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7040 eval ac_val=\$$ac_var
7044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7048 _ | IFS | as_nl) ;; #(
7049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7050 *) { eval $ac_var=; unset $ac_var;} ;;
7056 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7057 *${as_nl}ac_space=\ *)
7058 # `set' does not quote correctly, so add quotes: double-quote
7059 # substitution turns \\\\ into \\, and sed turns \\ into \.
7062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7065 # `set' quotes correctly as required by POSIX, so do not add quotes.
7066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7075 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7077 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7079 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7080 if test -w "$cache_file"; then
7081 test "x$cache_file" != "x/dev/null" &&
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7083 $as_echo "$as_me: updating cache $cache_file" >&6;}
7084 cat confcache >$cache_file
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7087 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7093 # Let make expand exec_prefix.
7094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7096 DEFS=-DHAVE_CONFIG_H
7100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7101 # 1. Remove the extension, and $U if already installed.
7102 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7103 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7104 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7105 # will be set to the directory where LIBOBJS objects are built.
7106 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7107 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7111 LTLIBOBJS=$ac_ltlibobjs
7114 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7115 as_fn_error "conditional \"AMDEP\" was never defined.
7116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7118 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7119 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7122 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7123 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7126 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
7127 as_fn_error "conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
7128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7130 if test -z "${ENABLE_GSM_BS_TRUE}" && test -z "${ENABLE_GSM_BS_FALSE}"; then
7131 as_fn_error "conditional \"ENABLE_GSM_BS\" was never defined.
7132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7134 if test -z "${ENABLE_GSM_MS_TRUE}" && test -z "${ENABLE_GSM_MS_FALSE}"; then
7135 as_fn_error "conditional \"ENABLE_GSM_MS\" was never defined.
7136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7138 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
7139 as_fn_error "conditional \"ENABLE_GSM\" was never defined.
7140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7142 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
7143 as_fn_error "conditional \"ENABLE_SS5\" was never defined.
7144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7147 : ${CONFIG_STATUS=./config.status}
7149 ac_clean_files_save=$ac_clean_files
7150 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7156 # Generated by $as_me.
7157 # Run this file to recreate the current configuration.
7158 # Compiler output produced by configure, useful for debugging
7159 # configure, is in config.log if it exists.
7165 SHELL=\${CONFIG_SHELL-$SHELL}
7168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7169 ## -------------------- ##
7170 ## M4sh Initialization. ##
7171 ## -------------------- ##
7173 # Be more Bourne compatible
7174 DUALCASE=1; export DUALCASE # for MKS sh
7175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7179 # is contrary to our usage. Disable this feature.
7180 alias -g '${1+"$@"}'='"$@"'
7181 setopt NO_GLOB_SUBST
7183 case `(set -o) 2>/dev/null` in #(
7195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7199 # Prefer a ksh shell builtin over an external printf program on Solaris,
7200 # but without wasting forks for bash or zsh.
7201 if test -z "$BASH_VERSION$ZSH_VERSION" \
7202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7203 as_echo='print -r --'
7204 as_echo_n='print -rn --'
7205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7206 as_echo='printf %s\n'
7207 as_echo_n='printf %s'
7209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7211 as_echo_n='/usr/ucb/echo -n'
7213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7214 as_echo_n_body='eval
7218 expr "X$arg" : "X\\(.*\\)$as_nl";
7219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7223 export as_echo_n_body
7224 as_echo_n='sh -c $as_echo_n_body as_echo'
7227 as_echo='sh -c $as_echo_body as_echo'
7230 # The user is always right.
7231 if test "${PATH_SEPARATOR+set}" != set; then
7233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7241 # We need space, tab and new line, in precisely that order. Quoting is
7242 # there to prevent editors from complaining about space-tab.
7243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7244 # splitting by setting IFS to empty value.)
7247 # Find who we are. Look in the path if we contain no directory separator.
7249 *[\\/]* ) as_myself=$0 ;;
7250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7261 # We did not find ourselves, most probably we were run as `sh COMMAND'
7262 # in which case we are not to be found in the path.
7263 if test "x$as_myself" = x; then
7266 if test ! -f "$as_myself"; then
7267 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7271 # Unset variables that we do not need and which cause bugs (e.g. in
7272 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7273 # suppresses any "Segmentation fault" message there. '((' could
7274 # trigger a bug in pdksh 5.2.14.
7275 for as_var in BASH_ENV ENV MAIL MAILPATH
7276 do eval test x\${$as_var+set} = xset \
7277 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7293 # as_fn_error ERROR [LINENO LOG_FD]
7294 # ---------------------------------
7295 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7296 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7297 # script with status $?, using 1 if that was 0.
7300 as_status=$?; test $as_status -eq 0 && as_status=1
7302 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7303 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7305 $as_echo "$as_me: error: $1" >&2
7306 as_fn_exit $as_status
7310 # as_fn_set_status STATUS
7311 # -----------------------
7312 # Set $? to STATUS, without forking.
7316 } # as_fn_set_status
7320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7330 # Portably unset VAR.
7333 { eval $1=; unset $1;}
7335 as_unset=as_fn_unset
7336 # as_fn_append VAR VALUE
7337 # ----------------------
7338 # Append the text in VALUE to the end of the definition contained in VAR. Take
7339 # advantage of any shell optimizations that allow amortized linear growth over
7340 # repeated appends, instead of the typical quadratic growth present in naive
7342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7343 eval 'as_fn_append ()
7354 # as_fn_arith ARG...
7355 # ------------------
7356 # Perform arithmetic evaluation on the ARGs, and store the result in the
7357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7358 # must be portable across $(()) and expr.
7359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7360 eval 'as_fn_arith ()
7367 as_val=`expr "$@" || test $? -eq 1`
7372 if expr a : '\(a\)' >/dev/null 2>&1 &&
7373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7380 as_basename=basename
7385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7391 as_me=`$as_basename -- "$0" ||
7392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7393 X"$0" : 'X\(//\)$' \| \
7394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7396 sed '/^.*\/\([^/][^/]*\)\/*$/{
7410 # Avoid depending upon Character Ranges.
7411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7414 as_cr_digits='0123456789'
7415 as_cr_alnum=$as_cr_Letters$as_cr_digits
7417 ECHO_C= ECHO_N= ECHO_T=
7418 case `echo -n x` in #(((((
7420 case `echo 'xy\c'` in
7421 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7423 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7430 rm -f conf$$ conf$$.exe conf$$.file
7431 if test -d conf$$.dir; then
7432 rm -f conf$$.dir/conf$$.file
7435 mkdir conf$$.dir 2>/dev/null
7437 if (echo >conf$$.file) 2>/dev/null; then
7438 if ln -s conf$$.file conf$$ 2>/dev/null; then
7440 # ... but there are two gotchas:
7441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7443 # In both cases, we have to default to `cp -p'.
7444 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7446 elif ln conf$$.file conf$$ 2>/dev/null; then
7454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7455 rmdir conf$$.dir 2>/dev/null
7460 # Create "$as_dir" as a directory, including parents if necessary.
7465 -*) as_dir=./$as_dir;;
7467 test -d "$as_dir" || eval $as_mkdir_p || {
7471 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7472 *) as_qdir=$as_dir;;
7474 as_dirs="'$as_qdir' $as_dirs"
7475 as_dir=`$as_dirname -- "$as_dir" ||
7476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7477 X"$as_dir" : 'X\(//\)[^/]' \| \
7478 X"$as_dir" : 'X\(//\)$' \| \
7479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7480 $as_echo X"$as_dir" |
7481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7498 test -d "$as_dir" && break
7500 test -z "$as_dirs" || eval "mkdir $as_dirs"
7501 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7505 if mkdir -p . 2>/dev/null; then
7506 as_mkdir_p='mkdir -p "$as_dir"'
7508 test -d ./-p && rmdir ./-p
7512 if test -x / >/dev/null 2>&1; then
7515 if ls -dL / >/dev/null 2>&1; then
7522 if test -d "$1"; then
7528 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7529 ???[sx]*):;;*)false;;esac;fi
7533 as_executable_p=$as_test_x
7535 # Sed expression to map a string onto a valid CPP name.
7536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7538 # Sed expression to map a string onto a valid variable name.
7539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7543 ## ----------------------------------- ##
7544 ## Main body of $CONFIG_STATUS script. ##
7545 ## ----------------------------------- ##
7547 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7550 # Save the log message, to keep $0 and so on meaningful, and to
7551 # report actual input values of CONFIG_FILES etc. instead of their
7552 # values after options handling.
7554 This file was extended by lcr $as_me 1.7, which was
7555 generated by GNU Autoconf 2.65. Invocation command line was
7557 CONFIG_FILES = $CONFIG_FILES
7558 CONFIG_HEADERS = $CONFIG_HEADERS
7559 CONFIG_LINKS = $CONFIG_LINKS
7560 CONFIG_COMMANDS = $CONFIG_COMMANDS
7563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7568 case $ac_config_files in *"
7569 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7572 case $ac_config_headers in *"
7573 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7578 # Files that config.status was made for.
7579 config_files="$ac_config_files"
7580 config_headers="$ac_config_headers"
7581 config_commands="$ac_config_commands"
7585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7587 \`$as_me' instantiates files and other configuration actions
7588 from templates according to the current configuration. Unless the files
7589 and actions are specified as TAGs, all are instantiated by default.
7591 Usage: $0 [OPTION]... [TAG]...
7593 -h, --help print this help, then exit
7594 -V, --version print version number and configuration settings, then exit
7595 --config print configuration, then exit
7596 -q, --quiet, --silent
7597 do not print progress messages
7598 -d, --debug don't remove temporary files
7599 --recheck update $as_me by reconfiguring in the same conditions
7600 --file=FILE[:TEMPLATE]
7601 instantiate the configuration file FILE
7602 --header=FILE[:TEMPLATE]
7603 instantiate the configuration header FILE
7605 Configuration files:
7608 Configuration headers:
7611 Configuration commands:
7614 Report bugs to <andreas@eversberg.eu>."
7617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7618 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7620 lcr config.status 1.7
7621 configured by $0, generated by GNU Autoconf 2.65,
7622 with options \\"\$ac_cs_config\\"
7624 Copyright (C) 2009 Free Software Foundation, Inc.
7625 This config.status script is free software; the Free Software Foundation
7626 gives unlimited permission to copy, distribute and modify it."
7632 test -n "\$AWK" || AWK=awk
7635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7636 # The default lists apply if the user does not specify any file.
7642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7654 # Handling of the options.
7655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7657 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7658 $as_echo "$ac_cs_version"; exit ;;
7659 --config | --confi | --conf | --con | --co | --c )
7660 $as_echo "$ac_cs_config"; exit ;;
7661 --debug | --debu | --deb | --de | --d | -d )
7663 --file | --fil | --fi | --f )
7666 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7668 as_fn_append CONFIG_FILES " '$ac_optarg'"
7669 ac_need_defaults=false;;
7670 --header | --heade | --head | --hea )
7673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7675 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7676 ac_need_defaults=false;;
7678 # Conflict between --help and --header
7679 as_fn_error "ambiguous option: \`$1'
7680 Try \`$0 --help' for more information.";;
7681 --help | --hel | -h )
7682 $as_echo "$ac_cs_usage"; exit ;;
7683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7684 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7688 -*) as_fn_error "unrecognized option: \`$1'
7689 Try \`$0 --help' for more information." ;;
7691 *) as_fn_append ac_config_targets " $1"
7692 ac_need_defaults=false ;;
7698 ac_configure_extra_args=
7700 if $ac_cs_silent; then
7702 ac_configure_extra_args="$ac_configure_extra_args --silent"
7706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7707 if \$ac_cs_recheck; then
7708 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7710 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7711 CONFIG_SHELL='$SHELL'
7717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7722 ## Running $as_me. ##
7728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7732 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7738 # Handling of arguments.
7739 for ac_config_target in $ac_config_targets
7741 case $ac_config_target in
7742 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7743 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7744 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7746 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7751 # If the user did not use the arguments to specify the items to instantiate,
7752 # then the envvar interface is used. Set only those that are not.
7753 # We use the long form for the default assignment because of an extremely
7754 # bizarre bug on SunOS 4.1.3.
7755 if $ac_need_defaults; then
7756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7761 # Have a temporary directory for convenience. Make it in the build tree
7762 # simply because there is no reason against having it here, and in addition,
7763 # creating and moving files from /tmp can sometimes cause problems.
7764 # Hook for its removal unless debugging.
7765 # Note that there is a small window in which the directory will not be cleaned:
7766 # after its creation but before its name has been assigned to `$tmp'.
7770 trap 'exit_status=$?
7771 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7773 trap 'as_fn_exit 1' 1 2 13 15
7775 # Create a (secure) tmp directory for tmp files.
7778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7779 test -n "$tmp" && test -d "$tmp"
7782 tmp=./conf$$-$RANDOM
7783 (umask 077 && mkdir "$tmp")
7784 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7786 # Set up the scripts for CONFIG_FILES section.
7787 # No need to generate them if there are no CONFIG_FILES.
7788 # This happens for instance with `./config.status config.h'.
7789 if test -n "$CONFIG_FILES"; then
7792 ac_cr=`echo X | tr X '\015'`
7793 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7794 # But we know of no other shell where ac_cr would be empty at this
7795 # point, so we can use a bashism as a fallback.
7796 if test "x$ac_cr" = x; then
7797 eval ac_cr=\$\'\\r\'
7799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7811 echo "cat >conf$$subs.awk <<_ACEOF" &&
7812 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7815 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7816 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7818 for ac_last_try in false false false false false :; do
7819 . ./conf$$subs.sh ||
7820 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7822 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7823 if test $ac_delim_n = $ac_delim_num; then
7825 elif $ac_last_try; then
7826 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7834 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7838 s/^/S["/; s/!.*/"]=/
7848 s/\(.\{148\}\)..*/\1/
7850 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7855 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7862 s/\(.\{148\}\)..*/\1/
7864 s/["\\]/\\&/g; s/^/"/; s/$/"/
7868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7873 ' <conf$$subs.awk | sed '
7878 ' >>$CONFIG_STATUS || ac_write_fail=1
7879 rm -f conf$$subs.awk
7880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7882 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7883 for (key in S) S_is_set[key] = 1
7889 nfields = split(line, field, "@")
7891 len = length(field[1])
7892 for (i = 2; i < nfields; i++) {
7894 keylen = length(key)
7895 if (S_is_set[key]) {
7897 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7898 len += length(value) + length(field[++i])
7909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7910 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7911 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7914 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7915 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7918 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7919 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7920 # trailing colons and then remove the whole line if VPATH becomes empty
7921 # (actually we leave an empty line to preserve line numbers).
7922 if test "x$srcdir" = x.; then
7923 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7927 s/^\([^=]*=[ ]*\):*/\1/
7933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7934 fi # test -n "$CONFIG_FILES"
7936 # Set up the scripts for CONFIG_HEADERS section.
7937 # No need to generate them if there are no CONFIG_HEADERS.
7938 # This happens for instance with `./config.status Makefile'.
7939 if test -n "$CONFIG_HEADERS"; then
7940 cat >"$tmp/defines.awk" <<\_ACAWK ||
7944 # Transform confdefs.h into an awk script `defines.awk', embedded as
7945 # here-document in config.status, that substitutes the proper values into
7946 # config.h.in to produce config.h.
7948 # Create a delimiter string that does not exist in confdefs.h, to ease
7949 # handling of long lines.
7951 for ac_last_try in false false :; do
7952 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7953 if test -z "$ac_t"; then
7955 elif $ac_last_try; then
7956 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7962 # For the awk script, D is an array of macro values keyed by name,
7963 # likewise P contains macro parameters if any. Preserve backslash
7964 # newline sequences.
7966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7968 s/.\{148\}/&'"$ac_delim"'/g
7971 s/^[ ]*#[ ]*define[ ][ ]*/ /
7978 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7980 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7985 D["\1"]=" \3\\\\\\n"\\/p
7987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7992 s/.\{148\}/&'"$ac_delim"'/g
7997 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8000 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8002 ' <confdefs.h | sed '
8003 s/'"$ac_delim"'/"\\\
8004 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8007 for (key in D) D_is_set[key] = 1
8010 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8012 split(line, arg, " ")
8013 if (arg[1] == "#") {
8017 defundef = substr(arg[1], 2)
8020 split(mac1, mac2, "(") #)
8022 prefix = substr(line, 1, index(line, defundef) - 1)
8023 if (D_is_set[macro]) {
8024 # Preserve the white space surrounding the "#".
8025 print prefix "define", macro P[macro] D[macro]
8028 # Replace #undef with comments. This is necessary, for example,
8029 # in the case of _POSIX_SOURCE, which is predefined and required
8030 # on some systems where configure will not decide to define it.
8031 if (defundef == "undef") {
8032 print "/*", prefix defundef, macro, "*/"
8040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8041 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8042 fi # test -n "$CONFIG_HEADERS"
8045 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8050 :[FHLC]) ac_mode=$ac_tag; continue;;
8052 case $ac_mode$ac_tag in
8054 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8055 :[FH]-) ac_tag=-:-;;
8056 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8073 -) ac_f="$tmp/stdin";;
8074 *) # Look for the file first in the build tree, then in the source tree
8075 # (if the path is not absolute). The absolute path cannot be DOS-style,
8076 # because $ac_f cannot contain `:'.
8080 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8082 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8084 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8085 as_fn_append ac_file_inputs " '$ac_f'"
8088 # Let's still pretend it is `configure' which instantiates (i.e., don't
8089 # use $as_me), people would be surprised to read:
8090 # /* config.h. Generated by config.status. */
8091 configure_input='Generated from '`
8092 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8094 if test x"$ac_file" != x-; then
8095 configure_input="$ac_file. $configure_input"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8097 $as_echo "$as_me: creating $ac_file" >&6;}
8099 # Neutralize special characters interpreted by sed in replacement strings.
8100 case $configure_input in #(
8101 *\&* | *\|* | *\\* )
8102 ac_sed_conf_input=`$as_echo "$configure_input" |
8103 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8104 *) ac_sed_conf_input=$configure_input;;
8108 *:-:* | *:-) cat >"$tmp/stdin" \
8109 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8114 ac_dir=`$as_dirname -- "$ac_file" ||
8115 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8116 X"$ac_file" : 'X\(//\)[^/]' \| \
8117 X"$ac_file" : 'X\(//\)$' \| \
8118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8119 $as_echo X"$ac_file" |
8120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8137 as_dir="$ac_dir"; as_fn_mkdir_p
8141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8143 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8144 # A ".." for each directory in $ac_dir_suffix.
8145 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8146 case $ac_top_builddir_sub in
8147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8151 ac_abs_top_builddir=$ac_pwd
8152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8153 # for backward compatibility:
8154 ac_top_builddir=$ac_top_build_prefix
8157 .) # We are building in place.
8159 ac_top_srcdir=$ac_top_builddir_sub
8160 ac_abs_top_srcdir=$ac_pwd ;;
8161 [\\/]* | ?:[\\/]* ) # Absolute name.
8162 ac_srcdir=$srcdir$ac_dir_suffix;
8163 ac_top_srcdir=$srcdir
8164 ac_abs_top_srcdir=$srcdir ;;
8166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8167 ac_top_srcdir=$ac_top_build_prefix$srcdir
8168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8180 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8181 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8186 # If the template does not know about datarootdir, expand it.
8187 # FIXME: This hack should be removed a few years after 2.60.
8188 ac_datarootdir_hack=; ac_datarootdir_seen=
8199 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8200 *datarootdir*) ac_datarootdir_seen=yes;;
8201 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8203 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8206 ac_datarootdir_hack='
8207 s&@datadir@&$datadir&g
8208 s&@docdir@&$docdir&g
8209 s&@infodir@&$infodir&g
8210 s&@localedir@&$localedir&g
8211 s&@mandir@&$mandir&g
8212 s&\\\${datarootdir}&$datarootdir&g' ;;
8216 # Neutralize VPATH when `$srcdir' = `.'.
8217 # Shell code in configure.ac might set extrasub.
8218 # FIXME: do we really want to maintain this feature?
8219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8220 ac_sed_extra="$ac_vpsub
8223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8225 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8226 s|@configure_input@|$ac_sed_conf_input|;t t
8227 s&@top_builddir@&$ac_top_builddir_sub&;t t
8228 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8229 s&@srcdir@&$ac_srcdir&;t t
8230 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8231 s&@top_srcdir@&$ac_top_srcdir&;t t
8232 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8233 s&@builddir@&$ac_builddir&;t t
8234 s&@abs_builddir@&$ac_abs_builddir&;t t
8235 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8236 s&@INSTALL@&$ac_INSTALL&;t t
8237 $ac_datarootdir_hack
8239 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8240 || as_fn_error "could not create $ac_file" "$LINENO" 5
8242 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8243 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8244 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8246 which seems to be undefined. Please make sure it is defined." >&5
8247 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8248 which seems to be undefined. Please make sure it is defined." >&2;}
8252 -) cat "$tmp/out" && rm -f "$tmp/out";;
8253 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8255 || as_fn_error "could not create $ac_file" "$LINENO" 5
8261 if test x"$ac_file" != x-; then
8263 $as_echo "/* $configure_input */" \
8264 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8265 } >"$tmp/config.h" \
8266 || as_fn_error "could not create $ac_file" "$LINENO" 5
8267 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8269 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8272 mv "$tmp/config.h" "$ac_file" \
8273 || as_fn_error "could not create $ac_file" "$LINENO" 5
8276 $as_echo "/* $configure_input */" \
8277 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8278 || as_fn_error "could not create -" "$LINENO" 5
8280 # Compute "$ac_file"'s index in $config_headers.
8282 for _am_header in $config_headers :; do
8284 "$ac_file" | "$ac_file":* )
8287 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8290 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
8291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8292 X"$ac_file" : 'X\(//\)[^/]' \| \
8293 X"$ac_file" : 'X\(//\)$' \| \
8294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8295 $as_echo X"$ac_file" |
8296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8312 s/.*/./; q'`/stamp-h$_am_stamp_count
8315 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8316 $as_echo "$as_me: executing $ac_file commands" >&6;}
8321 case $ac_file$ac_mode in
8322 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8323 # Strip MF so we end up with the name of the file.
8324 mf=`echo "$mf" | sed -e 's/:.*$//'`
8325 # Check whether this is an Automake generated Makefile or not.
8326 # We used to match only the files named `Makefile.in', but
8327 # some people rename them; so instead we look at the file content.
8328 # Grep'ing the first line is not enough: some people post-process
8329 # each Makefile.in and add a new line on top of each file to say so.
8330 # So let's grep whole file.
8331 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8332 dirpart=`$as_dirname -- "$mf" ||
8333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8334 X"$mf" : 'X\(//\)[^/]' \| \
8335 X"$mf" : 'X\(//\)$' \| \
8336 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8358 # Extract the definition of DEPDIR, am__include, and am__quote
8359 # from the Makefile without running `make'.
8360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8361 test -z "$DEPDIR" && continue
8362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8363 test -z "am__include" && continue
8364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8365 # When using ansi2knr, U may be empty or an underscore; expand it
8366 U=`sed -n 's/^U = //p' < "$mf"`
8367 # Find all dependency output files, they are included files with
8368 # $(DEPDIR) in their names. We invoke sed twice because it is the
8369 # simplest approach to changing $(DEPDIR) to its actual value in the
8371 for file in `sed -n "
8372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8374 # Make sure the directory exists.
8375 test -f "$dirpart/$file" && continue
8376 fdir=`$as_dirname -- "$file" ||
8377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8378 X"$file" : 'X\(//\)[^/]' \| \
8379 X"$file" : 'X\(//\)$' \| \
8380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8399 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8400 # echo "creating $dirpart/$file"
8401 echo '# dummy' > "$dirpart/$file"
8412 ac_clean_files=$ac_clean_files_save
8414 test $ac_write_fail = 0 ||
8415 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8418 # configure is writing to config.log, and then calls config.status.
8419 # config.status does its own redirection, appending to config.log.
8420 # Unfortunately, on DOS this fails, as config.log is still kept open
8421 # by configure, so config.status won't be able to write to it; its
8422 # output is simply discarded. So we exec the FD to /dev/null,
8423 # effectively closing config.log, so it can be properly (re)opened and
8424 # appended to by config.status. When coming back to configure, we
8425 # need to make the FD available again.
8426 if test "$no_create" != yes; then
8428 ac_config_status_args=
8429 test "$silent" = yes &&
8430 ac_config_status_args="$ac_config_status_args --quiet"
8432 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8434 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8435 # would make configure fail if this is the last instruction.
8436 $ac_cs_success || as_fn_exit $?
8438 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8440 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}