2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for lcr 1.5.
5 # Report bugs to <andreas@eversberg.eu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
598 PACKAGE_TARNAME='lcr'
599 PACKAGE_VERSION='1.5'
600 PACKAGE_STRING='lcr 1.5'
601 PACKAGE_BUGREPORT='andreas@eversberg.eu'
603 ac_unique_file="main.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
617 # ifdef HAVE_STDLIB_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
640 ac_subst_vars='LTLIBOBJS
646 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
647 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
670 INSTALL_STRIP_PROGRAM
721 program_transform_name
733 enable_option_checking
734 enable_dependency_tracking
739 ac_precious_vars='build_alias
753 # Initialize some variables set by options.
755 ac_init_version=false
756 ac_unrecognized_opts=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name=s,x,x,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860 { (exit 1); exit 1; }; }
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
887 { (exit 1); exit 1; }; }
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
897 eval enable_$ac_useropt=\$ac_optarg ;;
899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901 | --exec | --exe | --ex)
902 ac_prev=exec_prefix ;;
903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905 | --exec=* | --exe=* | --ex=*)
906 exec_prefix=$ac_optarg ;;
908 -gas | --gas | --ga | --g)
909 # Obsolete; use --with-gas.
912 -help | --help | --hel | --he | -h)
914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915 ac_init_help=recursive ;;
916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917 ac_init_help=short ;;
919 -host | --host | --hos | --ho)
920 ac_prev=host_alias ;;
921 -host=* | --host=* | --hos=* | --ho=*)
922 host_alias=$ac_optarg ;;
924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 htmldir=$ac_optarg ;;
930 -includedir | --includedir | --includedi | --included | --include \
931 | --includ | --inclu | --incl | --inc)
932 ac_prev=includedir ;;
933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934 | --includ=* | --inclu=* | --incl=* | --inc=*)
935 includedir=$ac_optarg ;;
937 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940 infodir=$ac_optarg ;;
942 -libdir | --libdir | --libdi | --libd)
944 -libdir=* | --libdir=* | --libdi=* | --libd=*)
947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948 | --libexe | --libex | --libe)
949 ac_prev=libexecdir ;;
950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951 | --libexe=* | --libex=* | --libe=*)
952 libexecdir=$ac_optarg ;;
954 -localedir | --localedir | --localedi | --localed | --locale)
956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957 localedir=$ac_optarg ;;
959 -localstatedir | --localstatedir | --localstatedi | --localstated \
960 | --localstate | --localstat | --localsta | --localst | --locals)
961 ac_prev=localstatedir ;;
962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964 localstatedir=$ac_optarg ;;
966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 # Obsolete; use --without-fp.
975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976 | --no-cr | --no-c | -n)
979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985 | --oldin | --oldi | --old | --ol | --o)
986 ac_prev=oldincludedir ;;
987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990 oldincludedir=$ac_optarg ;;
992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997 -program-prefix | --program-prefix | --program-prefi | --program-pref \
998 | --program-pre | --program-pr | --program-p)
999 ac_prev=program_prefix ;;
1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002 program_prefix=$ac_optarg ;;
1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005 | --program-suf | --program-su | --program-s)
1006 ac_prev=program_suffix ;;
1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009 program_suffix=$ac_optarg ;;
1011 -program-transform-name | --program-transform-name \
1012 | --program-transform-nam | --program-transform-na \
1013 | --program-transform-n | --program-transform- \
1014 | --program-transform | --program-transfor \
1015 | --program-transfo | --program-transf \
1016 | --program-trans | --program-tran \
1017 | --progr-tra | --program-tr | --program-t)
1018 ac_prev=program_transform_name ;;
1019 -program-transform-name=* | --program-transform-name=* \
1020 | --program-transform-nam=* | --program-transform-na=* \
1021 | --program-transform-n=* | --program-transform-=* \
1022 | --program-transform=* | --program-transfor=* \
1023 | --program-transfo=* | --program-transf=* \
1024 | --program-trans=* | --program-tran=* \
1025 | --progr-tra=* | --program-tr=* | --program-t=*)
1026 program_transform_name=$ac_optarg ;;
1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031 pdfdir=$ac_optarg ;;
1033 -psdir | --psdir | --psdi | --psd | --ps)
1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 sbindir=$ac_optarg ;;
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 | --sharedst | --shareds | --shared | --share | --shar \
1052 ac_prev=sharedstatedir ;;
1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 sharedstatedir=$ac_optarg ;;
1059 -site | --site | --sit)
1061 -site=* | --site=* | --sit=*)
1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067 srcdir=$ac_optarg ;;
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 sysconfdir=$ac_optarg ;;
1076 -target | --target | --targe | --targ | --tar | --ta | --t)
1077 ac_prev=target_alias ;;
1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079 target_alias=$ac_optarg ;;
1081 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084 -version | --version | --versio | --versi | --vers | -V)
1085 ac_init_version=: ;;
1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1092 { (exit 1); exit 1; }; }
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=\$ac_optarg ;;
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1109 { (exit 1); exit 1; }; }
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval with_$ac_useropt=no ;;
1122 # Obsolete; use --with-x.
1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126 | --x-incl | --x-inc | --x-in | --x-i)
1127 ac_prev=x_includes ;;
1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130 x_includes=$ac_optarg ;;
1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134 ac_prev=x_libraries ;;
1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137 x_libraries=$ac_optarg ;;
1139 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1140 Try \`$0 --help' for more information." >&2
1141 { (exit 1); exit 1; }; }
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1148 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1149 { (exit 1); exit 1; }; }
1150 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;;
1154 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164 if test -n "$ac_prev"; then
1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1167 { (exit 1); exit 1; }; }
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1173 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1174 { (exit 1); exit 1; }; } ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1192 # Be sure to have absolute directory names.
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1206 target=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222 test "$silent" = yes && exec 6>/dev/null
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1267 ac_srcdir_defaulted=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272 { (exit 1); exit 1; }; }
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1277 { (exit 1); exit 1; }; }
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 # Report the --help message.
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1303 \`configure' configures lcr 1.5 to adapt to many kinds of systems.
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1310 Defaults for the options are specified in brackets.
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1334 For better control, use the options below.
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of lcr 1.5:";;
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-asterisk compile with built-in Asterisk channel driver
1386 --with-ssl compile with ssl support (libcrypto) [default=check]
1388 --with-gsm compile with OpenBSC support [default=no]
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1400 CXX C++ compiler command
1401 CXXFLAGS C++ compiler flags
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1406 Report bugs to <andreas@eversberg.eu>.
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1436 .) # We are building in place.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1470 generated by GNU Autoconf 2.63
1472 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1473 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1479 cat >config.log <<_ACEOF
1480 This file contains any messages produced by compilers while
1481 running configure, to aid debugging if configure makes a mistake.
1483 It was created by lcr $as_me 1.5, which was
1484 generated by GNU Autoconf 2.63. Invocation command line was
1496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1505 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1506 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1508 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1509 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1510 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1511 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 test -z "$as_dir" && as_dir=.
1520 $as_echo "PATH: $as_dir"
1536 # Keep a trace of the command line.
1537 # Strip out --no-create and --no-recursion so they do not pile up.
1538 # Strip out --silent because we don't want to record it for future runs.
1539 # Also quote any args containing shell meta-characters.
1540 # Make two passes to allow for proper duplicate-argument suppression.
1544 ac_must_keep_next=false
1550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1552 | -silent | --silent | --silen | --sile | --sil)
1555 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1558 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1560 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1561 if test $ac_must_keep_next = true; then
1562 ac_must_keep_next=false # Got value, back to normal.
1565 *=* | --config-cache | -C | -disable-* | --disable-* \
1566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1568 | -with-* | --with-* | -without-* | --without-* | --x)
1569 case "$ac_configure_args0 " in
1570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1573 -* ) ac_must_keep_next=true ;;
1576 ac_configure_args="$ac_configure_args '$ac_arg'"
1581 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1582 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1584 # When interrupted or exit'd, cleanup temporary files, and complete
1585 # config.log. We remove comments because anyway the quotes in there
1586 # would cause problems or look ugly.
1587 # WARNING: Use '\'' to represent an apostrophe within the trap.
1588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1589 trap 'exit_status=$?
1590 # Save into config.log some information that might help in debugging.
1595 ## ---------------- ##
1596 ## Cache variables. ##
1597 ## ---------------- ##
1600 # The following way of writing the cache mishandles newlines in values,
1602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1603 eval ac_val=\$$ac_var
1607 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1611 _ | IFS | as_nl) ;; #(
1612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1613 *) $as_unset $ac_var ;;
1618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1619 *${as_nl}ac_space=\ *)
1621 "s/'\''/'\''\\\\'\'''\''/g;
1622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1633 ## ----------------- ##
1634 ## Output variables. ##
1635 ## ----------------- ##
1638 for ac_var in $ac_subst_vars
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 $as_echo "$ac_var='\''$ac_val'\''"
1648 if test -n "$ac_subst_files"; then
1650 ## ------------------- ##
1651 ## File substitutions. ##
1652 ## ------------------- ##
1655 for ac_var in $ac_subst_files
1657 eval ac_val=\$$ac_var
1659 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661 $as_echo "$ac_var='\''$ac_val'\''"
1666 if test -s confdefs.h; then
1676 test "$ac_signal" != 0 &&
1677 $as_echo "$as_me: caught signal $ac_signal"
1678 $as_echo "$as_me: exit $exit_status"
1680 rm -f core *.core core.conftest.* &&
1681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1684 for ac_signal in 1 2 13 15; do
1685 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1690 rm -f -r conftest* confdefs.h
1692 # Predefined preprocessor variables.
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_NAME "$PACKAGE_NAME"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_STRING "$PACKAGE_STRING"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1719 # Let the site file select an alternate cache file if it wants to.
1720 # Prefer an explicitly selected file to automatically selected ones.
1723 if test -n "$CONFIG_SITE"; then
1724 ac_site_file1=$CONFIG_SITE
1725 elif test "x$prefix" != xNONE; then
1726 ac_site_file1=$prefix/share/config.site
1727 ac_site_file2=$prefix/etc/config.site
1729 ac_site_file1=$ac_default_prefix/share/config.site
1730 ac_site_file2=$ac_default_prefix/etc/config.site
1732 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1734 test "x$ac_site_file" = xNONE && continue
1735 if test -r "$ac_site_file"; then
1736 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1737 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1738 sed 's/^/| /' "$ac_site_file" >&5
1743 if test -r "$cache_file"; then
1744 # Some versions of bash will fail to source /dev/null (special
1745 # files actually), so we avoid doing that.
1746 if test -f "$cache_file"; then
1747 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1748 $as_echo "$as_me: loading cache $cache_file" >&6;}
1750 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1751 *) . "./$cache_file";;
1755 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1756 $as_echo "$as_me: creating cache $cache_file" >&6;}
1760 # Check that the precious variables saved in the cache have kept the same
1762 ac_cache_corrupted=false
1763 for ac_var in $ac_precious_vars; do
1764 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1765 eval ac_new_set=\$ac_env_${ac_var}_set
1766 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1767 eval ac_new_val=\$ac_env_${ac_var}_value
1768 case $ac_old_set,$ac_new_set in
1770 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1771 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1772 ac_cache_corrupted=: ;;
1774 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1775 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1779 if test "x$ac_old_val" != "x$ac_new_val"; then
1780 # differences in whitespace do not lead to failure.
1781 ac_old_val_w=`echo x $ac_old_val`
1782 ac_new_val_w=`echo x $ac_new_val`
1783 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1784 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786 ac_cache_corrupted=:
1788 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1789 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1790 eval $ac_var=\$ac_old_val
1792 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1793 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1794 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1795 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1798 # Pass precious variables to config.status.
1799 if test "$ac_new_set" = set; then
1801 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1802 *) ac_arg=$ac_var=$ac_new_val ;;
1804 case " $ac_configure_args " in
1805 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1806 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1810 if $ac_cache_corrupted; then
1811 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1813 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1814 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1815 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1816 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1817 { (exit 1); exit 1; }; }
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1853 ac_config_headers="$ac_config_headers config.h"
1856 # fix warnings from autoconf + automake
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 $as_echo_n "checking for $ac_word... " >&6; }
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868 $as_echo_n "(cached) " >&6
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1881 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 if test -n "$CC"; then
1892 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1893 $as_echo "$CC" >&6; }
1895 { $as_echo "$as_me:$LINENO: result: no" >&5
1896 $as_echo "no" >&6; }
1901 if test -z "$ac_cv_prog_CC"; then
1903 # Extract the first word of "gcc", so it can be a program name with args.
1904 set dummy gcc; ac_word=$2
1905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 $as_echo_n "checking for $ac_word... " >&6; }
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908 $as_echo_n "(cached) " >&6
1910 if test -n "$ac_ct_CC"; then
1911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920 ac_cv_prog_ac_ct_CC="gcc"
1921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 $as_echo "$ac_ct_CC" >&6; }
1935 { $as_echo "$as_me:$LINENO: result: no" >&5
1936 $as_echo "no" >&6; }
1939 if test "x$ac_ct_CC" = x; then
1942 case $cross_compiling:$ac_tool_warned in
1944 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1946 ac_tool_warned=yes ;;
1954 if test -z "$CC"; then
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}cc; ac_word=$2
1958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 $as_echo_n "checking for $ac_word... " >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 $as_echo_n "(cached) " >&6
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973 ac_cv_prog_CC="${ac_tool_prefix}cc"
1974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CC"; then
1985 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1986 $as_echo "$CC" >&6; }
1988 { $as_echo "$as_me:$LINENO: result: no" >&5
1989 $as_echo "no" >&6; }
1995 if test -z "$CC"; then
1996 # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 $as_echo_n "checking for $ac_word... " >&6; }
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 $as_echo_n "(cached) " >&6
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015 ac_prog_rejected=yes
2019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 if test $ac_prog_rejected = yes; then
2027 # We found a bogon in the path, so make sure we never use it.
2028 set dummy $ac_cv_prog_CC
2030 if test $# != 0; then
2031 # We chose a different compiler from the bogus one.
2032 # However, it has the same basename, so the bogon will be chosen
2033 # first if we set CC to just the basename; use the full file name.
2035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2041 if test -n "$CC"; then
2042 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2045 { $as_echo "$as_me:$LINENO: result: no" >&5
2046 $as_echo "no" >&6; }
2051 if test -z "$CC"; then
2052 if test -n "$ac_tool_prefix"; then
2053 for ac_prog in cl.exe
2055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 $as_echo_n "checking for $ac_word... " >&6; }
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060 $as_echo_n "(cached) " >&6
2062 if test -n "$CC"; then
2063 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 if test -n "$CC"; then
2084 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2085 $as_echo "$CC" >&6; }
2087 { $as_echo "$as_me:$LINENO: result: no" >&5
2088 $as_echo "no" >&6; }
2092 test -n "$CC" && break
2095 if test -z "$CC"; then
2097 for ac_prog in cl.exe
2099 # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy $ac_prog; ac_word=$2
2101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 $as_echo_n "checking for $ac_word... " >&6; }
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104 $as_echo_n "(cached) " >&6
2106 if test -n "$ac_ct_CC"; then
2107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2116 ac_cv_prog_ac_ct_CC="$ac_prog"
2117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 $as_echo "$ac_ct_CC" >&6; }
2131 { $as_echo "$as_me:$LINENO: result: no" >&5
2132 $as_echo "no" >&6; }
2136 test -n "$ac_ct_CC" && break
2139 if test "x$ac_ct_CC" = x; then
2142 case $cross_compiling:$ac_tool_warned in
2144 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2146 ac_tool_warned=yes ;;
2155 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2158 See \`config.log' for more details." >&5
2159 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }; }
2163 # Provide some information about the compiler.
2164 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2167 { (ac_try="$ac_compiler --version >&5"
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2173 $as_echo "$ac_try_echo") >&5
2174 (eval "$ac_compiler --version >&5") 2>&5
2176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178 { (ac_try="$ac_compiler -v >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2184 $as_echo "$ac_try_echo") >&5
2185 (eval "$ac_compiler -v >&5") 2>&5
2187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2189 { (ac_try="$ac_compiler -V >&5"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2195 $as_echo "$ac_try_echo") >&5
2196 (eval "$ac_compiler -V >&5") 2>&5
2198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2201 cat >conftest.$ac_ext <<_ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2216 ac_clean_files_save=$ac_clean_files
2217 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2221 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 $as_echo_n "checking for C compiler default output file name... " >&6; }
2223 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225 # The possible output files:
2226 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2229 for ac_file in $ac_files
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2233 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2238 if { (ac_try="$ac_link_default"
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2244 $as_echo "$ac_try_echo") >&5
2245 (eval "$ac_link_default") 2>&5
2247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2250 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2251 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2252 # so that the user can short-circuit this test for compilers unknown to
2254 for ac_file in $ac_files ''
2256 test -f "$ac_file" || continue
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2261 # We found the default executable, but exeext='' is most
2265 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2267 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269 # We set ac_cv_exeext here because the later test for it is not
2270 # safe: cross compilers may not add the suffix if given an `-o'
2271 # argument, so we may need to know it at that point already.
2272 # Even if this section looks crufty: it has the advantage of
2279 test "$ac_cv_exeext" = no && ac_cv_exeext=
2285 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2286 $as_echo "$ac_file" >&6; }
2287 if test -z "$ac_file"; then
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2294 See \`config.log' for more details." >&5
2295 $as_echo "$as_me: error: C compiler cannot create executables
2296 See \`config.log' for more details." >&2;}
2297 { (exit 77); exit 77; }; }; }
2300 ac_exeext=$ac_cv_exeext
2302 # Check that the compiler produces executables we can run. If not, either
2303 # the compiler is broken, or we cross compile.
2304 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2305 $as_echo_n "checking whether the C compiler works... " >&6; }
2306 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2307 # If not cross compiling, check that we can run a simple program.
2308 if test "$cross_compiling" != yes; then
2309 if { ac_try='./$ac_file'
2310 { (case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2315 $as_echo "$ac_try_echo") >&5
2316 (eval "$ac_try") 2>&5
2318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 if test "$cross_compiling" = maybe; then
2325 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&5
2330 $as_echo "$as_me: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }; }
2337 { $as_echo "$as_me:$LINENO: result: yes" >&5
2338 $as_echo "yes" >&6; }
2340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2341 ac_clean_files=$ac_clean_files_save
2342 # Check that the compiler produces executables we can run. If not, either
2343 # the compiler is broken, or we cross compile.
2344 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345 $as_echo_n "checking whether we are cross compiling... " >&6; }
2346 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347 $as_echo "$cross_compiling" >&6; }
2349 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350 $as_echo_n "checking for suffix of executables... " >&6; }
2351 if { (ac_try="$ac_link"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2357 $as_echo "$ac_try_echo") >&5
2358 (eval "$ac_link") 2>&5
2360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; then
2362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2364 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 for ac_file in conftest.exe conftest conftest.*; do
2367 test -f "$ac_file" || continue
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }; }
2385 rm -f conftest$ac_cv_exeext
2386 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 $as_echo "$ac_cv_exeext" >&6; }
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2392 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 $as_echo_n "checking for suffix of object files... " >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395 $as_echo_n "(cached) " >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2419 $as_echo "$ac_try_echo") >&5
2420 (eval "$ac_compile") 2>&5
2422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 for ac_file in conftest.o conftest.obj conftest.*; do
2425 test -f "$ac_file" || continue;
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2433 $as_echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2439 See \`config.log' for more details." >&5
2440 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2441 See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }; }
2445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2447 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2448 $as_echo "$ac_cv_objext" >&6; }
2449 OBJEXT=$ac_cv_objext
2451 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2453 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2454 $as_echo_n "(cached) " >&6
2456 cat >conftest.$ac_ext <<_ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2474 rm -f conftest.$ac_objext
2475 if { (ac_try="$ac_compile"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2481 $as_echo "$ac_try_echo") >&5
2482 (eval "$ac_compile") 2>conftest.er1
2484 grep -v '^ *+' conftest.er1 >conftest.err
2486 cat conftest.err >&5
2487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } && {
2489 test -z "$ac_c_werror_flag" ||
2490 test ! -s conftest.err
2491 } && test -s conftest.$ac_objext; then
2494 $as_echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2504 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2505 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2506 if test $ac_compiler_gnu = yes; then
2511 ac_test_CFLAGS=${CFLAGS+set}
2512 ac_save_CFLAGS=$CFLAGS
2513 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2514 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2515 if test "${ac_cv_prog_cc_g+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 ac_save_c_werror_flag=$ac_c_werror_flag
2519 ac_c_werror_flag=yes
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2544 $as_echo "$ac_try_echo") >&5
2545 (eval "$ac_compile") 2>conftest.er1
2547 grep -v '^ *+' conftest.er1 >conftest.err
2549 cat conftest.err >&5
2550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } && {
2552 test -z "$ac_c_werror_flag" ||
2553 test ! -s conftest.err
2554 } && test -s conftest.$ac_objext; then
2557 $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 cat >conftest.$ac_ext <<_ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2576 rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2583 $as_echo "$ac_try_echo") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_c_werror_flag=$ac_save_c_werror_flag
2601 cat >conftest.$ac_ext <<_ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2623 $as_echo "$ac_try_echo") >&5
2624 (eval "$ac_compile") 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } && {
2631 test -z "$ac_c_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest.$ac_objext; then
2636 $as_echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_c_werror_flag=$ac_save_c_werror_flag
2651 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 $as_echo "$ac_cv_prog_cc_g" >&6; }
2653 if test "$ac_test_CFLAGS" = set; then
2654 CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656 if test "$GCC" = yes; then
2662 if test "$GCC" = yes; then
2668 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2669 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2670 if test "${ac_cv_prog_cc_c89+set}" = set; then
2671 $as_echo_n "(cached) " >&6
2673 ac_cv_prog_cc_c89=no
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2699 s = g (p, va_arg (v,int));
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2705 function prototypes and stuff, but not '\xHH' hex character constants.
2706 These don't provoke an error unfortunately, instead are silently treated
2707 as 'x'. The following induces an error, until -std is added to get
2708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2709 array size at least. It's necessary to write '\x00'==0 to get something
2710 that's true only with -std. */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2714 inside strings and character constants. */
2716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 CC="$ac_save_CC $ac_arg"
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2743 $as_echo "$ac_try_echo") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2754 ac_cv_prog_cc_c89=$ac_arg
2756 $as_echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2762 rm -f core conftest.err conftest.$ac_objext
2763 test "x$ac_cv_prog_cc_c89" != "xno" && break
2765 rm -f conftest.$ac_ext
2770 case "x$ac_cv_prog_cc_c89" in
2772 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2773 $as_echo "none needed" >&6; } ;;
2775 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2776 $as_echo "unsupported" >&6; } ;;
2778 CC="$CC $ac_cv_prog_cc_c89"
2779 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2802 if test -z "$CPP"; then
2803 if test "${ac_cv_prog_CPP+set}" = set; then
2804 $as_echo_n "(cached) " >&6
2806 # Double quotes because CPP needs to be expanded
2807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2810 for ac_c_preproc_warn_flag in '' yes
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2825 # include <limits.h>
2827 # include <assert.h>
2831 if { (ac_try="$ac_cpp conftest.$ac_ext"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2837 $as_echo "$ac_try_echo") >&5
2838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } >/dev/null && {
2845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2850 $as_echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # Broken: fails on valid input.
2857 rm -f conftest.err conftest.$ac_ext
2859 # OK, works on sane cases. Now check whether nonexistent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #include <ac_nonexistent.h>
2869 if { (ac_try="$ac_cpp conftest.$ac_ext"
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2875 $as_echo "$ac_try_echo") >&5
2876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } >/dev/null && {
2883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2886 # Broken: success on invalid input.
2889 $as_echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2914 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2915 $as_echo "$CPP" >&6; }
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (ac_try="$ac_cpp conftest.$ac_ext"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944 $as_echo "$ac_try_echo") >&5
2945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } >/dev/null && {
2952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2957 $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether nonexistent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if { (ac_try="$ac_cpp conftest.$ac_ext"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982 $as_echo "$ac_try_echo") >&5
2983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev/null && {
2990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2993 # Broken: success on invalid input.
2996 $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3012 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&5
3016 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }; }
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3029 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3030 if test "${ac_cv_path_GREP+set}" = set; then
3031 $as_echo_n "(cached) " >&6
3033 if test -z "$GREP"; then
3034 ac_path_GREP_found=false
3035 # Loop through the user's path and test for each of PROGNAME-LIST
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3040 test -z "$as_dir" && as_dir=.
3041 for ac_prog in grep ggrep; do
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3044 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3045 # Check for GNU ac_path_GREP and select it if it is found.
3046 # Check for GNU $ac_path_GREP
3047 case `"$ac_path_GREP" --version 2>&1` in
3049 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3052 $as_echo_n 0123456789 >"conftest.in"
3055 cat "conftest.in" "conftest.in" >"conftest.tmp"
3056 mv "conftest.tmp" "conftest.in"
3057 cp "conftest.in" "conftest.nl"
3058 $as_echo 'GREP' >> "conftest.nl"
3059 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3061 ac_count=`expr $ac_count + 1`
3062 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3063 # Best one so far, save it but keep looking for a better one
3064 ac_cv_path_GREP="$ac_path_GREP"
3065 ac_path_GREP_max=$ac_count
3067 # 10*(2^10) chars as input seems more than enough
3068 test $ac_count -gt 10 && break
3070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3073 $ac_path_GREP_found && break 3
3078 if test -z "$ac_cv_path_GREP"; then
3079 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3080 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3081 { (exit 1); exit 1; }; }
3084 ac_cv_path_GREP=$GREP
3088 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3089 $as_echo "$ac_cv_path_GREP" >&6; }
3090 GREP="$ac_cv_path_GREP"
3093 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3094 $as_echo_n "checking for egrep... " >&6; }
3095 if test "${ac_cv_path_EGREP+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3098 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3099 then ac_cv_path_EGREP="$GREP -E"
3101 if test -z "$EGREP"; then
3102 ac_path_EGREP_found=false
3103 # Loop through the user's path and test for each of PROGNAME-LIST
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3108 test -z "$as_dir" && as_dir=.
3109 for ac_prog in egrep; do
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3113 # Check for GNU ac_path_EGREP and select it if it is found.
3114 # Check for GNU $ac_path_EGREP
3115 case `"$ac_path_EGREP" --version 2>&1` in
3117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3120 $as_echo_n 0123456789 >"conftest.in"
3123 cat "conftest.in" "conftest.in" >"conftest.tmp"
3124 mv "conftest.tmp" "conftest.in"
3125 cp "conftest.in" "conftest.nl"
3126 $as_echo 'EGREP' >> "conftest.nl"
3127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3129 ac_count=`expr $ac_count + 1`
3130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3131 # Best one so far, save it but keep looking for a better one
3132 ac_cv_path_EGREP="$ac_path_EGREP"
3133 ac_path_EGREP_max=$ac_count
3135 # 10*(2^10) chars as input seems more than enough
3136 test $ac_count -gt 10 && break
3138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3141 $ac_path_EGREP_found && break 3
3146 if test -z "$ac_cv_path_EGREP"; then
3147 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3148 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3149 { (exit 1); exit 1; }; }
3152 ac_cv_path_EGREP=$EGREP
3157 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3158 $as_echo "$ac_cv_path_EGREP" >&6; }
3159 EGREP="$ac_cv_path_EGREP"
3162 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3163 $as_echo_n "checking for ANSI C header files... " >&6; }
3164 if test "${ac_cv_header_stdc+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3167 cat >conftest.$ac_ext <<_ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } && {
3201 test -z "$ac_c_werror_flag" ||
3202 test ! -s conftest.err
3203 } && test -s conftest.$ac_objext; then
3204 ac_cv_header_stdc=yes
3206 $as_echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 ac_cv_header_stdc=no
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 if test $ac_cv_header_stdc = yes; then
3215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226 $EGREP "memchr" >/dev/null 2>&1; then
3229 ac_cv_header_stdc=no
3235 if test $ac_cv_header_stdc = yes; then
3236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3247 $EGREP "free" >/dev/null 2>&1; then
3250 ac_cv_header_stdc=no
3256 if test $ac_cv_header_stdc = yes; then
3257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3258 if test "$cross_compiling" = yes; then
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3269 #if ((' ' & 0x0FF) == 0x020)
3270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3273 # define ISLOWER(c) \
3274 (('a' <= (c) && (c) <= 'i') \
3275 || ('j' <= (c) && (c) <= 'r') \
3276 || ('s' <= (c) && (c) <= 'z'))
3277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3285 for (i = 0; i < 256; i++)
3286 if (XOR (islower (i), ISLOWER (i))
3287 || toupper (i) != TOUPPER (i))
3292 rm -f conftest$ac_exeext
3293 if { (ac_try="$ac_link"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300 (eval "$ac_link") 2>&5
3302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3304 { (case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_try") 2>&5
3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3316 $as_echo "$as_me: program exited with status $ac_status" >&5
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3321 ac_cv_header_stdc=no
3323 rm -rf conftest.dSYM
3324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3331 $as_echo "$ac_cv_header_stdc" >&6; }
3332 if test $ac_cv_header_stdc = yes; then
3334 cat >>confdefs.h <<\_ACEOF
3335 #define STDC_HEADERS 1
3340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3351 inttypes.h stdint.h unistd.h
3353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3355 $as_echo_n "checking for $ac_header... " >&6; }
3356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3357 $as_echo_n "(cached) " >&6
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 $ac_includes_default
3367 #include <$ac_header>
3369 rm -f conftest.$ac_objext
3370 if { (ac_try="$ac_compile"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376 $as_echo "$ac_try_echo") >&5
3377 (eval "$ac_compile") 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } && {
3384 test -z "$ac_c_werror_flag" ||
3385 test ! -s conftest.err
3386 } && test -s conftest.$ac_objext; then
3387 eval "$as_ac_Header=yes"
3389 $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 eval "$as_ac_Header=no"
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 ac_res=`eval 'as_val=${'$as_ac_Header'}
3398 $as_echo "$as_val"'`
3399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3400 $as_echo "$ac_res" >&6; }
3401 as_val=`eval 'as_val=${'$as_ac_Header'}
3402 $as_echo "$as_val"'`
3403 if test "x$as_val" = x""yes; then
3404 cat >>confdefs.h <<_ACEOF
3405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3414 if test "${ac_cv_header_minix_config_h+set}" = set; then
3415 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3416 $as_echo_n "checking for minix/config.h... " >&6; }
3417 if test "${ac_cv_header_minix_config_h+set}" = set; then
3418 $as_echo_n "(cached) " >&6
3420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3421 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3423 # Is the header compilable?
3424 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3425 $as_echo_n "checking minix/config.h usability... " >&6; }
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 $ac_includes_default
3433 #include <minix/config.h>
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3453 ac_header_compiler=yes
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 ac_header_compiler=no
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3463 $as_echo "$ac_header_compiler" >&6; }
3465 # Is the header present?
3466 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3467 $as_echo_n "checking minix/config.h presence... " >&6; }
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #include <minix/config.h>
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null && {
3490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3493 ac_header_preproc=yes
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 ac_header_preproc=no
3501 rm -f conftest.err conftest.$ac_ext
3502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3503 $as_echo "$ac_header_preproc" >&6; }
3505 # So? What about this header?
3506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3508 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3509 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3510 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3511 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3512 ac_header_preproc=yes
3515 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3516 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3517 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3518 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3519 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3520 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3521 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3522 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3523 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3524 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3525 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3526 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3528 ## ----------------------------------- ##
3529 ## Report this to andreas@eversberg.eu ##
3530 ## ----------------------------------- ##
3532 ) | sed "s/^/$as_me: WARNING: /" >&2
3535 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3536 $as_echo_n "checking for minix/config.h... " >&6; }
3537 if test "${ac_cv_header_minix_config_h+set}" = set; then
3538 $as_echo_n "(cached) " >&6
3540 ac_cv_header_minix_config_h=$ac_header_preproc
3542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3543 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3546 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3553 if test "$MINIX" = yes; then
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _POSIX_SOURCE 1
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _POSIX_1_SOURCE 2
3565 cat >>confdefs.h <<\_ACEOF
3573 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3574 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3575 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3576 $as_echo_n "(cached) " >&6
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3585 # define __EXTENSIONS__ 1
3586 $ac_includes_default
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603 (eval "$ac_compile") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest.$ac_objext; then
3613 ac_cv_safe_to_define___extensions__=yes
3615 $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 ac_cv_safe_to_define___extensions__=no
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3625 test $ac_cv_safe_to_define___extensions__ = yes &&
3626 cat >>confdefs.h <<\_ACEOF
3627 #define __EXTENSIONS__ 1
3630 cat >>confdefs.h <<\_ACEOF
3631 #define _ALL_SOURCE 1
3634 cat >>confdefs.h <<\_ACEOF
3635 #define _GNU_SOURCE 1
3638 cat >>confdefs.h <<\_ACEOF
3639 #define _POSIX_PTHREAD_SEMANTICS 1
3642 cat >>confdefs.h <<\_ACEOF
3643 #define _TANDEM_SOURCE 1
3647 # AC_USE_SYSTEM_EXTENSIONS
3648 am__api_version="1.9"
3650 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3651 if test -f "$ac_dir/install-sh"; then
3653 ac_install_sh="$ac_aux_dir/install-sh -c"
3655 elif test -f "$ac_dir/install.sh"; then
3657 ac_install_sh="$ac_aux_dir/install.sh -c"
3659 elif test -f "$ac_dir/shtool"; then
3661 ac_install_sh="$ac_aux_dir/shtool install -c"
3665 if test -z "$ac_aux_dir"; then
3666 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3667 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3668 { (exit 1); exit 1; }; }
3671 # These three variables are undocumented and unsupported,
3672 # and are intended to be withdrawn in a future Autoconf release.
3673 # They can cause serious problems if a builder's source tree is in a directory
3674 # whose full name contains unusual characters.
3675 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3676 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3677 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3680 # Find a good install program. We prefer a C program (faster),
3681 # so one script is as good as another. But avoid the broken or
3682 # incompatible versions:
3683 # SysV /etc/install, /usr/sbin/install
3684 # SunOS /usr/etc/install
3685 # IRIX /sbin/install
3687 # AmigaOS /C/install, which installs bootblocks on floppy discs
3688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3691 # OS/2's system install, which has a completely different semantic
3692 # ./install, which can be erroneously created by make from ./install.sh.
3693 # Reject install programs that cannot install multiple files.
3694 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3695 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3696 if test -z "$INSTALL"; then
3697 if test "${ac_cv_path_install+set}" = set; then
3698 $as_echo_n "(cached) " >&6
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 # Account for people who put trailing slashes in PATH elements.
3707 ./ | .// | /cC/* | \
3708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3712 # OSF1 and SCO ODT 3.0 have their own names for install.
3713 # Don't use installbsd from OSF since it installs stuff as root
3715 for ac_prog in ginstall scoinst install; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3718 if test $ac_prog = install &&
3719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # AIX install. It has an incompatible calling convention.
3722 elif test $ac_prog = install &&
3723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724 # program-specific install script used by HP pwplus--don't use.
3727 rm -rf conftest.one conftest.two conftest.dir
3728 echo one > conftest.one
3729 echo two > conftest.two
3731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3732 test -s conftest.one && test -s conftest.two &&
3733 test -s conftest.dir/conftest.one &&
3734 test -s conftest.dir/conftest.two
3736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3749 rm -rf conftest.one conftest.two conftest.dir
3752 if test "${ac_cv_path_install+set}" = set; then
3753 INSTALL=$ac_cv_path_install
3755 # As a last resort, use the slow shell script. Don't cache a
3756 # value for INSTALL within a source directory, because that will
3757 # break other packages using the cache if that directory is
3758 # removed, or if the value is a relative name.
3759 INSTALL=$ac_install_sh
3762 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3763 $as_echo "$INSTALL" >&6; }
3765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3766 # It thinks the first close brace ends the variable substitution.
3767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3773 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3774 $as_echo_n "checking whether build environment is sane... " >&6; }
3777 echo timestamp > conftest.file
3778 # Do `set' in a subshell so we don't clobber the current shell's
3779 # arguments. Must try -L first in case configure is actually a
3780 # symlink; some systems play weird games with the mod time of symlinks
3781 # (eg FreeBSD returns the mod time of the symlink's containing
3784 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3785 if test "$*" = "X"; then
3787 set X `ls -t $srcdir/configure conftest.file`
3790 if test "$*" != "X $srcdir/configure conftest.file" \
3791 && test "$*" != "X conftest.file $srcdir/configure"; then
3793 # If neither matched, then we have a broken ls. This can happen
3794 # if, for instance, CONFIG_SHELL is bash and it inherits a
3795 # broken ls alias from the environment. This has actually
3796 # happened. Such a system could not be considered "sane".
3797 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3798 alias in your environment" >&5
3799 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3800 alias in your environment" >&2;}
3801 { (exit 1); exit 1; }; }
3804 test "$2" = conftest.file
3810 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3811 Check your system clock" >&5
3812 $as_echo "$as_me: error: newly created file is older than distributed files!
3813 Check your system clock" >&2;}
3814 { (exit 1); exit 1; }; }
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5
3817 $as_echo "yes" >&6; }
3818 test "$program_prefix" != NONE &&
3819 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3820 # Use a double $ so make ignores it.
3821 test "$program_suffix" != NONE &&
3822 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3823 # Double any \ or $.
3824 # By default was `s,x,x', remove it if useless.
3825 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3826 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3828 # expand $ac_aux_dir to an absolute path
3829 am_aux_dir=`cd $ac_aux_dir && pwd`
3831 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3832 # Use eval to expand $SHELL
3833 if eval "$MISSING --run true"; then
3834 am_missing_run="$MISSING --run "
3837 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3838 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3841 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3842 # We used to keeping the `.' as first argument, in order to
3843 # allow $(mkdir_p) to be used without argument. As in
3844 # $(mkdir_p) $(somedir)
3845 # where $(somedir) is conditionally defined. However this is wrong
3847 # 1. if the package is installed by a user who cannot write `.'
3848 # make install will fail,
3849 # 2. the above comment should most certainly read
3850 # $(mkdir_p) $(DESTDIR)$(somedir)
3851 # so it does not work when $(somedir) is undefined and
3852 # $(DESTDIR) is not.
3853 # To support the latter case, we have to write
3854 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3855 # so the `.' trick is pointless.
3856 mkdir_p='mkdir -p --'
3858 # On NextStep and OpenStep, the `mkdir' command does not
3859 # recognize any option. It will interpret all options as
3860 # directories to create, and then abort because `.' already
3862 for d in ./-p ./--version;
3864 test -d $d && rmdir $d
3866 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3867 if test -f "$ac_aux_dir/mkinstalldirs"; then
3868 mkdir_p='$(mkinstalldirs)'
3870 mkdir_p='$(install_sh) -d'
3874 for ac_prog in gawk mawk nawk awk
3876 # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_AWK+set}" = set; then
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$AWK"; then
3884 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_AWK="$ac_prog"
3894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 if test -n "$AWK"; then
3905 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3906 $as_echo "$AWK" >&6; }
3908 { $as_echo "$as_me:$LINENO: result: no" >&5
3909 $as_echo "no" >&6; }
3913 test -n "$AWK" && break
3916 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3917 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3919 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3920 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3921 $as_echo_n "(cached) " >&6
3923 cat >conftest.make <<\_ACEOF
3926 @echo '@@@%%%=$(MAKE)=@@@%%%'
3928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3929 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3931 eval ac_cv_prog_make_${ac_make}_set=yes;;
3933 eval ac_cv_prog_make_${ac_make}_set=no;;
3937 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3938 { $as_echo "$as_me:$LINENO: result: yes" >&5
3939 $as_echo "yes" >&6; }
3942 { $as_echo "$as_me:$LINENO: result: no" >&5
3943 $as_echo "no" >&6; }
3944 SET_MAKE="MAKE=${MAKE-make}"
3947 rm -rf .tst 2>/dev/null
3948 mkdir .tst 2>/dev/null
3949 if test -d .tst; then
3954 rmdir .tst 2>/dev/null
3956 DEPDIR="${am__leading_dot}deps"
3958 ac_config_commands="$ac_config_commands depfiles"
3961 am_make=${MAKE-make}
3962 cat > confinc << 'END'
3967 # If we don't find an include directive, just comment out the code.
3968 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3969 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3973 # First try GNU make style include.
3974 echo "include confinc" > confmf
3975 # We grep out `Entering directory' and `Leaving directory'
3976 # messages which can occur if `w' ends up in MAKEFLAGS.
3977 # In particular we don't look at `^make:' because GNU make might
3978 # be invoked under some other name (usually "gmake"), in which
3979 # case it prints its new name instead of `make'.
3980 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3985 # Now try BSD make style include.
3986 if test "$am__include" = "#"; then
3987 echo '.include "confinc"' > confmf
3988 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3989 am__include=.include
3996 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3997 $as_echo "$_am_result" >&6; }
3998 rm -f confinc confmf
4000 # Check whether --enable-dependency-tracking was given.
4001 if test "${enable_dependency_tracking+set}" = set; then
4002 enableval=$enable_dependency_tracking;
4005 if test "x$enable_dependency_tracking" != xno; then
4006 am_depcomp="$ac_aux_dir/depcomp"
4011 if test "x$enable_dependency_tracking" != xno; then
4021 # test to see if srcdir already configured
4022 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4023 test -f $srcdir/config.status; then
4024 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4025 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4026 { (exit 1); exit 1; }; }
4029 # test whether we have cygpath
4030 if test -z "$CYGPATH_W"; then
4031 if (cygpath --version) >/dev/null 2>/dev/null; then
4032 CYGPATH_W='cygpath -w'
4039 # Define the identity of the package.
4044 cat >>confdefs.h <<_ACEOF
4045 #define PACKAGE "$PACKAGE"
4049 cat >>confdefs.h <<_ACEOF
4050 #define VERSION "$VERSION"
4053 # Some tools Automake needs.
4055 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4058 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4061 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4064 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4067 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4069 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4071 # Installed binaries are usually stripped using `strip' when the user
4072 # run `make install-strip'. However `strip' might not be the right
4073 # tool to use in cross-compilation environments, therefore Automake
4074 # will honor the `STRIP' environment variable to overrule this program.
4075 if test "$cross_compiling" != no; then
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}strip; ac_word=$2
4079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if test "${ac_cv_prog_STRIP+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4084 if test -n "$STRIP"; then
4085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 STRIP=$ac_cv_prog_STRIP
4105 if test -n "$STRIP"; then
4106 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4107 $as_echo "$STRIP" >&6; }
4109 { $as_echo "$as_me:$LINENO: result: no" >&5
4110 $as_echo "no" >&6; }
4115 if test -z "$ac_cv_prog_STRIP"; then
4117 # Extract the first word of "strip", so it can be a program name with args.
4118 set dummy strip; ac_word=$2
4119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4122 $as_echo_n "(cached) " >&6
4124 if test -n "$ac_ct_STRIP"; then
4125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_ac_ct_STRIP="strip"
4135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4147 $as_echo "$ac_ct_STRIP" >&6; }
4149 { $as_echo "$as_me:$LINENO: result: no" >&5
4150 $as_echo "no" >&6; }
4153 if test "x$ac_ct_STRIP" = x; then
4156 case $cross_compiling:$ac_tool_warned in
4158 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4165 STRIP="$ac_cv_prog_STRIP"
4169 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4171 # We need awk for the "check" target. The system "awk" is bad on
4173 # Always define AMTAR for backward compatibility.
4175 AMTAR=${AMTAR-"${am_missing_run}tar"}
4177 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4182 depcc="$CC" am_compiler_list=
4184 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4185 $as_echo_n "checking dependency style of $depcc... " >&6; }
4186 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4187 $as_echo_n "(cached) " >&6
4189 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4190 # We make a subdir and do the tests there. Otherwise we can end up
4191 # making bogus files that we don't know about and never remove. For
4192 # instance it was reported that on HP-UX the gcc test will end up
4193 # making a dummy file named `D' -- because `-MD' means `put the output
4196 # Copy depcomp to subdir because otherwise we won't find it if we're
4197 # using a relative directory.
4198 cp "$am_depcomp" conftest.dir
4200 # We will build objects and dependencies in a subdirectory because
4201 # it helps to detect inapplicable dependency modes. For instance
4202 # both Tru64's cc and ICC support -MD to output dependencies as a
4203 # side effect of compilation, but ICC will put the dependencies in
4204 # the current directory while Tru64 will put them in the object
4208 am_cv_CC_dependencies_compiler_type=none
4209 if test "$am_compiler_list" = ""; then
4210 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4212 for depmode in $am_compiler_list; do
4213 # Setup a source with many dependencies, because some compilers
4214 # like to wrap large dependency lists on column 80 (with \), and
4215 # we should not choose a depcomp mode which is confused by this.
4217 # We need to recreate these files for each test, as the compiler may
4218 # overwrite some of them when testing with obscure command lines.
4219 # This happens at least with the AIX C compiler.
4221 for i in 1 2 3 4 5 6; do
4222 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4224 # Solaris 8's {/usr,}/bin/sh.
4225 touch sub/conftst$i.h
4227 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4231 # after this tag, mechanisms are not by side-effect, so they'll
4232 # only be used when explicitly requested
4233 if test "x$enable_dependency_tracking" = xyes; then
4241 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4242 # mode. It turns out that the SunPro C++ compiler does not properly
4243 # handle `-M -o', and we need to detect this.
4244 if depmode=$depmode \
4245 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4246 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4247 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4248 >/dev/null 2>conftest.err &&
4249 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4250 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4251 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4252 # icc doesn't choke on unknown options, it will just issue warnings
4253 # or remarks (even with -Werror). So we grep stderr for any message
4254 # that says an option was ignored or not supported.
4255 # When given -MP, icc 7.0 and 7.1 complain thusly:
4256 # icc: Command line warning: ignoring option '-M'; no argument required
4257 # The diagnosis changed in icc 8.0:
4258 # icc: Command line remark: option '-MP' not supported
4259 if (grep 'ignoring option' conftest.err ||
4260 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4261 am_cv_CC_dependencies_compiler_type=$depmode
4270 am_cv_CC_dependencies_compiler_type=none
4274 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4281 test "x$enable_dependency_tracking" != xno \
4282 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4284 am__fastdepCC_FALSE='#'
4286 am__fastdepCC_TRUE='#'
4287 am__fastdepCC_FALSE=
4295 # Checks for programs.
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4303 # On Suns, sometimes $CPP names a directory.
4304 if test -n "$CPP" && test -d "$CPP"; then
4307 if test -z "$CPP"; then
4308 if test "${ac_cv_prog_CPP+set}" = set; then
4309 $as_echo_n "(cached) " >&6
4311 # Double quotes because CPP needs to be expanded
4312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4330 # include <limits.h>
4332 # include <assert.h>
4336 if { (ac_try="$ac_cpp conftest.$ac_ext"
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null && {
4350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4355 $as_echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 # Broken: fails on valid input.
4362 rm -f conftest.err conftest.$ac_ext
4364 # OK, works on sane cases. Now check whether nonexistent headers
4365 # can be detected and how.
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #include <ac_nonexistent.h>
4374 if { (ac_try="$ac_cpp conftest.$ac_ext"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4380 $as_echo "$ac_try_echo") >&5
4381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null && {
4388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4389 test ! -s conftest.err
4391 # Broken: success on invalid input.
4394 $as_echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 # Passes both tests.
4402 rm -f conftest.err conftest.$ac_ext
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok; then
4419 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4420 $as_echo "$CPP" >&6; }
4422 for ac_c_preproc_warn_flag in '' yes
4424 # Use a header file that comes with gcc, so configuring glibc
4425 # with a fresh cross-compiler works.
4426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4427 # <limits.h> exists even on freestanding compilers.
4428 # On the NeXT, cc -E runs the code through the compiler's parser,
4429 # not just through cpp. "Syntax error" is here to catch this case.
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4437 # include <limits.h>
4439 # include <assert.h>
4443 if { (ac_try="$ac_cpp conftest.$ac_ext"
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4449 $as_echo "$ac_try_echo") >&5
4450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } >/dev/null && {
4457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4458 test ! -s conftest.err
4462 $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 # Broken: fails on valid input.
4469 rm -f conftest.err conftest.$ac_ext
4471 # OK, works on sane cases. Now check whether nonexistent headers
4472 # can be detected and how.
4473 cat >conftest.$ac_ext <<_ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 #include <ac_nonexistent.h>
4481 if { (ac_try="$ac_cpp conftest.$ac_ext"
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4487 $as_echo "$ac_try_echo") >&5
4488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null && {
4495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4498 # Broken: success on invalid input.
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 # Passes both tests.
4509 rm -f conftest.err conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then
4517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." >&5
4521 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4522 See \`config.log' for more details." >&2;}
4523 { (exit 1); exit 1; }; }; }
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 ac_cpp='$CXXCPP $CPPFLAGS'
4534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4537 if test -z "$CXX"; then
4538 if test -n "$CCC"; then
4541 if test -n "$ac_tool_prefix"; then
4542 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_CXX+set}" = set; then
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$CXX"; then
4552 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 if test -n "$CXX"; then
4573 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4574 $as_echo "$CXX" >&6; }
4576 { $as_echo "$as_me:$LINENO: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$CXX" && break
4584 if test -z "$CXX"; then
4586 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4593 $as_echo_n "(cached) " >&6
4595 if test -n "$ac_ct_CXX"; then
4596 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_ac_ct_CXX="$ac_prog"
4606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4616 if test -n "$ac_ct_CXX"; then
4617 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4618 $as_echo "$ac_ct_CXX" >&6; }
4620 { $as_echo "$as_me:$LINENO: result: no" >&5
4621 $as_echo "no" >&6; }
4625 test -n "$ac_ct_CXX" && break
4628 if test "x$ac_ct_CXX" = x; then
4631 case $cross_compiling:$ac_tool_warned in
4633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635 ac_tool_warned=yes ;;
4643 # Provide some information about the compiler.
4644 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4647 { (ac_try="$ac_compiler --version >&5"
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4653 $as_echo "$ac_try_echo") >&5
4654 (eval "$ac_compiler --version >&5") 2>&5
4656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }
4658 { (ac_try="$ac_compiler -v >&5"
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664 $as_echo "$ac_try_echo") >&5
4665 (eval "$ac_compiler -v >&5") 2>&5
4667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }
4669 { (ac_try="$ac_compiler -V >&5"
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4675 $as_echo "$ac_try_echo") >&5
4676 (eval "$ac_compiler -V >&5") 2>&5
4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }
4681 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4682 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4683 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4684 $as_echo_n "(cached) " >&6
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4714 grep -v '^ *+' conftest.er1 >conftest.err
4716 cat conftest.err >&5
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_cxx_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4724 $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4734 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4735 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4736 if test $ac_compiler_gnu = yes; then
4741 ac_test_CXXFLAGS=${CXXFLAGS+set}
4742 ac_save_CXXFLAGS=$CXXFLAGS
4743 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4744 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4745 if test "${ac_cv_prog_cxx_g+set}" = set; then
4746 $as_echo_n "(cached) " >&6
4748 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4749 ac_cxx_werror_flag=yes
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_compile") 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_cxx_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
4785 ac_cv_prog_cxx_g=yes
4787 $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4813 $as_echo "$ac_try_echo") >&5
4814 (eval "$ac_compile") 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && {
4821 test -z "$ac_cxx_werror_flag" ||
4822 test ! -s conftest.err
4823 } && test -s conftest.$ac_objext; then
4826 $as_echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_cxx_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4864 ac_cv_prog_cxx_g=yes
4866 $as_echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4881 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4882 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4883 if test "$ac_test_CXXFLAGS" = set; then
4884 CXXFLAGS=$ac_save_CXXFLAGS
4885 elif test $ac_cv_prog_cxx_g = yes; then
4886 if test "$GXX" = yes; then
4892 if test "$GXX" = yes; then
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904 depcc="$CXX" am_compiler_list=
4906 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4907 $as_echo_n "checking dependency style of $depcc... " >&6; }
4908 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4909 $as_echo_n "(cached) " >&6
4911 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4912 # We make a subdir and do the tests there. Otherwise we can end up
4913 # making bogus files that we don't know about and never remove. For
4914 # instance it was reported that on HP-UX the gcc test will end up
4915 # making a dummy file named `D' -- because `-MD' means `put the output
4918 # Copy depcomp to subdir because otherwise we won't find it if we're
4919 # using a relative directory.
4920 cp "$am_depcomp" conftest.dir
4922 # We will build objects and dependencies in a subdirectory because
4923 # it helps to detect inapplicable dependency modes. For instance
4924 # both Tru64's cc and ICC support -MD to output dependencies as a
4925 # side effect of compilation, but ICC will put the dependencies in
4926 # the current directory while Tru64 will put them in the object
4930 am_cv_CXX_dependencies_compiler_type=none
4931 if test "$am_compiler_list" = ""; then
4932 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4934 for depmode in $am_compiler_list; do
4935 # Setup a source with many dependencies, because some compilers
4936 # like to wrap large dependency lists on column 80 (with \), and
4937 # we should not choose a depcomp mode which is confused by this.
4939 # We need to recreate these files for each test, as the compiler may
4940 # overwrite some of them when testing with obscure command lines.
4941 # This happens at least with the AIX C compiler.
4943 for i in 1 2 3 4 5 6; do
4944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4945 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4946 # Solaris 8's {/usr,}/bin/sh.
4947 touch sub/conftst$i.h
4949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4953 # after this tag, mechanisms are not by side-effect, so they'll
4954 # only be used when explicitly requested
4955 if test "x$enable_dependency_tracking" = xyes; then
4963 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4964 # mode. It turns out that the SunPro C++ compiler does not properly
4965 # handle `-M -o', and we need to detect this.
4966 if depmode=$depmode \
4967 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4969 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4970 >/dev/null 2>conftest.err &&
4971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4972 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4974 # icc doesn't choke on unknown options, it will just issue warnings
4975 # or remarks (even with -Werror). So we grep stderr for any message
4976 # that says an option was ignored or not supported.
4977 # When given -MP, icc 7.0 and 7.1 complain thusly:
4978 # icc: Command line warning: ignoring option '-M'; no argument required
4979 # The diagnosis changed in icc 8.0:
4980 # icc: Command line remark: option '-MP' not supported
4981 if (grep 'ignoring option' conftest.err ||
4982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983 am_cv_CXX_dependencies_compiler_type=$depmode
4992 am_cv_CXX_dependencies_compiler_type=none
4996 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4997 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4998 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5003 test "x$enable_dependency_tracking" != xno \
5004 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5005 am__fastdepCXX_TRUE=
5006 am__fastdepCXX_FALSE='#'
5008 am__fastdepCXX_TRUE='#'
5009 am__fastdepCXX_FALSE=
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 if test -n "$ac_tool_prefix"; then
5019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_prog_CC+set}" = set; then
5024 $as_echo_n "(cached) " >&6
5026 if test -n "$CC"; then
5027 ac_cv_prog_CC="$CC" # Let the user override the test.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 if test -n "$CC"; then
5048 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5049 $as_echo "$CC" >&6; }
5051 { $as_echo "$as_me:$LINENO: result: no" >&5
5052 $as_echo "no" >&6; }
5057 if test -z "$ac_cv_prog_CC"; then
5059 # Extract the first word of "gcc", so it can be a program name with args.
5060 set dummy gcc; ac_word=$2
5061 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5064 $as_echo_n "(cached) " >&6
5066 if test -n "$ac_ct_CC"; then
5067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_ac_ct_CC="gcc"
5077 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5087 if test -n "$ac_ct_CC"; then
5088 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5089 $as_echo "$ac_ct_CC" >&6; }
5091 { $as_echo "$as_me:$LINENO: result: no" >&5
5092 $as_echo "no" >&6; }
5095 if test "x$ac_ct_CC" = x; then
5098 case $cross_compiling:$ac_tool_warned in
5100 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102 ac_tool_warned=yes ;;
5110 if test -z "$CC"; then
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}cc; ac_word=$2
5114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_CC+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$CC"; then
5120 ac_cv_prog_CC="$CC" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_CC="${ac_tool_prefix}cc"
5130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 if test -n "$CC"; then
5141 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5142 $as_echo "$CC" >&6; }
5144 { $as_echo "$as_me:$LINENO: result: no" >&5
5145 $as_echo "no" >&6; }
5151 if test -z "$CC"; then
5152 # Extract the first word of "cc", so it can be a program name with args.
5153 set dummy cc; ac_word=$2
5154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_prog_CC+set}" = set; then
5157 $as_echo_n "(cached) " >&6
5159 if test -n "$CC"; then
5160 ac_cv_prog_CC="$CC" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5171 ac_prog_rejected=yes
5175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 if test $ac_prog_rejected = yes; then
5183 # We found a bogon in the path, so make sure we never use it.
5184 set dummy $ac_cv_prog_CC
5186 if test $# != 0; then
5187 # We chose a different compiler from the bogus one.
5188 # However, it has the same basename, so the bogon will be chosen
5189 # first if we set CC to just the basename; use the full file name.
5191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5197 if test -n "$CC"; then
5198 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5199 $as_echo "$CC" >&6; }
5201 { $as_echo "$as_me:$LINENO: result: no" >&5
5202 $as_echo "no" >&6; }
5207 if test -z "$CC"; then
5208 if test -n "$ac_tool_prefix"; then
5209 for ac_prog in cl.exe
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_CC+set}" = set; then
5216 $as_echo_n "(cached) " >&6
5218 if test -n "$CC"; then
5219 ac_cv_prog_CC="$CC" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 if test -n "$CC"; then
5240 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5241 $as_echo "$CC" >&6; }
5243 { $as_echo "$as_me:$LINENO: result: no" >&5
5244 $as_echo "no" >&6; }
5248 test -n "$CC" && break
5251 if test -z "$CC"; then
5253 for ac_prog in cl.exe
5255 # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5260 $as_echo_n "(cached) " >&6
5262 if test -n "$ac_ct_CC"; then
5263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_ac_ct_CC="$ac_prog"
5273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5283 if test -n "$ac_ct_CC"; then
5284 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5285 $as_echo "$ac_ct_CC" >&6; }
5287 { $as_echo "$as_me:$LINENO: result: no" >&5
5288 $as_echo "no" >&6; }
5292 test -n "$ac_ct_CC" && break
5295 if test "x$ac_ct_CC" = x; then
5298 case $cross_compiling:$ac_tool_warned in
5300 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5311 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5314 See \`config.log' for more details." >&5
5315 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5316 See \`config.log' for more details." >&2;}
5317 { (exit 1); exit 1; }; }; }
5319 # Provide some information about the compiler.
5320 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5323 { (ac_try="$ac_compiler --version >&5"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330 (eval "$ac_compiler --version >&5") 2>&5
5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }
5334 { (ac_try="$ac_compiler -v >&5"
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5340 $as_echo "$ac_try_echo") >&5
5341 (eval "$ac_compiler -v >&5") 2>&5
5343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }
5345 { (ac_try="$ac_compiler -V >&5"
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5351 $as_echo "$ac_try_echo") >&5
5352 (eval "$ac_compiler -V >&5") 2>&5
5354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }
5357 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5358 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388 (eval "$ac_compile") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.$ac_objext; then
5400 $as_echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5410 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5412 if test $ac_compiler_gnu = yes; then
5417 ac_test_CFLAGS=${CFLAGS+set}
5418 ac_save_CFLAGS=$CFLAGS
5419 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5421 if test "${ac_cv_prog_cc_g+set}" = set; then
5422 $as_echo_n "(cached) " >&6
5424 ac_save_c_werror_flag=$ac_c_werror_flag
5425 ac_c_werror_flag=yes
5428 cat >conftest.$ac_ext <<_ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5450 $as_echo "$ac_try_echo") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5463 $as_echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489 $as_echo "$ac_try_echo") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5502 $as_echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_c_werror_flag=$ac_save_c_werror_flag
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5529 $as_echo "$ac_try_echo") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_c_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5542 $as_echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 ac_c_werror_flag=$ac_save_c_werror_flag
5557 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5558 $as_echo "$ac_cv_prog_cc_g" >&6; }
5559 if test "$ac_test_CFLAGS" = set; then
5560 CFLAGS=$ac_save_CFLAGS
5561 elif test $ac_cv_prog_cc_g = yes; then
5562 if test "$GCC" = yes; then
5568 if test "$GCC" = yes; then
5574 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5576 if test "${ac_cv_prog_cc_c89+set}" = set; then
5577 $as_echo_n "(cached) " >&6
5579 ac_cv_prog_cc_c89=no
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5589 #include <sys/types.h>
5590 #include <sys/stat.h>
5591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5592 struct buf { int x; };
5593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5594 static char *e (p, i)
5600 static char *f (char * (*g) (char **, int), char **p, ...)
5605 s = g (p, va_arg (v,int));
5610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5611 function prototypes and stuff, but not '\xHH' hex character constants.
5612 These don't provoke an error unfortunately, instead are silently treated
5613 as 'x'. The following induces an error, until -std is added to get
5614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5615 array size at least. It's necessary to write '\x00'==0 to get something
5616 that's true only with -std. */
5617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5620 inside strings and character constants. */
5622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5624 int test (int i, double x);
5625 struct s1 {int (*f) (int a);};
5626 struct s2 {int (*f) (double a);};
5627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5641 CC="$ac_save_CC $ac_arg"
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
5660 ac_cv_prog_cc_c89=$ac_arg
5662 $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5668 rm -f core conftest.err conftest.$ac_objext
5669 test "x$ac_cv_prog_cc_c89" != "xno" && break
5671 rm -f conftest.$ac_ext
5676 case "x$ac_cv_prog_cc_c89" in
5678 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5679 $as_echo "none needed" >&6; } ;;
5681 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5682 $as_echo "unsupported" >&6; } ;;
5684 CC="$CC $ac_cv_prog_cc_c89"
5685 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5686 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5691 ac_cpp='$CPP $CPPFLAGS'
5692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 # Find a good install program. We prefer a C program (faster),
5697 # so one script is as good as another. But avoid the broken or
5698 # incompatible versions:
5699 # SysV /etc/install, /usr/sbin/install
5700 # SunOS /usr/etc/install
5701 # IRIX /sbin/install
5703 # AmigaOS /C/install, which installs bootblocks on floppy discs
5704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5707 # OS/2's system install, which has a completely different semantic
5708 # ./install, which can be erroneously created by make from ./install.sh.
5709 # Reject install programs that cannot install multiple files.
5710 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5711 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5712 if test -z "$INSTALL"; then
5713 if test "${ac_cv_path_install+set}" = set; then
5714 $as_echo_n "(cached) " >&6
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 # Account for people who put trailing slashes in PATH elements.
5723 ./ | .// | /cC/* | \
5724 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5725 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5728 # OSF1 and SCO ODT 3.0 have their own names for install.
5729 # Don't use installbsd from OSF since it installs stuff as root
5731 for ac_prog in ginstall scoinst install; do
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5734 if test $ac_prog = install &&
5735 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5736 # AIX install. It has an incompatible calling convention.
5738 elif test $ac_prog = install &&
5739 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5740 # program-specific install script used by HP pwplus--don't use.
5743 rm -rf conftest.one conftest.two conftest.dir
5744 echo one > conftest.one
5745 echo two > conftest.two
5747 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5748 test -s conftest.one && test -s conftest.two &&
5749 test -s conftest.dir/conftest.one &&
5750 test -s conftest.dir/conftest.two
5752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5765 rm -rf conftest.one conftest.two conftest.dir
5768 if test "${ac_cv_path_install+set}" = set; then
5769 INSTALL=$ac_cv_path_install
5771 # As a last resort, use the slow shell script. Don't cache a
5772 # value for INSTALL within a source directory, because that will
5773 # break other packages using the cache if that directory is
5774 # removed, or if the value is a relative name.
5775 INSTALL=$ac_install_sh
5778 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5779 $as_echo "$INSTALL" >&6; }
5781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5782 # It thinks the first close brace ends the variable substitution.
5783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5789 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5790 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5792 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5793 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5794 $as_echo_n "(cached) " >&6
5796 cat >conftest.make <<\_ACEOF
5799 @echo '@@@%%%=$(MAKE)=@@@%%%'
5801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5804 eval ac_cv_prog_make_${ac_make}_set=yes;;
5806 eval ac_cv_prog_make_${ac_make}_set=no;;
5810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5811 { $as_echo "$as_me:$LINENO: result: yes" >&5
5812 $as_echo "yes" >&6; }
5815 { $as_echo "$as_me:$LINENO: result: no" >&5
5816 $as_echo "no" >&6; }
5817 SET_MAKE="MAKE=${MAKE-make}"
5822 # site specific configs
5824 # check for asterisk
5826 # Check whether --with-asterisk was given.
5827 if test "${with_asterisk+set}" = set; then
5828 withval=$with_asterisk;
5830 with_asterisk="check"
5834 if test "x$with_asterisk" != xno; then
5836 for ac_header in asterisk/compiler.h
5838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 $as_echo_n "checking for $ac_header... " >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843 $as_echo_n "(cached) " >&6
5845 ac_res=`eval 'as_val=${'$as_ac_Header'}
5846 $as_echo "$as_val"'`
5847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5848 $as_echo "$ac_res" >&6; }
5850 # Is the header compilable?
5851 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5852 $as_echo_n "checking $ac_header usability... " >&6; }
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 $ac_includes_default
5860 #include <$ac_header>
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5869 $as_echo "$ac_try_echo") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } && {
5877 test -z "$ac_c_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
5880 ac_header_compiler=yes
5882 $as_echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_header_compiler=no
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5890 $as_echo "$ac_header_compiler" >&6; }
5892 # Is the header present?
5893 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5894 $as_echo_n "checking $ac_header presence... " >&6; }
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <$ac_header>
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } >/dev/null && {
5917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5920 ac_header_preproc=yes
5922 $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_header_preproc=no
5928 rm -f conftest.err conftest.$ac_ext
5929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5930 $as_echo "$ac_header_preproc" >&6; }
5932 # So? What about this header?
5933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5936 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5939 ac_header_preproc=yes
5942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5943 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5945 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5947 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5949 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5953 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5955 ## ----------------------------------- ##
5956 ## Report this to andreas@eversberg.eu ##
5957 ## ----------------------------------- ##
5959 ) | sed "s/^/$as_me: WARNING: /" >&2
5962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5963 $as_echo_n "checking for $ac_header... " >&6; }
5964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5965 $as_echo_n "(cached) " >&6
5967 eval "$as_ac_Header=\$ac_header_preproc"
5969 ac_res=`eval 'as_val=${'$as_ac_Header'}
5970 $as_echo "$as_val"'`
5971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5972 $as_echo "$ac_res" >&6; }
5975 as_val=`eval 'as_val=${'$as_ac_Header'}
5976 $as_echo "$as_val"'`
5977 if test "x$as_val" = x""yes; then
5978 cat >>confdefs.h <<_ACEOF
5979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5983 if test "x$with_asterisk" != xcheck ; then
5984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5986 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5987 See \`config.log' for more details." >&5
5988 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5989 See \`config.log' for more details." >&2;}
5990 { (exit 1); exit 1; }; }; }
6003 if test "x$with_asterisk" == "xyes" ; then
6004 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6005 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6007 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6008 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6014 # Check whether --with-ssl was given.
6015 if test "${with_ssl+set}" = set; then
6022 if test "x$with_ssl" != xno; then
6024 for ac_header in openssl/rsa.h
6026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6029 $as_echo_n "checking for $ac_header... " >&6; }
6030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031 $as_echo_n "(cached) " >&6
6033 ac_res=`eval 'as_val=${'$as_ac_Header'}
6034 $as_echo "$as_val"'`
6035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6036 $as_echo "$ac_res" >&6; }
6038 # Is the header compilable?
6039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6040 $as_echo_n "checking $ac_header usability... " >&6; }
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 #include <$ac_header>
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6068 ac_header_compiler=yes
6070 $as_echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_header_compiler=no
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078 $as_echo "$ac_header_compiler" >&6; }
6080 # Is the header present?
6081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082 $as_echo_n "checking $ac_header presence... " >&6; }
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <$ac_header>
6091 if { (ac_try="$ac_cpp conftest.$ac_ext"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } >/dev/null && {
6105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6108 ac_header_preproc=yes
6110 $as_echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_header_preproc=no
6116 rm -f conftest.err conftest.$ac_ext
6117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6118 $as_echo "$ac_header_preproc" >&6; }
6120 # So? What about this header?
6121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6127 ac_header_preproc=yes
6130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6143 ## ----------------------------------- ##
6144 ## Report this to andreas@eversberg.eu ##
6145 ## ----------------------------------- ##
6147 ) | sed "s/^/$as_me: WARNING: /" >&2
6150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 $as_echo_n "checking for $ac_header... " >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153 $as_echo_n "(cached) " >&6
6155 eval "$as_ac_Header=\$ac_header_preproc"
6157 ac_res=`eval 'as_val=${'$as_ac_Header'}
6158 $as_echo "$as_val"'`
6159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6160 $as_echo "$ac_res" >&6; }
6163 as_val=`eval 'as_val=${'$as_ac_Header'}
6164 $as_echo "$as_val"'`
6165 if test "x$as_val" = x""yes; then
6166 cat >>confdefs.h <<_ACEOF
6167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6174 { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6175 $as_echo_n "checking for main in -lcrypto... " >&6; }
6176 if test "${ac_cv_lib_crypto_main+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6179 ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lcrypto -lcrypto
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (ac_try="$ac_link"
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206 (eval "$ac_link") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest$ac_exeext && {
6216 test "$cross_compiling" = yes ||
6217 $as_test_x conftest$ac_exeext
6219 ac_cv_lib_crypto_main=yes
6221 $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_cv_lib_crypto_main=no
6227 rm -rf conftest.dSYM
6228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6229 conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6233 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6234 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6235 LIBCRYPTO="-lcrypto"
6238 cat >>confdefs.h <<\_ACEOF
6239 #define HAVE_LIBCRYPTO 1
6244 if test "x$with_ssl" != xcheck ; then
6245 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6247 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6248 See \`config.log' for more details." >&5
6249 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6250 See \`config.log' for more details." >&2;}
6251 { (exit 1); exit 1; }; }; }
6263 # Check whether --with-gsm was given.
6264 if test "${with_gsm+set}" = set; then
6271 if test "x$with_gsm" != xno; then
6272 { $as_echo "$as_me:$LINENO: checking for openbsc/include/openbsc/gsm_data.h" >&5
6273 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
6274 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then
6275 $as_echo_n "(cached) " >&6
6277 test "$cross_compiling" = yes &&
6278 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6279 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6280 { (exit 1); exit 1; }; }
6281 if test -r "openbsc/include/openbsc/gsm_data.h"; then
6282 ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
6284 ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
6287 { $as_echo "$as_me:$LINENO: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
6288 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
6289 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then
6292 if test "x$with_gsm" != xcheck ; then
6293 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6295 { { $as_echo "$as_me:$LINENO: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ .
6296 See \`config.log' for more details." >&5
6297 $as_echo "$as_me: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ .
6298 See \`config.log' for more details." >&2;}
6299 { (exit 1); exit 1; }; }; }
6310 if test "x$with_gsm" == "xyes" ; then
6312 ENABLE_GSM_FALSE='#'
6319 # Checks for libraries.
6321 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6322 $as_echo_n "checking for main in -lm... " >&6; }
6323 if test "${ac_cv_lib_m_main+set}" = set; then
6324 $as_echo_n "(cached) " >&6
6326 ac_check_lib_save_LIBS=$LIBS
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6351 $as_echo "$ac_try_echo") >&5
6352 (eval "$ac_link") 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest$ac_exeext && {
6362 test "$cross_compiling" = yes ||
6363 $as_test_x conftest$ac_exeext
6365 ac_cv_lib_m_main=yes
6367 $as_echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6373 rm -rf conftest.dSYM
6374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6375 conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_check_lib_save_LIBS
6378 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6379 $as_echo "$ac_cv_lib_m_main" >&6; }
6380 if test "x$ac_cv_lib_m_main" = x""yes; then
6381 cat >>confdefs.h <<_ACEOF
6390 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6391 $as_echo_n "checking for main in -lncurses... " >&6; }
6392 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6395 ac_check_lib_save_LIBS=$LIBS
6396 LIBS="-lncurses $LIBS"
6397 cat >conftest.$ac_ext <<_ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (ac_try="$ac_link"
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6420 $as_echo "$ac_try_echo") >&5
6421 (eval "$ac_link") 2>conftest.er1
6423 grep -v '^ *+' conftest.er1 >conftest.err
6425 cat conftest.err >&5
6426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } && {
6428 test -z "$ac_c_werror_flag" ||
6429 test ! -s conftest.err
6430 } && test -s conftest$ac_exeext && {
6431 test "$cross_compiling" = yes ||
6432 $as_test_x conftest$ac_exeext
6434 ac_cv_lib_ncurses_main=yes
6436 $as_echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 ac_cv_lib_ncurses_main=no
6442 rm -rf conftest.dSYM
6443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6444 conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6447 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6448 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6449 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6450 cat >>confdefs.h <<_ACEOF
6451 #define HAVE_LIBNCURSES 1
6454 LIBS="-lncurses $LIBS"
6459 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6460 $as_echo_n "checking for main in -lpthread... " >&6; }
6461 if test "${ac_cv_lib_pthread_main+set}" = set; then
6462 $as_echo_n "(cached) " >&6
6464 ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-lpthread $LIBS"
6466 cat >conftest.$ac_ext <<_ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6482 rm -f conftest.$ac_objext conftest$ac_exeext
6483 if { (ac_try="$ac_link"
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6489 $as_echo "$ac_try_echo") >&5
6490 (eval "$ac_link") 2>conftest.er1
6492 grep -v '^ *+' conftest.er1 >conftest.err
6494 cat conftest.err >&5
6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && {
6497 test -z "$ac_c_werror_flag" ||
6498 test ! -s conftest.err
6499 } && test -s conftest$ac_exeext && {
6500 test "$cross_compiling" = yes ||
6501 $as_test_x conftest$ac_exeext
6503 ac_cv_lib_pthread_main=yes
6505 $as_echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_cv_lib_pthread_main=no
6511 rm -rf conftest.dSYM
6512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6513 conftest$ac_exeext conftest.$ac_ext
6514 LIBS=$ac_check_lib_save_LIBS
6516 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6517 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6518 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6519 cat >>confdefs.h <<_ACEOF
6520 #define HAVE_LIBPTHREAD 1
6523 LIBS="-lpthread $LIBS"
6528 # Checks for header files.
6535 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6536 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6537 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6538 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6540 $as_echo_n "(cached) " >&6
6542 cat >conftest.$ac_ext <<_ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <sys/types.h>
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 eval "$as_ac_Header=yes"
6580 $as_echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 eval "$as_ac_Header=no"
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 ac_res=`eval 'as_val=${'$as_ac_Header'}
6589 $as_echo "$as_val"'`
6590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6591 $as_echo "$ac_res" >&6; }
6592 as_val=`eval 'as_val=${'$as_ac_Header'}
6593 $as_echo "$as_val"'`
6594 if test "x$as_val" = x""yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6599 ac_header_dirent=$ac_hdr; break
6603 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6604 if test $ac_header_dirent = dirent.h; then
6605 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6606 $as_echo_n "checking for library containing opendir... " >&6; }
6607 if test "${ac_cv_search_opendir+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6610 ac_func_search_save_LIBS=$LIBS
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6618 /* Override any GCC internal prototype to avoid an error.
6619 Use char because int might match the return type of a GCC
6620 builtin and then its argument prototype would still apply. */
6633 for ac_lib in '' dir; do
6634 if test -z "$ac_lib"; then
6635 ac_res="none required"
6638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6640 rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (ac_try="$ac_link"
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6647 $as_echo "$ac_try_echo") >&5
6648 (eval "$ac_link") 2>conftest.er1
6650 grep -v '^ *+' conftest.er1 >conftest.err
6652 cat conftest.err >&5
6653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest$ac_exeext && {
6658 test "$cross_compiling" = yes ||
6659 $as_test_x conftest$ac_exeext
6661 ac_cv_search_opendir=$ac_res
6663 $as_echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6669 rm -rf conftest.dSYM
6670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6672 if test "${ac_cv_search_opendir+set}" = set; then
6676 if test "${ac_cv_search_opendir+set}" = set; then
6679 ac_cv_search_opendir=no
6682 LIBS=$ac_func_search_save_LIBS
6684 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6685 $as_echo "$ac_cv_search_opendir" >&6; }
6686 ac_res=$ac_cv_search_opendir
6687 if test "$ac_res" != no; then
6688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6693 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6694 $as_echo_n "checking for library containing opendir... " >&6; }
6695 if test "${ac_cv_search_opendir+set}" = set; then
6696 $as_echo_n "(cached) " >&6
6698 ac_func_search_save_LIBS=$LIBS
6699 cat >conftest.$ac_ext <<_ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6706 /* Override any GCC internal prototype to avoid an error.
6707 Use char because int might match the return type of a GCC
6708 builtin and then its argument prototype would still apply. */
6721 for ac_lib in '' x; do
6722 if test -z "$ac_lib"; then
6723 ac_res="none required"
6726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6728 rm -f conftest.$ac_objext conftest$ac_exeext
6729 if { (ac_try="$ac_link"
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6735 $as_echo "$ac_try_echo") >&5
6736 (eval "$ac_link") 2>conftest.er1
6738 grep -v '^ *+' conftest.er1 >conftest.err
6740 cat conftest.err >&5
6741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } && {
6743 test -z "$ac_c_werror_flag" ||
6744 test ! -s conftest.err
6745 } && test -s conftest$ac_exeext && {
6746 test "$cross_compiling" = yes ||
6747 $as_test_x conftest$ac_exeext
6749 ac_cv_search_opendir=$ac_res
6751 $as_echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6757 rm -rf conftest.dSYM
6758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6760 if test "${ac_cv_search_opendir+set}" = set; then
6764 if test "${ac_cv_search_opendir+set}" = set; then
6767 ac_cv_search_opendir=no
6770 LIBS=$ac_func_search_save_LIBS
6772 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6773 $as_echo "$ac_cv_search_opendir" >&6; }
6774 ac_res=$ac_cv_search_opendir
6775 if test "$ac_res" != no; then
6776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6782 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783 $as_echo_n "checking for ANSI C header files... " >&6; }
6784 if test "${ac_cv_header_stdc+set}" = set; then
6785 $as_echo_n "(cached) " >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6824 ac_cv_header_stdc=yes
6826 $as_echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_cv_header_stdc=no
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 if test $ac_cv_header_stdc = yes; then
6835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "memchr" >/dev/null 2>&1; then
6849 ac_cv_header_stdc=no
6855 if test $ac_cv_header_stdc = yes; then
6856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6857 cat >conftest.$ac_ext <<_ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867 $EGREP "free" >/dev/null 2>&1; then
6870 ac_cv_header_stdc=no
6876 if test $ac_cv_header_stdc = yes; then
6877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6878 if test "$cross_compiling" = yes; then
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6889 #if ((' ' & 0x0FF) == 0x020)
6890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6893 # define ISLOWER(c) \
6894 (('a' <= (c) && (c) <= 'i') \
6895 || ('j' <= (c) && (c) <= 'r') \
6896 || ('s' <= (c) && (c) <= 'z'))
6897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6905 for (i = 0; i < 256; i++)
6906 if (XOR (islower (i), ISLOWER (i))
6907 || toupper (i) != TOUPPER (i))
6912 rm -f conftest$ac_exeext
6913 if { (ac_try="$ac_link"
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6919 $as_echo "$ac_try_echo") >&5
6920 (eval "$ac_link") 2>&5
6922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6924 { (case "(($ac_try" in
6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6929 $as_echo "$ac_try_echo") >&5
6930 (eval "$ac_try") 2>&5
6932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6936 $as_echo "$as_me: program exited with status $ac_status" >&5
6937 $as_echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_cv_header_stdc=no
6943 rm -rf conftest.dSYM
6944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6950 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6951 $as_echo "$ac_cv_header_stdc" >&6; }
6952 if test $ac_cv_header_stdc = yes; then
6954 cat >>confdefs.h <<\_ACEOF
6955 #define STDC_HEADERS 1
6960 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6961 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6962 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6963 $as_echo_n "(cached) " >&6
6965 cat >conftest.$ac_ext <<_ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <sys/types.h>
6972 #include <sys/wait.h>
6974 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6977 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6985 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6990 rm -f conftest.$ac_objext
6991 if { (ac_try="$ac_compile"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_compile") 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
7008 ac_cv_header_sys_wait_h=yes
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 ac_cv_header_sys_wait_h=no
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7019 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7020 if test $ac_cv_header_sys_wait_h = yes; then
7022 cat >>confdefs.h <<\_ACEOF
7023 #define HAVE_SYS_WAIT_H 1
7041 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
7043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7045 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7046 $as_echo_n "checking for $ac_header... " >&6; }
7047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7048 $as_echo_n "(cached) " >&6
7050 ac_res=`eval 'as_val=${'$as_ac_Header'}
7051 $as_echo "$as_val"'`
7052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7053 $as_echo "$ac_res" >&6; }
7055 # Is the header compilable?
7056 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7057 $as_echo_n "checking $ac_header usability... " >&6; }
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 $ac_includes_default
7065 #include <$ac_header>
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074 $as_echo "$ac_try_echo") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
7085 ac_header_compiler=yes
7087 $as_echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_header_compiler=no
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 $as_echo "$ac_header_compiler" >&6; }
7097 # Is the header present?
7098 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7099 $as_echo_n "checking $ac_header presence... " >&6; }
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #include <$ac_header>
7108 if { (ac_try="$ac_cpp conftest.$ac_ext"
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114 $as_echo "$ac_try_echo") >&5
7115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1 >conftest.err
7119 cat conftest.err >&5
7120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } >/dev/null && {
7122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7125 ac_header_preproc=yes
7127 $as_echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_header_preproc=no
7133 rm -f conftest.err conftest.$ac_ext
7134 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135 $as_echo "$ac_header_preproc" >&6; }
7137 # So? What about this header?
7138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7141 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7144 ac_header_preproc=yes
7147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7148 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7150 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7152 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7154 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7156 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7158 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7160 ## ----------------------------------- ##
7161 ## Report this to andreas@eversberg.eu ##
7162 ## ----------------------------------- ##
7164 ) | sed "s/^/$as_me: WARNING: /" >&2
7167 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7168 $as_echo_n "checking for $ac_header... " >&6; }
7169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7170 $as_echo_n "(cached) " >&6
7172 eval "$as_ac_Header=\$ac_header_preproc"
7174 ac_res=`eval 'as_val=${'$as_ac_Header'}
7175 $as_echo "$as_val"'`
7176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7177 $as_echo "$ac_res" >&6; }
7180 as_val=`eval 'as_val=${'$as_ac_Header'}
7181 $as_echo "$as_val"'`
7182 if test "x$as_val" = x""yes; then
7183 cat >>confdefs.h <<_ACEOF
7184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7192 # Checks for typedefs, structures, and compiler characteristics.
7193 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7194 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7195 if test "${ac_cv_header_stdbool_h+set}" = set; then
7196 $as_echo_n "(cached) " >&6
7198 cat >conftest.$ac_ext <<_ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7205 #include <stdbool.h>
7207 "error: bool is not defined"
7210 "error: false is not defined"
7213 "error: false is not 0"
7216 "error: true is not defined"
7219 "error: true is not 1"
7221 #ifndef __bool_true_false_are_defined
7222 "error: __bool_true_false_are_defined is not defined"
7225 struct s { _Bool s: 1; _Bool t; } s;
7227 char a[true == 1 ? 1 : -1];
7228 char b[false == 0 ? 1 : -1];
7229 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7230 char d[(bool) 0.5 == true ? 1 : -1];
7232 char f[(_Bool) 0.0 == false ? 1 : -1];
7234 char h[sizeof (_Bool)];
7236 enum { j = false, k = true, l = false * true, m = true * 256 };
7237 /* The following fails for
7238 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7240 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7241 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7242 # if defined __xlc__ || defined __GNUC__
7243 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7244 reported by James Lemley on 2005-10-05; see
7245 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7246 This test is not quite right, since xlc is allowed to
7247 reject this program, as the initializer for xlcbug is
7248 not one of the forms that C requires support for.
7249 However, doing the test right would require a runtime
7250 test, and that would make cross-compilation harder.
7251 Let us hope that IBM fixes the xlc bug, and also adds
7252 support for this kind of constant expression. In the
7253 meantime, this test will reject xlc, which is OK, since
7254 our stdbool.h substitute should suffice. We also test
7255 this with GCC, where it should work, to detect more
7256 quickly whether someone messes up the test in the
7258 char digs[] = "0123456789";
7259 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7261 /* Catch a bug in an HP-UX C compiler. See
7262 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7263 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7274 /* Refer to every declared value, to avoid compiler optimizations. */
7275 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7276 + !m + !n + !o + !p + !q + !pq);
7282 rm -f conftest.$ac_objext
7283 if { (ac_try="$ac_compile"
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7289 $as_echo "$ac_try_echo") >&5
7290 (eval "$ac_compile") 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest.$ac_objext; then
7300 ac_cv_header_stdbool_h=yes
7302 $as_echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_header_stdbool_h=no
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7311 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7312 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7313 $as_echo_n "checking for _Bool... " >&6; }
7314 if test "${ac_cv_type__Bool+set}" = set; then
7315 $as_echo_n "(cached) " >&6
7318 cat >conftest.$ac_ext <<_ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 $ac_includes_default
7334 rm -f conftest.$ac_objext
7335 if { (ac_try="$ac_compile"
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7341 $as_echo "$ac_try_echo") >&5
7342 (eval "$ac_compile") 2>conftest.er1
7344 grep -v '^ *+' conftest.er1 >conftest.err
7346 cat conftest.err >&5
7347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && {
7349 test -z "$ac_c_werror_flag" ||
7350 test ! -s conftest.err
7351 } && test -s conftest.$ac_objext; then
7352 cat >conftest.$ac_ext <<_ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 $ac_includes_default
7362 if (sizeof ((_Bool)))
7368 rm -f conftest.$ac_objext
7369 if { (ac_try="$ac_compile"
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375 $as_echo "$ac_try_echo") >&5
7376 (eval "$ac_compile") 2>conftest.er1
7378 grep -v '^ *+' conftest.er1 >conftest.err
7380 cat conftest.err >&5
7381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && {
7383 test -z "$ac_c_werror_flag" ||
7384 test ! -s conftest.err
7385 } && test -s conftest.$ac_objext; then
7388 $as_echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7391 ac_cv_type__Bool=yes
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 $as_echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7404 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7405 $as_echo "$ac_cv_type__Bool" >&6; }
7406 if test "x$ac_cv_type__Bool" = x""yes; then
7408 cat >>confdefs.h <<_ACEOF
7409 #define HAVE__BOOL 1
7415 if test $ac_cv_header_stdbool_h = yes; then
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_STDBOOL_H 1
7423 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7424 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7425 if test "${ac_cv_c_const+set}" = set; then
7426 $as_echo_n "(cached) " >&6
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7438 /* FIXME: Include the comments suggested by Paul. */
7440 /* Ultrix mips cc rejects this. */
7441 typedef int charset[2];
7443 /* SunOS 4.1.1 cc rejects this. */
7444 char const *const *pcpcc;
7446 /* NEC SVR4.0.2 mips cc rejects this. */
7447 struct point {int x, y;};
7448 static struct point const zero = {0,0};
7449 /* AIX XL C 1.02.0.0 rejects this.
7450 It does not let you subtract one const X* pointer from another in
7451 an arm of an if-expression whose if-part is not a constant
7453 const char *g = "string";
7454 pcpcc = &g + (g ? g-g : 0);
7455 /* HPUX 7.0 cc rejects these. */
7457 ppc = (char**) pcpcc;
7458 pcpcc = (char const *const *) ppc;
7459 { /* SCO 3.2v4 cc rejects this. */
7461 char const *s = 0 ? (char *) 0 : (char const *) 0;
7466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7468 const int *foo = &x[0];
7471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7472 typedef const int *iptr;
7476 { /* AIX XL C 1.02.0.0 rejects this saying
7477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7478 struct s { int j; const int *ap[3]; };
7479 struct s *b; b->j = 5;
7481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7485 return !cs[0] && !zero.x;
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7499 $as_echo "$ac_try_echo") >&5
7500 (eval "$ac_compile") 2>conftest.er1
7502 grep -v '^ *+' conftest.er1 >conftest.err
7504 cat conftest.err >&5
7505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } && {
7507 test -z "$ac_c_werror_flag" ||
7508 test ! -s conftest.err
7509 } && test -s conftest.$ac_objext; then
7512 $as_echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7521 $as_echo "$ac_cv_c_const" >&6; }
7522 if test $ac_cv_c_const = no; then
7524 cat >>confdefs.h <<\_ACEOF
7530 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7531 $as_echo_n "checking for inline... " >&6; }
7532 if test "${ac_cv_c_inline+set}" = set; then
7533 $as_echo_n "(cached) " >&6
7536 for ac_kw in inline __inline__ __inline; do
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7545 static $ac_kw foo_t static_foo () {return 0; }
7546 $ac_kw foo_t foo () {return 0; }
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7557 $as_echo "$ac_try_echo") >&5
7558 (eval "$ac_compile") 2>conftest.er1
7560 grep -v '^ *+' conftest.er1 >conftest.err
7562 cat conftest.err >&5
7563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } && {
7565 test -z "$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 } && test -s conftest.$ac_objext; then
7568 ac_cv_c_inline=$ac_kw
7570 $as_echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 test "$ac_cv_c_inline" != no && break
7581 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7582 $as_echo "$ac_cv_c_inline" >&6; }
7585 case $ac_cv_c_inline in
7588 case $ac_cv_c_inline in
7590 *) ac_val=$ac_cv_c_inline;;
7592 cat >>confdefs.h <<_ACEOF
7594 #define inline $ac_val
7600 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7601 $as_echo_n "checking for pid_t... " >&6; }
7602 if test "${ac_cv_type_pid_t+set}" = set; then
7603 $as_echo_n "(cached) " >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 $ac_includes_default
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7629 $as_echo "$ac_try_echo") >&5
7630 (eval "$ac_compile") 2>conftest.er1
7632 grep -v '^ *+' conftest.er1 >conftest.err
7634 cat conftest.err >&5
7635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && {
7637 test -z "$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7639 } && test -s conftest.$ac_objext; then
7640 cat >conftest.$ac_ext <<_ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 $ac_includes_default
7650 if (sizeof ((pid_t)))
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7663 $as_echo "$ac_try_echo") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7676 $as_echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_cv_type_pid_t=yes
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 $as_echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7693 $as_echo "$ac_cv_type_pid_t" >&6; }
7694 if test "x$ac_cv_type_pid_t" = x""yes; then
7698 cat >>confdefs.h <<_ACEOF
7704 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7705 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7706 if test "${ac_cv_header_time+set}" = set; then
7707 $as_echo_n "(cached) " >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #include <sys/types.h>
7716 #include <sys/time.h>
7722 if ((struct tm *) 0)
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 ac_cv_header_time=yes
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_header_time=no
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7757 $as_echo "$ac_cv_header_time" >&6; }
7758 if test $ac_cv_header_time = yes; then
7760 cat >>confdefs.h <<\_ACEOF
7761 #define TIME_WITH_SYS_TIME 1
7766 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7767 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7768 if test "${ac_cv_struct_tm+set}" = set; then
7769 $as_echo_n "(cached) " >&6
7771 cat >conftest.$ac_ext <<_ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 #include <sys/types.h>
7784 int *p = &tm.tm_sec;
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797 $as_echo "$ac_try_echo") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_cv_struct_tm=time.h
7810 $as_echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_cv_struct_tm=sys/time.h
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7819 $as_echo "$ac_cv_struct_tm" >&6; }
7820 if test $ac_cv_struct_tm = sys/time.h; then
7822 cat >>confdefs.h <<\_ACEOF
7823 #define TM_IN_SYS_TIME 1
7829 # Checks for library functions.
7831 for ac_header in vfork.h
7833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7835 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7836 $as_echo_n "checking for $ac_header... " >&6; }
7837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7838 $as_echo_n "(cached) " >&6
7840 ac_res=`eval 'as_val=${'$as_ac_Header'}
7841 $as_echo "$as_val"'`
7842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7843 $as_echo "$ac_res" >&6; }
7845 # Is the header compilable?
7846 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7847 $as_echo_n "checking $ac_header usability... " >&6; }
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 $ac_includes_default
7855 #include <$ac_header>
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7864 $as_echo "$ac_try_echo") >&5
7865 (eval "$ac_compile") 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && {
7872 test -z "$ac_c_werror_flag" ||
7873 test ! -s conftest.err
7874 } && test -s conftest.$ac_objext; then
7875 ac_header_compiler=yes
7877 $as_echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 ac_header_compiler=no
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7885 $as_echo "$ac_header_compiler" >&6; }
7887 # Is the header present?
7888 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7889 $as_echo_n "checking $ac_header presence... " >&6; }
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 #include <$ac_header>
7898 if { (ac_try="$ac_cpp conftest.$ac_ext"
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904 $as_echo "$ac_try_echo") >&5
7905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } >/dev/null && {
7912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7915 ac_header_preproc=yes
7917 $as_echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_header_preproc=no
7923 rm -f conftest.err conftest.$ac_ext
7924 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7925 $as_echo "$ac_header_preproc" >&6; }
7927 # So? What about this header?
7928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7931 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7933 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7934 ac_header_preproc=yes
7937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7938 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7940 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7942 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7944 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7946 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7948 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7950 ## ----------------------------------- ##
7951 ## Report this to andreas@eversberg.eu ##
7952 ## ----------------------------------- ##
7954 ) | sed "s/^/$as_me: WARNING: /" >&2
7957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 $as_echo_n "checking for $ac_header... " >&6; }
7959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7960 $as_echo_n "(cached) " >&6
7962 eval "$as_ac_Header=\$ac_header_preproc"
7964 ac_res=`eval 'as_val=${'$as_ac_Header'}
7965 $as_echo "$as_val"'`
7966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7967 $as_echo "$ac_res" >&6; }
7970 as_val=`eval 'as_val=${'$as_ac_Header'}
7971 $as_echo "$as_val"'`
7972 if test "x$as_val" = x""yes; then
7973 cat >>confdefs.h <<_ACEOF
7974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7983 for ac_func in fork vfork
7985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7986 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7987 $as_echo_n "checking for $ac_func... " >&6; }
7988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7989 $as_echo_n "(cached) " >&6
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7999 #define $ac_func innocuous_$ac_func
8001 /* System header to define __stub macros and hopefully few prototypes,
8002 which can conflict with char $ac_func (); below.
8003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8004 <limits.h> exists even on freestanding compilers. */
8007 # include <limits.h>
8009 # include <assert.h>
8014 /* Override any GCC internal prototype to avoid an error.
8015 Use char because int might match the return type of a GCC
8016 builtin and then its argument prototype would still apply. */
8021 /* The GNU C library defines this for functions which it implements
8022 to always fail with ENOSYS. Some functions are actually named
8023 something starting with __ and the normal name is an alias. */
8024 #if defined __stub_$ac_func || defined __stub___$ac_func
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (ac_try="$ac_link"
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8043 $as_echo "$ac_try_echo") >&5
8044 (eval "$ac_link") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest$ac_exeext && {
8054 test "$cross_compiling" = yes ||
8055 $as_test_x conftest$ac_exeext
8057 eval "$as_ac_var=yes"
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 eval "$as_ac_var=no"
8065 rm -rf conftest.dSYM
8066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8067 conftest$ac_exeext conftest.$ac_ext
8069 ac_res=`eval 'as_val=${'$as_ac_var'}
8070 $as_echo "$as_val"'`
8071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8072 $as_echo "$ac_res" >&6; }
8073 as_val=`eval 'as_val=${'$as_ac_var'}
8074 $as_echo "$as_val"'`
8075 if test "x$as_val" = x""yes; then
8076 cat >>confdefs.h <<_ACEOF
8077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8083 if test "x$ac_cv_func_fork" = xyes; then
8084 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8085 $as_echo_n "checking for working fork... " >&6; }
8086 if test "${ac_cv_func_fork_works+set}" = set; then
8087 $as_echo_n "(cached) " >&6
8089 if test "$cross_compiling" = yes; then
8090 ac_cv_func_fork_works=cross
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 $ac_includes_default
8103 /* By Ruediger Kuhlmann. */
8110 rm -f conftest$ac_exeext
8111 if { (ac_try="$ac_link"
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8117 $as_echo "$ac_try_echo") >&5
8118 (eval "$ac_link") 2>&5
8120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128 (eval "$ac_try") 2>&5
8130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_cv_func_fork_works=yes
8134 $as_echo "$as_me: program exited with status $ac_status" >&5
8135 $as_echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_func_fork_works=no
8141 rm -rf conftest.dSYM
8142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8147 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8148 $as_echo "$ac_cv_func_fork_works" >&6; }
8151 ac_cv_func_fork_works=$ac_cv_func_fork
8153 if test "x$ac_cv_func_fork_works" = xcross; then
8155 *-*-amigaos* | *-*-msdosdjgpp*)
8156 # Override, as these systems have only a dummy fork() stub
8157 ac_cv_func_fork_works=no
8160 ac_cv_func_fork_works=yes
8163 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8164 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8166 ac_cv_func_vfork_works=$ac_cv_func_vfork
8167 if test "x$ac_cv_func_vfork" = xyes; then
8168 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8169 $as_echo_n "checking for working vfork... " >&6; }
8170 if test "${ac_cv_func_vfork_works+set}" = set; then
8171 $as_echo_n "(cached) " >&6
8173 if test "$cross_compiling" = yes; then
8174 ac_cv_func_vfork_works=cross
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 /* Thanks to Paul Eggert for this test. */
8183 $ac_includes_default
8184 #include <sys/wait.h>
8188 /* On some sparc systems, changes by the child to local and incoming
8189 argument registers are propagated back to the parent. The compiler
8190 is told about this with #include <vfork.h>, but some compilers
8191 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8192 static variable whose address is put into a register that is
8193 clobbered by the vfork. */
8196 sparc_address_test (int arg)
8198 sparc_address_test (arg) int arg;
8219 pid_t parent = getpid ();
8222 sparc_address_test (0);
8227 /* Here is another test for sparc vfork register problems. This
8228 test uses lots of local variables, at least as many local
8229 variables as main has allocated so far including compiler
8230 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8231 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8232 reuse the register of parent for one of the local variables,
8233 since it will think that parent can't possibly be used any more
8234 in this routine. Assigning to the local variable will thus
8235 munge parent in the parent process. */
8237 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8238 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8239 /* Convince the compiler that p..p7 are live; otherwise, it might
8240 use the same hardware register for all 8 local variables. */
8241 if (p != p1 || p != p2 || p != p3 || p != p4
8242 || p != p5 || p != p6 || p != p7)
8245 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8246 from child file descriptors. If the child closes a descriptor
8247 before it execs or exits, this munges the parent's descriptor
8248 as well. Test for this by closing stdout in the child. */
8249 _exit(close(fileno(stdout)) != 0);
8254 while (wait(&status) != child)
8257 /* Was there some problem with vforking? */
8260 /* Did the child fail? (This shouldn't happen.) */
8263 /* Did the vfork/compiler bug occur? */
8264 || parent != getpid()
8266 /* Did the file descriptor bug occur? */
8267 || fstat(fileno(stdout), &st) != 0
8272 rm -f conftest$ac_exeext
8273 if { (ac_try="$ac_link"
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8279 $as_echo "$ac_try_echo") >&5
8280 (eval "$ac_link") 2>&5
8282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8284 { (case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289 $as_echo "$ac_try_echo") >&5
8290 (eval "$ac_try") 2>&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 ac_cv_func_vfork_works=yes
8296 $as_echo "$as_me: program exited with status $ac_status" >&5
8297 $as_echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8301 ac_cv_func_vfork_works=no
8303 rm -rf conftest.dSYM
8304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8309 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8310 $as_echo "$ac_cv_func_vfork_works" >&6; }
8313 if test "x$ac_cv_func_fork_works" = xcross; then
8314 ac_cv_func_vfork_works=$ac_cv_func_vfork
8315 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8316 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8319 if test "x$ac_cv_func_vfork_works" = xyes; then
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_WORKING_VFORK 1
8327 cat >>confdefs.h <<\_ACEOF
8332 if test "x$ac_cv_func_fork_works" = xyes; then
8334 cat >>confdefs.h <<\_ACEOF
8335 #define HAVE_WORKING_FORK 1
8340 if test $ac_cv_c_compiler_gnu = yes; then
8341 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8342 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8343 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8344 $as_echo_n "(cached) " >&6
8346 ac_pattern="Autoconf.*'x'"
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8358 ac_cv_prog_gcc_traditional=yes
8360 ac_cv_prog_gcc_traditional=no
8365 if test $ac_cv_prog_gcc_traditional = no; then
8366 cat >conftest.$ac_ext <<_ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8376 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8377 ac_cv_prog_gcc_traditional=yes
8383 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8384 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8385 if test $ac_cv_prog_gcc_traditional = yes; then
8386 CC="$CC -traditional"
8390 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8391 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8392 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8393 $as_echo_n "(cached) " >&6
8395 rm -f conftest.sym conftest.file
8397 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8398 if test "$cross_compiling" = yes; then
8399 ac_cv_func_lstat_dereferences_slashed_symlink=no
8401 cat >conftest.$ac_ext <<_ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8412 /* Linux will dereference the symlink and fail.
8413 That is better in the sense that it means we will not
8414 have to compile and use the lstat wrapper. */
8415 return lstat ("conftest.sym/", &sbuf) == 0;
8420 rm -f conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428 (eval "$ac_link") 2>&5
8430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8432 { (case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8437 $as_echo "$ac_try_echo") >&5
8438 (eval "$ac_try") 2>&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8444 $as_echo "$as_me: program exited with status $ac_status" >&5
8445 $as_echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_func_lstat_dereferences_slashed_symlink=no
8451 rm -rf conftest.dSYM
8452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8457 # If the `ln -s' command failed, then we probably don't even
8458 # have an lstat function.
8459 ac_cv_func_lstat_dereferences_slashed_symlink=no
8461 rm -f conftest.sym conftest.file
8464 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8465 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8467 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8469 cat >>confdefs.h <<_ACEOF
8470 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8474 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8475 case " $LIBOBJS " in
8476 *" lstat.$ac_objext "* ) ;;
8477 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8483 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8484 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8485 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8486 $as_echo_n "(cached) " >&6
8488 if test "$cross_compiling" = yes; then
8489 ac_cv_func_lstat_empty_string_bug=yes
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 $ac_includes_default
8502 return lstat ("", &sbuf) == 0;
8507 rm -f conftest$ac_exeext
8508 if { (ac_try="$ac_link"
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8514 $as_echo "$ac_try_echo") >&5
8515 (eval "$ac_link") 2>&5
8517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8519 { (case "(($ac_try" in
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8524 $as_echo "$ac_try_echo") >&5
8525 (eval "$ac_try") 2>&5
8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_func_lstat_empty_string_bug=no
8531 $as_echo "$as_me: program exited with status $ac_status" >&5
8532 $as_echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8536 ac_cv_func_lstat_empty_string_bug=yes
8538 rm -rf conftest.dSYM
8539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8544 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8545 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8546 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8547 case " $LIBOBJS " in
8548 *" lstat.$ac_objext "* ) ;;
8549 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8560 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8561 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8562 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8563 $as_echo_n "(cached) " >&6
8565 rm -f conftest.sym conftest.file
8567 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8568 if test "$cross_compiling" = yes; then
8569 ac_cv_func_lstat_dereferences_slashed_symlink=no
8571 cat >conftest.$ac_ext <<_ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 $ac_includes_default
8582 /* Linux will dereference the symlink and fail.
8583 That is better in the sense that it means we will not
8584 have to compile and use the lstat wrapper. */
8585 return lstat ("conftest.sym/", &sbuf) == 0;
8590 rm -f conftest$ac_exeext
8591 if { (ac_try="$ac_link"
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597 $as_echo "$ac_try_echo") >&5
8598 (eval "$ac_link") 2>&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8607 $as_echo "$ac_try_echo") >&5
8608 (eval "$ac_try") 2>&5
8610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8614 $as_echo "$as_me: program exited with status $ac_status" >&5
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8619 ac_cv_func_lstat_dereferences_slashed_symlink=no
8621 rm -rf conftest.dSYM
8622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8627 # If the `ln -s' command failed, then we probably don't even
8628 # have an lstat function.
8629 ac_cv_func_lstat_dereferences_slashed_symlink=no
8631 rm -f conftest.sym conftest.file
8634 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8635 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8637 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8639 cat >>confdefs.h <<_ACEOF
8640 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8644 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8645 case " $LIBOBJS " in
8646 *" lstat.$ac_objext "* ) ;;
8647 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8654 for ac_header in stdlib.h
8656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 $as_echo_n "checking for $ac_header... " >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661 $as_echo_n "(cached) " >&6
8663 ac_res=`eval 'as_val=${'$as_ac_Header'}
8664 $as_echo "$as_val"'`
8665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8666 $as_echo "$ac_res" >&6; }
8668 # Is the header compilable?
8669 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8670 $as_echo_n "checking $ac_header usability... " >&6; }
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 $ac_includes_default
8678 #include <$ac_header>
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8687 $as_echo "$ac_try_echo") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8690 grep -v '^ *+' conftest.er1 >conftest.err
8692 cat conftest.err >&5
8693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && {
8695 test -z "$ac_c_werror_flag" ||
8696 test ! -s conftest.err
8697 } && test -s conftest.$ac_objext; then
8698 ac_header_compiler=yes
8700 $as_echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8703 ac_header_compiler=no
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8708 $as_echo "$ac_header_compiler" >&6; }
8710 # Is the header present?
8711 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8712 $as_echo_n "checking $ac_header presence... " >&6; }
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <$ac_header>
8721 if { (ac_try="$ac_cpp conftest.$ac_ext"
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8727 $as_echo "$ac_try_echo") >&5
8728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } >/dev/null && {
8735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8738 ac_header_preproc=yes
8740 $as_echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 ac_header_preproc=no
8746 rm -f conftest.err conftest.$ac_ext
8747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 $as_echo "$ac_header_preproc" >&6; }
8750 # So? What about this header?
8751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8754 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8757 ac_header_preproc=yes
8760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8761 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8763 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8765 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8767 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8771 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8773 ## ----------------------------------- ##
8774 ## Report this to andreas@eversberg.eu ##
8775 ## ----------------------------------- ##
8777 ) | sed "s/^/$as_me: WARNING: /" >&2
8780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8781 $as_echo_n "checking for $ac_header... " >&6; }
8782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8783 $as_echo_n "(cached) " >&6
8785 eval "$as_ac_Header=\$ac_header_preproc"
8787 ac_res=`eval 'as_val=${'$as_ac_Header'}
8788 $as_echo "$as_val"'`
8789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8790 $as_echo "$ac_res" >&6; }
8793 as_val=`eval 'as_val=${'$as_ac_Header'}
8794 $as_echo "$as_val"'`
8795 if test "x$as_val" = x""yes; then
8796 cat >>confdefs.h <<_ACEOF
8797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8805 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8806 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8807 $as_echo_n "(cached) " >&6
8809 if test "$cross_compiling" = yes; then
8810 ac_cv_func_malloc_0_nonnull=no
8812 cat >conftest.$ac_ext <<_ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h. */
8818 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8819 # include <stdlib.h>
8827 return ! malloc (0);
8832 rm -f conftest$ac_exeext
8833 if { (ac_try="$ac_link"
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8839 $as_echo "$ac_try_echo") >&5
8840 (eval "$ac_link") 2>&5
8842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8844 { (case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849 $as_echo "$ac_try_echo") >&5
8850 (eval "$ac_try") 2>&5
8852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_func_malloc_0_nonnull=yes
8856 $as_echo "$as_me: program exited with status $ac_status" >&5
8857 $as_echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_func_malloc_0_nonnull=no
8863 rm -rf conftest.dSYM
8864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8869 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8870 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8871 if test $ac_cv_func_malloc_0_nonnull = yes; then
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_MALLOC 1
8878 cat >>confdefs.h <<\_ACEOF
8879 #define HAVE_MALLOC 0
8882 case " $LIBOBJS " in
8883 *" malloc.$ac_objext "* ) ;;
8884 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8889 cat >>confdefs.h <<\_ACEOF
8890 #define malloc rpl_malloc
8897 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8898 $as_echo_n "checking for working memcmp... " >&6; }
8899 if test "${ac_cv_func_memcmp_working+set}" = set; then
8900 $as_echo_n "(cached) " >&6
8902 if test "$cross_compiling" = yes; then
8903 ac_cv_func_memcmp_working=no
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 $ac_includes_default
8916 /* Some versions of memcmp are not 8-bit clean. */
8917 char c0 = '\100', c1 = '\200', c2 = '\201';
8918 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8921 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8922 or more and with at least one buffer not starting on a 4-byte boundary.
8923 William Lewis provided this test program. */
8928 for (i = 0; i < 4; i++)
8932 strcpy (a, "--------01111111");
8933 strcpy (b, "--------10000000");
8934 if (memcmp (a, b, 16) >= 0)
8944 rm -f conftest$ac_exeext
8945 if { (ac_try="$ac_link"
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8951 $as_echo "$ac_try_echo") >&5
8952 (eval "$ac_link") 2>&5
8954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8956 { (case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8961 $as_echo "$ac_try_echo") >&5
8962 (eval "$ac_try") 2>&5
8964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_func_memcmp_working=yes
8968 $as_echo "$as_me: program exited with status $ac_status" >&5
8969 $as_echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_cv_func_memcmp_working=no
8975 rm -rf conftest.dSYM
8976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8981 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8982 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8983 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8984 *" memcmp.$ac_objext "* ) ;;
8985 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8990 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8991 $as_echo_n "checking return type of signal handlers... " >&6; }
8992 if test "${ac_cv_type_signal+set}" = set; then
8993 $as_echo_n "(cached) " >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 #include <sys/types.h>
9007 return *(signal (0, 0)) (0) == 1;
9012 rm -f conftest.$ac_objext
9013 if { (ac_try="$ac_compile"
9015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016 *) ac_try_echo=$ac_try;;
9018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9019 $as_echo "$ac_try_echo") >&5
9020 (eval "$ac_compile") 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } && {
9027 test -z "$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 } && test -s conftest.$ac_objext; then
9030 ac_cv_type_signal=int
9032 $as_echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ac_cv_type_signal=void
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9041 $as_echo "$ac_cv_type_signal" >&6; }
9043 cat >>confdefs.h <<_ACEOF
9044 #define RETSIGTYPE $ac_cv_type_signal
9048 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9049 $as_echo_n "checking for working strnlen... " >&6; }
9050 if test "${ac_cv_func_strnlen_working+set}" = set; then
9051 $as_echo_n "(cached) " >&6
9053 if test "$cross_compiling" = yes; then
9054 ac_cv_func_strnlen_working=no
9056 cat >conftest.$ac_ext <<_ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9062 $ac_includes_default
9068 #define S_LEN (sizeof S - 1)
9070 /* At least one implementation is buggy: that of AIX 4.3 would
9071 give strnlen (S, 1) == 3. */
9074 for (i = 0; i < S_LEN + 1; ++i)
9076 int expected = i <= S_LEN ? i : S_LEN;
9077 if (strnlen (S, i) != expected)
9086 rm -f conftest$ac_exeext
9087 if { (ac_try="$ac_link"
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9093 $as_echo "$ac_try_echo") >&5
9094 (eval "$ac_link") 2>&5
9096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9098 { (case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9103 $as_echo "$ac_try_echo") >&5
9104 (eval "$ac_try") 2>&5
9106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_cv_func_strnlen_working=yes
9110 $as_echo "$as_me: program exited with status $ac_status" >&5
9111 $as_echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9115 ac_cv_func_strnlen_working=no
9117 rm -rf conftest.dSYM
9118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9123 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9124 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9125 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9126 *" strnlen.$ac_objext "* ) ;;
9127 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9132 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9133 $as_echo_n "checking for working strtod... " >&6; }
9134 if test "${ac_cv_func_strtod+set}" = set; then
9135 $as_echo_n "(cached) " >&6
9137 if test "$cross_compiling" = yes; then
9138 ac_cv_func_strtod=no
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9147 $ac_includes_default
9155 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9156 char *string = " +69";
9159 value = strtod (string, &term);
9160 if (value != 69 || term != (string + 4))
9165 /* Under Solaris 2.4, strtod returns the wrong value for the
9166 terminating character under some conditions. */
9167 char *string = "NaN";
9169 strtod (string, &term);
9170 if (term != string && *(term - 1) == 0)
9177 rm -f conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184 $as_echo "$ac_try_echo") >&5
9185 (eval "$ac_link") 2>&5
9187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9189 { (case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9194 $as_echo "$ac_try_echo") >&5
9195 (eval "$ac_try") 2>&5
9197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_func_strtod=yes
9201 $as_echo "$as_me: program exited with status $ac_status" >&5
9202 $as_echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9206 ac_cv_func_strtod=no
9208 rm -rf conftest.dSYM
9209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9214 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9215 $as_echo "$ac_cv_func_strtod" >&6; }
9216 if test $ac_cv_func_strtod = no; then
9217 case " $LIBOBJS " in
9218 *" strtod.$ac_objext "* ) ;;
9219 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9223 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9224 $as_echo_n "checking for pow... " >&6; }
9225 if test "${ac_cv_func_pow+set}" = set; then
9226 $as_echo_n "(cached) " >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9236 #define pow innocuous_pow
9238 /* System header to define __stub macros and hopefully few prototypes,
9239 which can conflict with char pow (); below.
9240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9241 <limits.h> exists even on freestanding compilers. */
9244 # include <limits.h>
9246 # include <assert.h>
9251 /* Override any GCC internal prototype to avoid an error.
9252 Use char because int might match the return type of a GCC
9253 builtin and then its argument prototype would still apply. */
9258 /* The GNU C library defines this for functions which it implements
9259 to always fail with ENOSYS. Some functions are actually named
9260 something starting with __ and the normal name is an alias. */
9261 #if defined __stub_pow || defined __stub___pow
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (ac_try="$ac_link"
9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277 *) ac_try_echo=$ac_try;;
9279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9280 $as_echo "$ac_try_echo") >&5
9281 (eval "$ac_link") 2>conftest.er1
9283 grep -v '^ *+' conftest.er1 >conftest.err
9285 cat conftest.err >&5
9286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } && {
9288 test -z "$ac_c_werror_flag" ||
9289 test ! -s conftest.err
9290 } && test -s conftest$ac_exeext && {
9291 test "$cross_compiling" = yes ||
9292 $as_test_x conftest$ac_exeext
9296 $as_echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9302 rm -rf conftest.dSYM
9303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9304 conftest$ac_exeext conftest.$ac_ext
9306 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9307 $as_echo "$ac_cv_func_pow" >&6; }
9309 if test $ac_cv_func_pow = no; then
9310 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9311 $as_echo_n "checking for pow in -lm... " >&6; }
9312 if test "${ac_cv_lib_m_pow+set}" = set; then
9313 $as_echo_n "(cached) " >&6
9315 ac_check_lib_save_LIBS=$LIBS
9317 cat >conftest.$ac_ext <<_ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9324 /* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (ac_try="$ac_link"
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9346 $as_echo "$ac_try_echo") >&5
9347 (eval "$ac_link") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext && {
9357 test "$cross_compiling" = yes ||
9358 $as_test_x conftest$ac_exeext
9362 $as_echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9368 rm -rf conftest.dSYM
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9374 $as_echo "$ac_cv_lib_m_pow" >&6; }
9375 if test "x$ac_cv_lib_m_pow" = x""yes; then
9378 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9379 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9387 for ac_func in vprintf
9389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9391 $as_echo_n "checking for $ac_func... " >&6; }
9392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9393 $as_echo_n "(cached) " >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9403 #define $ac_func innocuous_$ac_func
9405 /* System header to define __stub macros and hopefully few prototypes,
9406 which can conflict with char $ac_func (); below.
9407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9408 <limits.h> exists even on freestanding compilers. */
9411 # include <limits.h>
9413 # include <assert.h>
9418 /* Override any GCC internal prototype to avoid an error.
9419 Use char because int might match the return type of a GCC
9420 builtin and then its argument prototype would still apply. */
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined __stub_$ac_func || defined __stub___$ac_func
9440 rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (ac_try="$ac_link"
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9447 $as_echo "$ac_try_echo") >&5
9448 (eval "$ac_link") 2>conftest.er1
9450 grep -v '^ *+' conftest.er1 >conftest.err
9452 cat conftest.err >&5
9453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } && {
9455 test -z "$ac_c_werror_flag" ||
9456 test ! -s conftest.err
9457 } && test -s conftest$ac_exeext && {
9458 test "$cross_compiling" = yes ||
9459 $as_test_x conftest$ac_exeext
9461 eval "$as_ac_var=yes"
9463 $as_echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9466 eval "$as_ac_var=no"
9469 rm -rf conftest.dSYM
9470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9471 conftest$ac_exeext conftest.$ac_ext
9473 ac_res=`eval 'as_val=${'$as_ac_var'}
9474 $as_echo "$as_val"'`
9475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9476 $as_echo "$ac_res" >&6; }
9477 as_val=`eval 'as_val=${'$as_ac_var'}
9478 $as_echo "$as_val"'`
9479 if test "x$as_val" = x""yes; then
9480 cat >>confdefs.h <<_ACEOF
9481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9484 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9485 $as_echo_n "checking for _doprnt... " >&6; }
9486 if test "${ac_cv_func__doprnt+set}" = set; then
9487 $as_echo_n "(cached) " >&6
9489 cat >conftest.$ac_ext <<_ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497 #define _doprnt innocuous__doprnt
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char _doprnt (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9505 # include <limits.h>
9507 # include <assert.h>
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9519 /* The GNU C library defines this for functions which it implements
9520 to always fail with ENOSYS. Some functions are actually named
9521 something starting with __ and the normal name is an alias. */
9522 #if defined __stub__doprnt || defined __stub____doprnt
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9541 $as_echo "$ac_try_echo") >&5
9542 (eval "$ac_link") 2>conftest.er1
9544 grep -v '^ *+' conftest.er1 >conftest.err
9546 cat conftest.err >&5
9547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest$ac_exeext && {
9552 test "$cross_compiling" = yes ||
9553 $as_test_x conftest$ac_exeext
9555 ac_cv_func__doprnt=yes
9557 $as_echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_cv_func__doprnt=no
9563 rm -rf conftest.dSYM
9564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9565 conftest$ac_exeext conftest.$ac_ext
9567 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9568 $as_echo "$ac_cv_func__doprnt" >&6; }
9569 if test "x$ac_cv_func__doprnt" = x""yes; then
9571 cat >>confdefs.h <<\_ACEOF
9572 #define HAVE_DOPRNT 1
9593 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9597 $as_echo_n "checking for $ac_func... " >&6; }
9598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9599 $as_echo_n "(cached) " >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9609 #define $ac_func innocuous_$ac_func
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char $ac_func (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9617 # include <limits.h>
9619 # include <assert.h>
9624 /* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined __stub_$ac_func || defined __stub___$ac_func
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653 $as_echo "$ac_try_echo") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext && {
9664 test "$cross_compiling" = yes ||
9665 $as_test_x conftest$ac_exeext
9667 eval "$as_ac_var=yes"
9669 $as_echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 eval "$as_ac_var=no"
9675 rm -rf conftest.dSYM
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677 conftest$ac_exeext conftest.$ac_ext
9679 ac_res=`eval 'as_val=${'$as_ac_var'}
9680 $as_echo "$as_val"'`
9681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9682 $as_echo "$ac_res" >&6; }
9683 as_val=`eval 'as_val=${'$as_ac_var'}
9684 $as_echo "$as_val"'`
9685 if test "x$as_val" = x""yes; then
9686 cat >>confdefs.h <<_ACEOF
9687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9695 ac_config_files="$ac_config_files Makefile"
9697 cat >confcache <<\_ACEOF
9698 # This file is a shell script that caches the results of configure
9699 # tests run on this system so they can be shared between configure
9700 # scripts and configure runs, see configure's option --config-cache.
9701 # It is not useful on other systems. If it contains results you don't
9702 # want to keep, you may remove or edit it.
9704 # config.status only pays attention to the cache file if you give it
9705 # the --recheck option to rerun configure.
9707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9713 # The following way of writing the cache mishandles newlines in values,
9714 # but we know of no workaround that is simple, portable, and efficient.
9715 # So, we kill variables containing newlines.
9716 # Ultrix sh set writes to stderr and can't be redirected directly,
9717 # and sets the high bit in the cache file unless we assign to the vars.
9719 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9720 eval ac_val=\$$ac_var
9724 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9725 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9728 _ | IFS | as_nl) ;; #(
9729 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9730 *) $as_unset $ac_var ;;
9736 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9737 *${as_nl}ac_space=\ *)
9738 # `set' does not quote correctly, so add quotes (double-quote
9739 # substitution turns \\\\ into \\, and sed turns \\ into \).
9742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9745 # `set' quotes correctly as required by POSIX, so do not add quotes.
9746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9759 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9760 if test -w "$cache_file"; then
9761 test "x$cache_file" != "x/dev/null" &&
9762 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9763 $as_echo "$as_me: updating cache $cache_file" >&6;}
9764 cat confcache >$cache_file
9766 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9773 # Let make expand exec_prefix.
9774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9776 DEFS=-DHAVE_CONFIG_H
9780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9781 # 1. Remove the extension, and $U if already installed.
9782 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9783 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9785 # will be set to the directory where LIBOBJS objects are built.
9786 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9787 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9791 LTLIBOBJS=$ac_ltlibobjs
9794 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9795 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9796 Usually this means the macro was only invoked conditionally." >&5
9797 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9798 Usually this means the macro was only invoked conditionally." >&2;}
9799 { (exit 1); exit 1; }; }
9801 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9802 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9803 Usually this means the macro was only invoked conditionally." >&5
9804 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9805 Usually this means the macro was only invoked conditionally." >&2;}
9806 { (exit 1); exit 1; }; }
9808 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9809 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9810 Usually this means the macro was only invoked conditionally." >&5
9811 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9812 Usually this means the macro was only invoked conditionally." >&2;}
9813 { (exit 1); exit 1; }; }
9815 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
9816 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9817 Usually this means the macro was only invoked conditionally." >&5
9818 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9819 Usually this means the macro was only invoked conditionally." >&2;}
9820 { (exit 1); exit 1; }; }
9822 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
9823 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
9824 Usually this means the macro was only invoked conditionally." >&5
9825 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
9826 Usually this means the macro was only invoked conditionally." >&2;}
9827 { (exit 1); exit 1; }; }
9830 : ${CONFIG_STATUS=./config.status}
9832 ac_clean_files_save=$ac_clean_files
9833 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9834 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9835 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9836 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9838 # Generated by $as_me.
9839 # Run this file to recreate the current configuration.
9840 # Compiler output produced by configure, useful for debugging
9841 # configure, is in config.log if it exists.
9846 SHELL=\${CONFIG_SHELL-$SHELL}
9849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9850 ## --------------------- ##
9851 ## M4sh Initialization. ##
9852 ## --------------------- ##
9854 # Be more Bourne compatible
9855 DUALCASE=1; export DUALCASE # for MKS sh
9856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9859 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9860 # is contrary to our usage. Disable this feature.
9861 alias -g '${1+"$@"}'='"$@"'
9862 setopt NO_GLOB_SUBST
9864 case `(set -o) 2>/dev/null` in
9865 *posix*) set -o posix ;;
9874 # Avoid depending upon Character Ranges.
9875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9878 as_cr_digits='0123456789'
9879 as_cr_alnum=$as_cr_Letters$as_cr_digits
9884 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9885 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9886 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9887 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9888 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9889 as_echo='printf %s\n'
9890 as_echo_n='printf %s'
9892 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9893 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9894 as_echo_n='/usr/ucb/echo -n'
9896 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9897 as_echo_n_body='eval
9901 expr "X$arg" : "X\\(.*\\)$as_nl";
9902 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9904 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9906 export as_echo_n_body
9907 as_echo_n='sh -c $as_echo_n_body as_echo'
9910 as_echo='sh -c $as_echo_body as_echo'
9913 # The user is always right.
9914 if test "${PATH_SEPARATOR+set}" != set; then
9916 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9917 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9922 # Support unset when possible.
9923 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9931 # We need space, tab and new line, in precisely that order. Quoting is
9932 # there to prevent editors from complaining about space-tab.
9933 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9934 # splitting by setting IFS to empty value.)
9937 # Find who we are. Look in the path if we contain no directory separator.
9939 *[\\/]* ) as_myself=$0 ;;
9940 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 test -z "$as_dir" && as_dir=.
9945 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9951 # We did not find ourselves, most probably we were run as `sh COMMAND'
9952 # in which case we are not to be found in the path.
9953 if test "x$as_myself" = x; then
9956 if test ! -f "$as_myself"; then
9957 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9958 { (exit 1); exit 1; }
9961 # Work around bugs in pre-3.0 UWIN ksh.
9962 for as_var in ENV MAIL MAILPATH
9963 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9975 # Required to use basename.
9976 if expr a : '\(a\)' >/dev/null 2>&1 &&
9977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9983 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9984 as_basename=basename
9990 # Name of the executable.
9991 as_me=`$as_basename -- "$0" ||
9992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9993 X"$0" : 'X\(//\)$' \| \
9994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9996 sed '/^.*\/\([^/][^/]*\)\/*$/{
10015 as_lineno_1=$LINENO
10016 as_lineno_2=$LINENO
10017 test "x$as_lineno_1" != "x$as_lineno_2" &&
10018 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10020 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10021 # uniformly replaced by the line number. The first 'sed' inserts a
10022 # line-number line after each line using $LINENO; the second 'sed'
10023 # does the real work. The second script uses 'N' to pair each
10024 # line-number line with the line containing $LINENO, and appends
10025 # trailing '-' during substitution so that $LINENO is not a special
10026 # case at line end.
10027 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10028 # scripts with optimization help from Paolo Bonzini. Blame Lee
10029 # E. McMahon (1931-1989) for sed's syntax. :-)
10041 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10044 ' >$as_me.lineno &&
10045 chmod +x "$as_me.lineno" ||
10046 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10047 { (exit 1); exit 1; }; }
10049 # Don't try to exec as it changes $[0], causing all sort of problems
10050 # (the dirname of $[0] is not the place where we might find the
10051 # original and so on. Autoconf is especially sensitive to this).
10052 . "./$as_me.lineno"
10053 # Exit status is that of the last command.
10058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10064 ECHO_C= ECHO_N= ECHO_T=
10065 case `echo -n x` in
10067 case `echo 'x\c'` in
10068 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10074 if expr a : '\(a\)' >/dev/null 2>&1 &&
10075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10081 rm -f conf$$ conf$$.exe conf$$.file
10082 if test -d conf$$.dir; then
10083 rm -f conf$$.dir/conf$$.file
10086 mkdir conf$$.dir 2>/dev/null
10088 if (echo >conf$$.file) 2>/dev/null; then
10089 if ln -s conf$$.file conf$$ 2>/dev/null; then
10091 # ... but there are two gotchas:
10092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10094 # In both cases, we have to default to `cp -p'.
10095 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10097 elif ln conf$$.file conf$$ 2>/dev/null; then
10105 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10106 rmdir conf$$.dir 2>/dev/null
10108 if mkdir -p . 2>/dev/null; then
10111 test -d ./-p && rmdir ./-p
10115 if test -x / >/dev/null 2>&1; then
10116 as_test_x='test -x'
10118 if ls -dL / >/dev/null 2>&1; then
10125 if test -d "$1"; then
10131 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10132 ???[sx]*):;;*)false;;esac;fi
10136 as_executable_p=$as_test_x
10138 # Sed expression to map a string onto a valid CPP name.
10139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10141 # Sed expression to map a string onto a valid variable name.
10142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10147 # Save the log message, to keep $[0] and so on meaningful, and to
10148 # report actual input values of CONFIG_FILES etc. instead of their
10149 # values after options handling.
10151 This file was extended by lcr $as_me 1.5, which was
10152 generated by GNU Autoconf 2.63. Invocation command line was
10154 CONFIG_FILES = $CONFIG_FILES
10155 CONFIG_HEADERS = $CONFIG_HEADERS
10156 CONFIG_LINKS = $CONFIG_LINKS
10157 CONFIG_COMMANDS = $CONFIG_COMMANDS
10160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10165 case $ac_config_files in *"
10166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10169 case $ac_config_headers in *"
10170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10175 # Files that config.status was made for.
10176 config_files="$ac_config_files"
10177 config_headers="$ac_config_headers"
10178 config_commands="$ac_config_commands"
10182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10184 \`$as_me' instantiates files from templates according to the
10185 current configuration.
10187 Usage: $0 [OPTION]... [FILE]...
10189 -h, --help print this help, then exit
10190 -V, --version print version number and configuration settings, then exit
10191 -q, --quiet, --silent
10192 do not print progress messages
10193 -d, --debug don't remove temporary files
10194 --recheck update $as_me by reconfiguring in the same conditions
10195 --file=FILE[:TEMPLATE]
10196 instantiate the configuration file FILE
10197 --header=FILE[:TEMPLATE]
10198 instantiate the configuration header FILE
10200 Configuration files:
10203 Configuration headers:
10206 Configuration commands:
10209 Report bugs to <bug-autoconf@gnu.org>."
10212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10214 lcr config.status 1.5
10215 configured by $0, generated by GNU Autoconf 2.63,
10216 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10218 Copyright (C) 2008 Free Software Foundation, Inc.
10219 This config.status script is free software; the Free Software Foundation
10220 gives unlimited permission to copy, distribute and modify it."
10226 test -n "\$AWK" || AWK=awk
10229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10230 # The default lists apply if the user does not specify any file.
10236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10237 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10248 # Handling of the options.
10249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10251 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10252 $as_echo "$ac_cs_version"; exit ;;
10253 --debug | --debu | --deb | --de | --d | -d )
10255 --file | --fil | --fi | --f )
10258 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10260 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10261 ac_need_defaults=false;;
10262 --header | --heade | --head | --hea )
10265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10267 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10268 ac_need_defaults=false;;
10270 # Conflict between --help and --header
10271 { $as_echo "$as_me: error: ambiguous option: $1
10272 Try \`$0 --help' for more information." >&2
10273 { (exit 1); exit 1; }; };;
10274 --help | --hel | -h )
10275 $as_echo "$ac_cs_usage"; exit ;;
10276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10277 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10280 # This is an error.
10281 -*) { $as_echo "$as_me: error: unrecognized option: $1
10282 Try \`$0 --help' for more information." >&2
10283 { (exit 1); exit 1; }; } ;;
10285 *) ac_config_targets="$ac_config_targets $1"
10286 ac_need_defaults=false ;;
10292 ac_configure_extra_args=
10294 if $ac_cs_silent; then
10296 ac_configure_extra_args="$ac_configure_extra_args --silent"
10300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10301 if \$ac_cs_recheck; then
10302 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10304 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10305 CONFIG_SHELL='$SHELL'
10306 export CONFIG_SHELL
10311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10316 ## Running $as_me. ##
10322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10332 # Handling of arguments.
10333 for ac_config_target in $ac_config_targets
10335 case $ac_config_target in
10336 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10337 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10338 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10340 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10341 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10342 { (exit 1); exit 1; }; };;
10347 # If the user did not use the arguments to specify the items to instantiate,
10348 # then the envvar interface is used. Set only those that are not.
10349 # We use the long form for the default assignment because of an extremely
10350 # bizarre bug on SunOS 4.1.3.
10351 if $ac_need_defaults; then
10352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10357 # Have a temporary directory for convenience. Make it in the build tree
10358 # simply because there is no reason against having it here, and in addition,
10359 # creating and moving files from /tmp can sometimes cause problems.
10360 # Hook for its removal unless debugging.
10361 # Note that there is a small window in which the directory will not be cleaned:
10362 # after its creation but before its name has been assigned to `$tmp'.
10366 trap 'exit_status=$?
10367 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10369 trap '{ (exit 1); exit 1; }' 1 2 13 15
10371 # Create a (secure) tmp directory for tmp files.
10374 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10375 test -n "$tmp" && test -d "$tmp"
10378 tmp=./conf$$-$RANDOM
10379 (umask 077 && mkdir "$tmp")
10382 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10383 { (exit 1); exit 1; }
10386 # Set up the scripts for CONFIG_FILES section.
10387 # No need to generate them if there are no CONFIG_FILES.
10388 # This happens for instance with `./config.status config.h'.
10389 if test -n "$CONFIG_FILES"; then
10393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10397 ac_cs_awk_cr=$ac_cr
10400 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10405 echo "cat >conf$$subs.awk <<_ACEOF" &&
10406 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10408 } >conf$$subs.sh ||
10409 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10410 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10411 { (exit 1); exit 1; }; }
10412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10414 for ac_last_try in false false false false false :; do
10415 . ./conf$$subs.sh ||
10416 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10417 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10418 { (exit 1); exit 1; }; }
10420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10421 if test $ac_delim_n = $ac_delim_num; then
10423 elif $ac_last_try; then
10424 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10425 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10426 { (exit 1); exit 1; }; }
10428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10431 rm -f conf$$subs.sh
10433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10434 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10438 s/^/S["/; s/!.*/"]=/
10448 s/\(.\{148\}\).*/\1/
10450 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10462 s/\(.\{148\}\).*/\1/
10464 s/["\\]/\\&/g; s/^/"/; s/$/"/
10468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10473 ' <conf$$subs.awk | sed '
10478 ' >>$CONFIG_STATUS || ac_write_fail=1
10479 rm -f conf$$subs.awk
10480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10482 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10483 for (key in S) S_is_set[key] = 1
10489 nfields = split(line, field, "@")
10491 len = length(field[1])
10492 for (i = 2; i < nfields; i++) {
10494 keylen = length(key)
10495 if (S_is_set[key]) {
10497 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10498 len += length(value) + length(field[++i])
10509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10510 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10511 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10514 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10515 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10516 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10517 { (exit 1); exit 1; }; }
10520 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10521 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10522 # trailing colons and then remove the whole line if VPATH becomes empty
10523 # (actually we leave an empty line to preserve line numbers).
10524 if test "x$srcdir" = x.; then
10525 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10526 s/:*\$(srcdir):*/:/
10527 s/:*\${srcdir}:*/:/
10529 s/^\([^=]*=[ ]*\):*/\1/
10535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10536 fi # test -n "$CONFIG_FILES"
10538 # Set up the scripts for CONFIG_HEADERS section.
10539 # No need to generate them if there are no CONFIG_HEADERS.
10540 # This happens for instance with `./config.status Makefile'.
10541 if test -n "$CONFIG_HEADERS"; then
10542 cat >"$tmp/defines.awk" <<\_ACAWK ||
10546 # Transform confdefs.h into an awk script `defines.awk', embedded as
10547 # here-document in config.status, that substitutes the proper values into
10548 # config.h.in to produce config.h.
10550 # Create a delimiter string that does not exist in confdefs.h, to ease
10551 # handling of long lines.
10553 for ac_last_try in false false :; do
10554 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10555 if test -z "$ac_t"; then
10557 elif $ac_last_try; then
10558 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10559 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10560 { (exit 1); exit 1; }; }
10562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10566 # For the awk script, D is an array of macro values keyed by name,
10567 # likewise P contains macro parameters if any. Preserve backslash
10568 # newline sequences.
10570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10572 s/.\{148\}/&'"$ac_delim"'/g
10575 s/^[ ]*#[ ]*define[ ][ ]*/ /
10582 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10584 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10588 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10589 D["\1"]=" \3\\\\\\n"\\/p
10591 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10596 s/.\{148\}/&'"$ac_delim"'/g
10601 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10604 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10606 ' <confdefs.h | sed '
10607 s/'"$ac_delim"'/"\\\
10608 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10611 for (key in D) D_is_set[key] = 1
10614 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10616 split(line, arg, " ")
10617 if (arg[1] == "#") {
10621 defundef = substr(arg[1], 2)
10624 split(mac1, mac2, "(") #)
10626 prefix = substr(line, 1, index(line, defundef) - 1)
10627 if (D_is_set[macro]) {
10628 # Preserve the white space surrounding the "#".
10629 print prefix "define", macro P[macro] D[macro]
10632 # Replace #undef with comments. This is necessary, for example,
10633 # in the case of _POSIX_SOURCE, which is predefined and required
10634 # on some systems where configure will not decide to define it.
10635 if (defundef == "undef") {
10636 print "/*", prefix defundef, macro, "*/"
10644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10645 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10646 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10647 { (exit 1); exit 1; }; }
10648 fi # test -n "$CONFIG_HEADERS"
10651 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10656 :[FHLC]) ac_mode=$ac_tag; continue;;
10658 case $ac_mode$ac_tag in
10660 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10661 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10662 { (exit 1); exit 1; }; };;
10663 :[FH]-) ac_tag=-:-;;
10664 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10681 -) ac_f="$tmp/stdin";;
10682 *) # Look for the file first in the build tree, then in the source tree
10683 # (if the path is not absolute). The absolute path cannot be DOS-style,
10684 # because $ac_f cannot contain `:'.
10688 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10690 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10691 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10692 { (exit 1); exit 1; }; };;
10694 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10695 ac_file_inputs="$ac_file_inputs '$ac_f'"
10698 # Let's still pretend it is `configure' which instantiates (i.e., don't
10699 # use $as_me), people would be surprised to read:
10700 # /* config.h. Generated by config.status. */
10701 configure_input='Generated from '`
10702 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10704 if test x"$ac_file" != x-; then
10705 configure_input="$ac_file. $configure_input"
10706 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10707 $as_echo "$as_me: creating $ac_file" >&6;}
10709 # Neutralize special characters interpreted by sed in replacement strings.
10710 case $configure_input in #(
10711 *\&* | *\|* | *\\* )
10712 ac_sed_conf_input=`$as_echo "$configure_input" |
10713 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10714 *) ac_sed_conf_input=$configure_input;;
10718 *:-:* | *:-) cat >"$tmp/stdin" \
10719 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10720 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10721 { (exit 1); exit 1; }; } ;;
10726 ac_dir=`$as_dirname -- "$ac_file" ||
10727 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10728 X"$ac_file" : 'X\(//\)[^/]' \| \
10729 X"$ac_file" : 'X\(//\)$' \| \
10730 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10731 $as_echo X"$ac_file" |
10732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10736 /^X\(\/\/\)[^/].*/{
10751 -*) as_dir=./$as_dir;;
10753 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10757 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10758 *) as_qdir=$as_dir;;
10760 as_dirs="'$as_qdir' $as_dirs"
10761 as_dir=`$as_dirname -- "$as_dir" ||
10762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10763 X"$as_dir" : 'X\(//\)[^/]' \| \
10764 X"$as_dir" : 'X\(//\)$' \| \
10765 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10766 $as_echo X"$as_dir" |
10767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10771 /^X\(\/\/\)[^/].*/{
10784 test -d "$as_dir" && break
10786 test -z "$as_dirs" || eval "mkdir $as_dirs"
10787 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10788 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10789 { (exit 1); exit 1; }; }; }
10793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10796 # A ".." for each directory in $ac_dir_suffix.
10797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10798 case $ac_top_builddir_sub in
10799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10803 ac_abs_top_builddir=$ac_pwd
10804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10805 # for backward compatibility:
10806 ac_top_builddir=$ac_top_build_prefix
10809 .) # We are building in place.
10811 ac_top_srcdir=$ac_top_builddir_sub
10812 ac_abs_top_srcdir=$ac_pwd ;;
10813 [\\/]* | ?:[\\/]* ) # Absolute name.
10814 ac_srcdir=$srcdir$ac_dir_suffix;
10815 ac_top_srcdir=$srcdir
10816 ac_abs_top_srcdir=$srcdir ;;
10817 *) # Relative name.
10818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10819 ac_top_srcdir=$ac_top_build_prefix$srcdir
10820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10838 # If the template does not know about datarootdir, expand it.
10839 # FIXME: This hack should be removed a few years after 2.60.
10840 ac_datarootdir_hack=; ac_datarootdir_seen=
10853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10854 *datarootdir*) ac_datarootdir_seen=yes;;
10855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10856 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10860 ac_datarootdir_hack='
10861 s&@datadir@&$datadir&g
10862 s&@docdir@&$docdir&g
10863 s&@infodir@&$infodir&g
10864 s&@localedir@&$localedir&g
10865 s&@mandir@&$mandir&g
10866 s&\\\${datarootdir}&$datarootdir&g' ;;
10870 # Neutralize VPATH when `$srcdir' = `.'.
10871 # Shell code in configure.ac might set extrasub.
10872 # FIXME: do we really want to maintain this feature?
10873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10874 ac_sed_extra="$ac_vpsub
10877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10880 s|@configure_input@|$ac_sed_conf_input|;t t
10881 s&@top_builddir@&$ac_top_builddir_sub&;t t
10882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10883 s&@srcdir@&$ac_srcdir&;t t
10884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10885 s&@top_srcdir@&$ac_top_srcdir&;t t
10886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10887 s&@builddir@&$ac_builddir&;t t
10888 s&@abs_builddir@&$ac_abs_builddir&;t t
10889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10890 s&@INSTALL@&$ac_INSTALL&;t t
10891 $ac_datarootdir_hack
10893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10894 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10895 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10896 { (exit 1); exit 1; }; }
10898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10899 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10901 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10902 which seems to be undefined. Please make sure it is defined." >&5
10903 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10904 which seems to be undefined. Please make sure it is defined." >&2;}
10908 -) cat "$tmp/out" && rm -f "$tmp/out";;
10909 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10911 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10912 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10913 { (exit 1); exit 1; }; }
10919 if test x"$ac_file" != x-; then
10921 $as_echo "/* $configure_input */" \
10922 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10923 } >"$tmp/config.h" \
10924 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10925 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10926 { (exit 1); exit 1; }; }
10927 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10928 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10929 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10932 mv "$tmp/config.h" "$ac_file" \
10933 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10934 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10935 { (exit 1); exit 1; }; }
10938 $as_echo "/* $configure_input */" \
10939 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10940 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10941 $as_echo "$as_me: error: could not create -" >&2;}
10942 { (exit 1); exit 1; }; }
10944 # Compute "$ac_file"'s index in $config_headers.
10946 for _am_header in $config_headers :; do
10947 case $_am_header in
10948 "$ac_file" | "$ac_file":* )
10951 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10954 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10956 X"$ac_file" : 'X\(//\)[^/]' \| \
10957 X"$ac_file" : 'X\(//\)$' \| \
10958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10959 $as_echo X"$ac_file" |
10960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10964 /^X\(\/\/\)[^/].*/{
10976 s/.*/./; q'`/stamp-h$_am_stamp_count
10979 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10980 $as_echo "$as_me: executing $ac_file commands" >&6;}
10985 case $ac_file$ac_mode in
10986 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10987 # Strip MF so we end up with the name of the file.
10988 mf=`echo "$mf" | sed -e 's/:.*$//'`
10989 # Check whether this is an Automake generated Makefile or not.
10990 # We used to match only the files named `Makefile.in', but
10991 # some people rename them; so instead we look at the file content.
10992 # Grep'ing the first line is not enough: some people post-process
10993 # each Makefile.in and add a new line on top of each file to say so.
10994 # So let's grep whole file.
10995 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10996 dirpart=`$as_dirname -- "$mf" ||
10997 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10998 X"$mf" : 'X\(//\)[^/]' \| \
10999 X"$mf" : 'X\(//\)$' \| \
11000 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11006 /^X\(\/\/\)[^/].*/{
11022 # Extract the definition of DEPDIR, am__include, and am__quote
11023 # from the Makefile without running `make'.
11024 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11025 test -z "$DEPDIR" && continue
11026 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11027 test -z "am__include" && continue
11028 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11029 # When using ansi2knr, U may be empty or an underscore; expand it
11030 U=`sed -n 's/^U = //p' < "$mf"`
11031 # Find all dependency output files, they are included files with
11032 # $(DEPDIR) in their names. We invoke sed twice because it is the
11033 # simplest approach to changing $(DEPDIR) to its actual value in the
11035 for file in `sed -n "
11036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11038 # Make sure the directory exists.
11039 test -f "$dirpart/$file" && continue
11040 fdir=`$as_dirname -- "$file" ||
11041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11042 X"$file" : 'X\(//\)[^/]' \| \
11043 X"$file" : 'X\(//\)$' \| \
11044 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11045 $as_echo X"$file" |
11046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11050 /^X\(\/\/\)[^/].*/{
11063 { as_dir=$dirpart/$fdir
11065 -*) as_dir=./$as_dir;;
11067 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11072 *) as_qdir=$as_dir;;
11074 as_dirs="'$as_qdir' $as_dirs"
11075 as_dir=`$as_dirname -- "$as_dir" ||
11076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11077 X"$as_dir" : 'X\(//\)[^/]' \| \
11078 X"$as_dir" : 'X\(//\)$' \| \
11079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11080 $as_echo X"$as_dir" |
11081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11085 /^X\(\/\/\)[^/].*/{
11098 test -d "$as_dir" && break
11100 test -z "$as_dirs" || eval "mkdir $as_dirs"
11101 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11102 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11103 { (exit 1); exit 1; }; }; }
11104 # echo "creating $dirpart/$file"
11105 echo '# dummy' > "$dirpart/$file"
11114 { (exit 0); exit 0; }
11116 chmod +x $CONFIG_STATUS
11117 ac_clean_files=$ac_clean_files_save
11119 test $ac_write_fail = 0 ||
11120 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11121 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11122 { (exit 1); exit 1; }; }
11125 # configure is writing to config.log, and then calls config.status.
11126 # config.status does its own redirection, appending to config.log.
11127 # Unfortunately, on DOS this fails, as config.log is still kept open
11128 # by configure, so config.status won't be able to write to it; its
11129 # output is simply discarded. So we exec the FD to /dev/null,
11130 # effectively closing config.log, so it can be properly (re)opened and
11131 # appended to by config.status. When coming back to configure, we
11132 # need to make the FD available again.
11133 if test "$no_create" != yes; then
11135 ac_config_status_args=
11136 test "$silent" = yes &&
11137 ac_config_status_args="$ac_config_status_args --quiet"
11139 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11141 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11142 # would make configure fail if this is the last instruction.
11143 $ac_cs_success || { (exit 1); exit 1; }
11145 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11146 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11147 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}