2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for lcr 1.7.
5 # Report bugs to <andreas@eversberg.eu>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: andreas@eversberg.eu about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='lcr'
555 PACKAGE_VERSION='1.7'
556 PACKAGE_STRING='lcr 1.7'
557 PACKAGE_BUGREPORT='andreas@eversberg.eu'
560 ac_unique_file="main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars='am__EXEEXT_FALSE
611 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
612 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
637 INSTALL_STRIP_PROGRAM
689 program_transform_name
702 enable_option_checking
703 enable_dependency_tracking
710 ac_precious_vars='build_alias
724 # Initialize some variables set by options.
726 ac_init_version=false
727 ac_unrecognized_opts=
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
738 program_transform_name=s,x,x,
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763 infodir='${datarootdir}/info'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\$ac_option
784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830 as_fn_error "invalid feature name: $ac_useropt"
831 ac_useropt_orig=$ac_useropt
832 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833 case $ac_user_opts in
837 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838 ac_unrecognized_sep=', ';;
840 eval enable_$ac_useropt=no ;;
842 -docdir | --docdir | --docdi | --doc | --do)
844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 -enable-* | --enable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
866 eval enable_$ac_useropt=\$ac_optarg ;;
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
881 -help | --help | --hel | --he | -h)
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 htmldir=$ac_optarg ;;
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
911 -libdir | --libdir | --libdi | --libd)
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
923 -localedir | --localedir | --localedi | --localed | --locale)
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 # Obsolete; use --without-fp.
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1002 -psdir | --psdir | --psdi | --psd | --ps)
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 sbindir=$ac_optarg ;;
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 sharedstatedir=$ac_optarg ;;
1028 -site | --site | --sit)
1030 -site=* | --site=* | --sit=*)
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1057 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval with_$ac_useropt=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval with_$ac_useropt=no ;;
1089 # Obsolete; use --with-x.
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1106 -*) as_fn_error "unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information."
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 case $ac_envvar in #(
1114 '' | [0-9]* | *[!_$as_cr_alnum]* )
1115 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1117 eval $ac_envvar=\$ac_optarg
1118 export $ac_envvar ;;
1121 # FIXME: should be removed in autoconf 3.0.
1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1131 if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 as_fn_error "missing argument to $ac_option"
1136 if test -n "$ac_unrecognized_opts"; then
1137 case $enable_option_checking in
1139 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1140 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144 # Check all directory arguments for consistency.
1145 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146 datadir sysconfdir sharedstatedir localstatedir includedir \
1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148 libdir localedir mandir
1150 eval ac_val=\$$ac_var
1151 # Remove trailing slashes.
1154 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155 eval $ac_var=\$ac_val;;
1157 # Be sure to have absolute directory names.
1159 [\\/$]* | ?:[\\/]* ) continue;;
1160 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1170 target=$target_alias
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x; then
1174 if test "x$build_alias" = x; then
1175 cross_compiling=maybe
1176 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1177 If a cross compiler is detected then cross compile mode will be used." >&2
1178 elif test "x$build_alias" != "x$host_alias"; then
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186 test "$silent" = yes && exec 6>/dev/null
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192 as_fn_error "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194 as_fn_error "pwd does not report name of working directory"
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$as_myself" : 'X\(//\)[^/]' \| \
1204 X"$as_myself" : 'X\(//\)$' \| \
1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1229 ac_srcdir_defaulted=no
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 # Report the --help message.
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1263 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1270 Defaults for the options are specified in brackets.
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1294 For better control, use the options below.
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1321 --program-prefix=PREFIX prepend PREFIX to installed program names
1322 --program-suffix=SUFFIX append SUFFIX to installed program names
1323 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive ) echo "Configuration of lcr 1.7:";;
1334 --disable-option-checking ignore unrecognized --enable/--with options
1335 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1336 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1337 --disable-dependency-tracking speeds up one-time build
1338 --enable-dependency-tracking do not reject slow dependency extractors
1341 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1342 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1343 --with-asterisk compile with built-in Asterisk channel driver
1346 --with-ssl compile with ssl support (libcrypto) [default=check]
1348 --with-gsm-bs compile with OpenBSC support [default=check]
1350 --with-gsm-ms compile with Osmocom-bb support [default=check]
1352 --with-ss5 compile with CCITT No. 5 support [default=no]
1355 Some influential environment variables:
1356 CC C compiler command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1359 nonstandard directory <lib dir>
1360 LIBS libraries to pass to the linker, e.g. -l<library>
1361 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1362 you have headers in a nonstandard directory <include dir>
1364 CXX C++ compiler command
1365 CXXFLAGS C++ compiler flags
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1370 Report bugs to <andreas@eversberg.eu>.
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" ||
1379 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 ac_abs_top_builddir=$ac_pwd
1395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir=$ac_top_build_prefix
1400 .) # We are building in place.
1402 ac_top_srcdir=$ac_top_builddir_sub
1403 ac_abs_top_srcdir=$ac_pwd ;;
1404 [\\/]* | ?:[\\/]* ) # Absolute name.
1405 ac_srcdir=$srcdir$ac_dir_suffix;
1406 ac_top_srcdir=$srcdir
1407 ac_abs_top_srcdir=$srcdir ;;
1409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1415 cd "$ac_dir" || { ac_status=$?; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1422 $SHELL "$ac_srcdir/configure" --help=recursive
1424 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1426 cd "$ac_pwd" || { ac_status=$?; break; }
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1434 generated by GNU Autoconf 2.65
1436 Copyright (C) 2009 Free Software Foundation, Inc.
1437 This configure script is free software; the Free Software Foundation
1438 gives unlimited permission to copy, distribute and modify it.
1443 ## ------------------------ ##
1444 ## Autoconf initialization. ##
1445 ## ------------------------ ##
1447 # ac_fn_c_try_compile LINENO
1448 # --------------------------
1449 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1450 ac_fn_c_try_compile ()
1452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453 rm -f conftest.$ac_objext
1454 if { { ac_try="$ac_compile"
1456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457 *) ac_try_echo=$ac_try;;
1459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460 $as_echo "$ac_try_echo"; } >&5
1461 (eval "$ac_compile") 2>conftest.err
1463 if test -s conftest.err; then
1464 grep -v '^ *+' conftest.err >conftest.er1
1465 cat conftest.er1 >&5
1466 mv -f conftest.er1 conftest.err
1468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469 test $ac_status = 0; } && {
1470 test -z "$ac_c_werror_flag" ||
1471 test ! -s conftest.err
1472 } && test -s conftest.$ac_objext; then :
1475 $as_echo "$as_me: failed program was:" >&5
1476 sed 's/^/| /' conftest.$ac_ext >&5
1480 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1481 as_fn_set_status $ac_retval
1483 } # ac_fn_c_try_compile
1485 # ac_fn_c_try_cpp LINENO
1486 # ----------------------
1487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 if { { ac_try="$ac_cpp conftest.$ac_ext"
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } >/dev/null && {
1507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1518 as_fn_set_status $ac_retval
1522 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1523 # -------------------------------------------------------
1524 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1525 # the include files in INCLUDES and setting the cache variable VAR
1527 ac_fn_c_check_header_mongrel ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1532 $as_echo_n "checking for $2... " >&6; }
1533 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1534 $as_echo_n "(cached) " >&6
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1538 $as_echo "$ac_res" >&6; }
1540 # Is the header compilable?
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1542 $as_echo_n "checking $2 usability... " >&6; }
1543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1544 /* end confdefs.h. */
1548 if ac_fn_c_try_compile "$LINENO"; then :
1549 ac_header_compiler=yes
1551 ac_header_compiler=no
1553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1555 $as_echo "$ac_header_compiler" >&6; }
1557 # Is the header present?
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1559 $as_echo_n "checking $2 presence... " >&6; }
1560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1561 /* end confdefs.h. */
1564 if ac_fn_c_try_cpp "$LINENO"; then :
1565 ac_header_preproc=yes
1567 ac_header_preproc=no
1569 rm -f conftest.err conftest.$ac_ext
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1571 $as_echo "$ac_header_preproc" >&6; }
1573 # So? What about this header?
1574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1577 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1579 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1583 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1585 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1587 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1589 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1591 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1593 ## ----------------------------------- ##
1594 ## Report this to andreas@eversberg.eu ##
1595 ## ----------------------------------- ##
1597 ) | sed "s/^/$as_me: WARNING: /" >&2
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1603 $as_echo_n "(cached) " >&6
1605 eval "$3=\$ac_header_compiler"
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 } # ac_fn_c_check_header_mongrel
1615 # ac_fn_c_try_run LINENO
1616 # ----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1618 # that executables *can* be run.
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_link"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>&5
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1633 { { case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_try") 2>&5
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; }; }; then :
1645 $as_echo "$as_me: program exited with status $ac_status" >&5
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=$ac_status
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 as_fn_set_status $ac_retval
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_cxx_try_compile LINENO
1689 # ----------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_cxx_try_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_cxx_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_cxx_try_compile
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 $as_test_x conftest$ac_exeext
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 as_fn_set_status $ac_retval
1770 } # ac_fn_c_try_link
1772 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1773 # -------------------------------------------
1774 # Tests whether TYPE exists after having included INCLUDES, setting cache
1775 # variable VAR accordingly.
1776 ac_fn_c_check_type ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1810 if ac_fn_c_try_compile "$LINENO"; then :
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 } # ac_fn_c_check_type
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1849 # include <limits.h>
1851 # include <assert.h>
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1878 if ac_fn_c_try_link "$LINENO"; then :
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 } # ac_fn_c_check_func
1892 cat >config.log <<_ACEOF
1893 This file contains any messages produced by compilers while
1894 running configure, to aid debugging if configure makes a mistake.
1896 It was created by lcr $as_me 1.7, which was
1897 generated by GNU Autoconf 2.65. Invocation command line was
1909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1918 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1919 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1922 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1923 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1924 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir=.
1933 $as_echo "PATH: $as_dir"
1949 # Keep a trace of the command line.
1950 # Strip out --no-create and --no-recursion so they do not pile up.
1951 # Strip out --silent because we don't want to record it for future runs.
1952 # Also quote any args containing shell meta-characters.
1953 # Make two passes to allow for proper duplicate-argument suppression.
1957 ac_must_keep_next=false
1963 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965 | -silent | --silent | --silen | --sile | --sil)
1968 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1971 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1973 as_fn_append ac_configure_args1 " '$ac_arg'"
1974 if test $ac_must_keep_next = true; then
1975 ac_must_keep_next=false # Got value, back to normal.
1978 *=* | --config-cache | -C | -disable-* | --disable-* \
1979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981 | -with-* | --with-* | -without-* | --without-* | --x)
1982 case "$ac_configure_args0 " in
1983 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1986 -* ) ac_must_keep_next=true ;;
1989 as_fn_append ac_configure_args " '$ac_arg'"
1994 { ac_configure_args0=; unset ac_configure_args0;}
1995 { ac_configure_args1=; unset ac_configure_args1;}
1997 # When interrupted or exit'd, cleanup temporary files, and complete
1998 # config.log. We remove comments because anyway the quotes in there
1999 # would cause problems or look ugly.
2000 # WARNING: Use '\'' to represent an apostrophe within the trap.
2001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002 trap 'exit_status=$?
2003 # Save into config.log some information that might help in debugging.
2008 ## ---------------- ##
2009 ## Cache variables. ##
2010 ## ---------------- ##
2013 # The following way of writing the cache mishandles newlines in values,
2015 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2016 eval ac_val=\$$ac_var
2020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2024 _ | IFS | as_nl) ;; #(
2025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2026 *) { eval $ac_var=; unset $ac_var;} ;;
2031 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2032 *${as_nl}ac_space=\ *)
2034 "s/'\''/'\''\\\\'\'''\''/g;
2035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ## ----------------- ##
2047 ## Output variables. ##
2048 ## ----------------- ##
2051 for ac_var in $ac_subst_vars
2053 eval ac_val=\$$ac_var
2055 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 $as_echo "$ac_var='\''$ac_val'\''"
2061 if test -n "$ac_subst_files"; then
2063 ## ------------------- ##
2064 ## File substitutions. ##
2065 ## ------------------- ##
2068 for ac_var in $ac_subst_files
2070 eval ac_val=\$$ac_var
2072 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 $as_echo "$ac_var='\''$ac_val'\''"
2079 if test -s confdefs.h; then
2089 test "$ac_signal" != 0 &&
2090 $as_echo "$as_me: caught signal $ac_signal"
2091 $as_echo "$as_me: exit $exit_status"
2093 rm -f core *.core core.conftest.* &&
2094 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2097 for ac_signal in 1 2 13 15; do
2098 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2103 rm -f -r conftest* confdefs.h
2105 $as_echo "/* confdefs.h */" > confdefs.h
2107 # Predefined preprocessor variables.
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_NAME "$PACKAGE_NAME"
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_STRING "$PACKAGE_STRING"
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_URL "$PACKAGE_URL"
2134 # Let the site file select an alternate cache file if it wants to.
2135 # Prefer an explicitly selected file to automatically selected ones.
2138 if test -n "$CONFIG_SITE"; then
2139 ac_site_file1=$CONFIG_SITE
2140 elif test "x$prefix" != xNONE; then
2141 ac_site_file1=$prefix/share/config.site
2142 ac_site_file2=$prefix/etc/config.site
2144 ac_site_file1=$ac_default_prefix/share/config.site
2145 ac_site_file2=$ac_default_prefix/etc/config.site
2147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2149 test "x$ac_site_file" = xNONE && continue
2150 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2153 sed 's/^/| /' "$ac_site_file" >&5
2158 if test -r "$cache_file"; then
2159 # Some versions of bash will fail to source /dev/null (special files
2160 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2161 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2163 $as_echo "$as_me: loading cache $cache_file" >&6;}
2165 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2166 *) . "./$cache_file";;
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2171 $as_echo "$as_me: creating cache $cache_file" >&6;}
2175 # Check that the precious variables saved in the cache have kept the same
2177 ac_cache_corrupted=false
2178 for ac_var in $ac_precious_vars; do
2179 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2180 eval ac_new_set=\$ac_env_${ac_var}_set
2181 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2182 eval ac_new_val=\$ac_env_${ac_var}_value
2183 case $ac_old_set,$ac_new_set in
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2187 ac_cache_corrupted=: ;;
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2190 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2191 ac_cache_corrupted=: ;;
2194 if test "x$ac_old_val" != "x$ac_new_val"; then
2195 # differences in whitespace do not lead to failure.
2196 ac_old_val_w=`echo x $ac_old_val`
2197 ac_new_val_w=`echo x $ac_new_val`
2198 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2200 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2201 ac_cache_corrupted=:
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2204 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2205 eval $ac_var=\$ac_old_val
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2208 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2210 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2213 # Pass precious variables to config.status.
2214 if test "$ac_new_set" = set; then
2216 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2217 *) ac_arg=$ac_var=$ac_new_val ;;
2219 case " $ac_configure_args " in
2220 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2221 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2225 if $ac_cache_corrupted; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2229 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2230 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2232 ## -------------------- ##
2233 ## Main body of script. ##
2234 ## -------------------- ##
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 ac_config_headers="$ac_config_headers config.h"
2248 # fix warnings from autoconf + automake
2250 ac_cpp='$CPP $CPPFLAGS'
2251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254 if test -n "$ac_tool_prefix"; then
2255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2258 $as_echo_n "checking for $ac_word... " >&6; }
2259 if test "${ac_cv_prog_CC+set}" = set; then :
2260 $as_echo_n "(cached) " >&6
2262 if test -n "$CC"; then
2263 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2272 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 if test -n "$CC"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2285 $as_echo "$CC" >&6; }
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2288 $as_echo "no" >&6; }
2293 if test -z "$ac_cv_prog_CC"; then
2295 # Extract the first word of "gcc", so it can be a program name with args.
2296 set dummy gcc; ac_word=$2
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2298 $as_echo_n "checking for $ac_word... " >&6; }
2299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2300 $as_echo_n "(cached) " >&6
2302 if test -n "$ac_ct_CC"; then
2303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 ac_cv_prog_ac_ct_CC="gcc"
2313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323 if test -n "$ac_ct_CC"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2325 $as_echo "$ac_ct_CC" >&6; }
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2328 $as_echo "no" >&6; }
2331 if test "x$ac_ct_CC" = x; then
2334 case $cross_compiling:$ac_tool_warned in
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2338 ac_tool_warned=yes ;;
2346 if test -z "$CC"; then
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}cc; ac_word=$2
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if test "${ac_cv_prog_CC+set}" = set; then :
2353 $as_echo_n "(cached) " >&6
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_CC="${ac_tool_prefix}cc"
2366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 if test -n "$CC"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2378 $as_echo "$CC" >&6; }
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381 $as_echo "no" >&6; }
2387 if test -z "$CC"; then
2388 # Extract the first word of "cc", so it can be a program name with args.
2389 set dummy cc; ac_word=$2
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391 $as_echo_n "checking for $ac_word... " >&6; }
2392 if test "${ac_cv_prog_CC+set}" = set; then :
2393 $as_echo_n "(cached) " >&6
2395 if test -n "$CC"; then
2396 ac_cv_prog_CC="$CC" # Let the user override the test.
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2407 ac_prog_rejected=yes
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 if test $ac_prog_rejected = yes; then
2419 # We found a bogon in the path, so make sure we never use it.
2420 set dummy $ac_cv_prog_CC
2422 if test $# != 0; then
2423 # We chose a different compiler from the bogus one.
2424 # However, it has the same basename, so the bogon will be chosen
2425 # first if we set CC to just the basename; use the full file name.
2427 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2433 if test -n "$CC"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2443 if test -z "$CC"; then
2444 if test -n "$ac_tool_prefix"; then
2445 for ac_prog in cl.exe
2447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if test "${ac_cv_prog_CC+set}" = set; then :
2452 $as_echo_n "(cached) " >&6
2454 if test -n "$CC"; then
2455 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 if test -n "$CC"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2477 $as_echo "$CC" >&6; }
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480 $as_echo "no" >&6; }
2484 test -n "$CC" && break
2487 if test -z "$CC"; then
2489 for ac_prog in cl.exe
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy $ac_prog; ac_word=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2496 $as_echo_n "(cached) " >&6
2498 if test -n "$ac_ct_CC"; then
2499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 ac_cv_prog_ac_ct_CC="$ac_prog"
2509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521 $as_echo "$ac_ct_CC" >&6; }
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2528 test -n "$ac_ct_CC" && break
2531 if test "x$ac_ct_CC" = x; then
2534 case $cross_compiling:$ac_tool_warned in
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2538 ac_tool_warned=yes ;;
2547 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 as_fn_error "no acceptable C compiler found in \$PATH
2550 See \`config.log' for more details." "$LINENO" 5; }
2552 # Provide some information about the compiler.
2553 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2556 for ac_option in --version -v -V -qversion; do
2557 { { ac_try="$ac_compiler $ac_option >&5"
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2566 if test -s conftest.err; then
2568 ... rest of stderr output deleted ...
2569 10q' conftest.err >conftest.er1
2570 cat conftest.er1 >&5
2572 rm -f conftest.er1 conftest.err
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; }
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2588 ac_clean_files_save=$ac_clean_files
2589 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2590 # Try to create an executable without -o first, disregard a.out.
2591 # It will help us diagnose broken compilers, and finding out an intuition
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2594 $as_echo_n "checking whether the C compiler works... " >&6; }
2595 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2597 # The possible output files:
2598 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2601 for ac_file in $ac_files
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2610 if { { ac_try="$ac_link_default"
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_link_default") 2>&5
2619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; }; then :
2621 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2622 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2623 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2624 # so that the user can short-circuit this test for compilers unknown to
2626 for ac_file in $ac_files ''
2628 test -f "$ac_file" || continue
2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2633 # We found the default executable, but exeext='' is most
2637 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2639 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 # We set ac_cv_exeext here because the later test for it is not
2642 # safe: cross compilers may not add the suffix if given an `-o'
2643 # argument, so we may need to know it at that point already.
2644 # Even if this section looks crufty: it has the advantage of
2651 test "$ac_cv_exeext" = no && ac_cv_exeext=
2656 if test -z "$ac_file"; then :
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 $as_echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 { as_fn_set_status 77
2665 as_fn_error "C compiler cannot create executables
2666 See \`config.log' for more details." "$LINENO" 5; }; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2672 $as_echo_n "checking for C compiler default output file name... " >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2674 $as_echo "$ac_file" >&6; }
2675 ac_exeext=$ac_cv_exeext
2677 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2678 ac_clean_files=$ac_clean_files_save
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2680 $as_echo_n "checking for suffix of executables... " >&6; }
2681 if { { ac_try="$ac_link"
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_link") 2>&5
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; }; then :
2692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2694 # work properly (i.e., refer to `conftest.exe'), while it won't with
2696 for ac_file in conftest.exe conftest conftest.*; do
2697 test -f "$ac_file" || continue
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error "cannot compute suffix of executables: cannot compile and link
2709 See \`config.log' for more details." "$LINENO" 5; }
2711 rm -f conftest conftest$ac_cv_exeext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2713 $as_echo "$ac_cv_exeext" >&6; }
2715 rm -f conftest.$ac_ext
2716 EXEEXT=$ac_cv_exeext
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2724 FILE *f = fopen ("conftest.out", "w");
2725 return ferror (f) || fclose (f) != 0;
2731 ac_clean_files="$ac_clean_files conftest.out"
2732 # Check that the compiler produces executables we can run. If not, either
2733 # the compiler is broken, or we cross compile.
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2735 $as_echo_n "checking whether we are cross compiling... " >&6; }
2736 if test "$cross_compiling" != yes; then
2737 { { ac_try="$ac_link"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 $as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_link") 2>&5
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; }
2748 if { ac_try='./conftest$ac_cv_exeext'
2749 { { case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_try") 2>&5
2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }; }; then
2761 if test "$cross_compiling" = maybe; then
2764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error "cannot run C compiled programs.
2767 If you meant to cross compile, use \`--host'.
2768 See \`config.log' for more details." "$LINENO" 5; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2773 $as_echo "$cross_compiling" >&6; }
2775 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2776 ac_clean_files=$ac_clean_files_save
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2778 $as_echo_n "checking for suffix of object files... " >&6; }
2779 if test "${ac_cv_objext+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2793 rm -f conftest.o conftest.obj
2794 if { { ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_compile") 2>&5
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
2805 for ac_file in conftest.o conftest.obj conftest.*; do
2806 test -f "$ac_file" || continue;
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2814 $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error "cannot compute suffix of object files: cannot compile
2820 See \`config.log' for more details." "$LINENO" 5; }
2822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2825 $as_echo "$ac_cv_objext" >&6; }
2826 OBJEXT=$ac_cv_objext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2830 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2847 if ac_fn_c_try_compile "$LINENO"; then :
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2858 if test $ac_compiler_gnu = yes; then
2863 ac_test_CFLAGS=${CFLAGS+set}
2864 ac_save_CFLAGS=$CFLAGS
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2867 if test "${ac_cv_prog_cc_g+set}" = set; then :
2868 $as_echo_n "(cached) " >&6
2870 ac_save_c_werror_flag=$ac_c_werror_flag
2871 ac_c_werror_flag=yes
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2885 if ac_fn_c_try_compile "$LINENO"; then :
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2900 if ac_fn_c_try_compile "$LINENO"; then :
2903 ac_c_werror_flag=$ac_save_c_werror_flag
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2916 if ac_fn_c_try_compile "$LINENO"; then :
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 ac_c_werror_flag=$ac_save_c_werror_flag
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2927 $as_echo "$ac_cv_prog_cc_g" >&6; }
2928 if test "$ac_test_CFLAGS" = set; then
2929 CFLAGS=$ac_save_CFLAGS
2930 elif test $ac_cv_prog_cc_g = yes; then
2931 if test "$GCC" = yes; then
2937 if test "$GCC" = yes; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2945 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2948 ac_cv_prog_cc_c89=no
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2954 #include <sys/types.h>
2955 #include <sys/stat.h>
2956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2957 struct buf { int x; };
2958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2959 static char *e (p, i)
2965 static char *f (char * (*g) (char **, int), char **p, ...)
2970 s = g (p, va_arg (v,int));
2975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2976 function prototypes and stuff, but not '\xHH' hex character constants.
2977 These don't provoke an error unfortunately, instead are silently treated
2978 as 'x'. The following induces an error, until -std is added to get
2979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2980 array size at least. It's necessary to write '\x00'==0 to get something
2981 that's true only with -std. */
2982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2985 inside strings and character constants. */
2987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2989 int test (int i, double x);
2990 struct s1 {int (*f) (int a);};
2991 struct s2 {int (*f) (double a);};
2992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3006 CC="$ac_save_CC $ac_arg"
3007 if ac_fn_c_try_compile "$LINENO"; then :
3008 ac_cv_prog_cc_c89=$ac_arg
3010 rm -f core conftest.err conftest.$ac_objext
3011 test "x$ac_cv_prog_cc_c89" != "xno" && break
3013 rm -f conftest.$ac_ext
3018 case "x$ac_cv_prog_cc_c89" in
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3021 $as_echo "none needed" >&6; } ;;
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3024 $as_echo "unsupported" >&6; } ;;
3026 CC="$CC $ac_cv_prog_cc_c89"
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3030 if test "x$ac_cv_prog_cc_c89" != xno; then :
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3047 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3048 # On Suns, sometimes $CPP names a directory.
3049 if test -n "$CPP" && test -d "$CPP"; then
3052 if test -z "$CPP"; then
3053 if test "${ac_cv_prog_CPP+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3056 # Double quotes because CPP needs to be expanded
3057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3060 for ac_c_preproc_warn_flag in '' yes
3062 # Use a header file that comes with gcc, so configuring glibc
3063 # with a fresh cross-compiler works.
3064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065 # <limits.h> exists even on freestanding compilers.
3066 # On the NeXT, cc -E runs the code through the compiler's parser,
3067 # not just through cpp. "Syntax error" is here to catch this case.
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3071 # include <limits.h>
3073 # include <assert.h>
3077 if ac_fn_c_try_cpp "$LINENO"; then :
3080 # Broken: fails on valid input.
3083 rm -f conftest.err conftest.$ac_ext
3085 # OK, works on sane cases. Now check whether nonexistent headers
3086 # can be detected and how.
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089 #include <ac_nonexistent.h>
3091 if ac_fn_c_try_cpp "$LINENO"; then :
3092 # Broken: success on invalid input.
3095 # Passes both tests.
3099 rm -f conftest.err conftest.$ac_ext
3102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3103 rm -f conftest.err conftest.$ac_ext
3104 if $ac_preproc_ok; then :
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3117 $as_echo "$CPP" >&6; }
3119 for ac_c_preproc_warn_flag in '' yes
3121 # Use a header file that comes with gcc, so configuring glibc
3122 # with a fresh cross-compiler works.
3123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3124 # <limits.h> exists even on freestanding compilers.
3125 # On the NeXT, cc -E runs the code through the compiler's parser,
3126 # not just through cpp. "Syntax error" is here to catch this case.
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3130 # include <limits.h>
3132 # include <assert.h>
3136 if ac_fn_c_try_cpp "$LINENO"; then :
3139 # Broken: fails on valid input.
3142 rm -f conftest.err conftest.$ac_ext
3144 # OK, works on sane cases. Now check whether nonexistent headers
3145 # can be detected and how.
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3148 #include <ac_nonexistent.h>
3150 if ac_fn_c_try_cpp "$LINENO"; then :
3151 # Broken: success on invalid input.
3154 # Passes both tests.
3158 rm -f conftest.err conftest.$ac_ext
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then :
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." "$LINENO" 5; }
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3180 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3181 if test "${ac_cv_path_GREP+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3184 if test -z "$GREP"; then
3185 ac_path_GREP_found=false
3186 # Loop through the user's path and test for each of PROGNAME-LIST
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3191 test -z "$as_dir" && as_dir=.
3192 for ac_prog in grep ggrep; do
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3195 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3196 # Check for GNU ac_path_GREP and select it if it is found.
3197 # Check for GNU $ac_path_GREP
3198 case `"$ac_path_GREP" --version 2>&1` in
3200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3203 $as_echo_n 0123456789 >"conftest.in"
3206 cat "conftest.in" "conftest.in" >"conftest.tmp"
3207 mv "conftest.tmp" "conftest.in"
3208 cp "conftest.in" "conftest.nl"
3209 $as_echo 'GREP' >> "conftest.nl"
3210 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3212 as_fn_arith $ac_count + 1 && ac_count=$as_val
3213 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3214 # Best one so far, save it but keep looking for a better one
3215 ac_cv_path_GREP="$ac_path_GREP"
3216 ac_path_GREP_max=$ac_count
3218 # 10*(2^10) chars as input seems more than enough
3219 test $ac_count -gt 10 && break
3221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3224 $ac_path_GREP_found && break 3
3229 if test -z "$ac_cv_path_GREP"; then
3230 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3233 ac_cv_path_GREP=$GREP
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3238 $as_echo "$ac_cv_path_GREP" >&6; }
3239 GREP="$ac_cv_path_GREP"
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3243 $as_echo_n "checking for egrep... " >&6; }
3244 if test "${ac_cv_path_EGREP+set}" = set; then :
3245 $as_echo_n "(cached) " >&6
3247 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3248 then ac_cv_path_EGREP="$GREP -E"
3250 if test -z "$EGREP"; then
3251 ac_path_EGREP_found=false
3252 # Loop through the user's path and test for each of PROGNAME-LIST
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3257 test -z "$as_dir" && as_dir=.
3258 for ac_prog in egrep; do
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3261 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3262 # Check for GNU ac_path_EGREP and select it if it is found.
3263 # Check for GNU $ac_path_EGREP
3264 case `"$ac_path_EGREP" --version 2>&1` in
3266 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3269 $as_echo_n 0123456789 >"conftest.in"
3272 cat "conftest.in" "conftest.in" >"conftest.tmp"
3273 mv "conftest.tmp" "conftest.in"
3274 cp "conftest.in" "conftest.nl"
3275 $as_echo 'EGREP' >> "conftest.nl"
3276 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3278 as_fn_arith $ac_count + 1 && ac_count=$as_val
3279 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3280 # Best one so far, save it but keep looking for a better one
3281 ac_cv_path_EGREP="$ac_path_EGREP"
3282 ac_path_EGREP_max=$ac_count
3284 # 10*(2^10) chars as input seems more than enough
3285 test $ac_count -gt 10 && break
3287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3290 $ac_path_EGREP_found && break 3
3295 if test -z "$ac_cv_path_EGREP"; then
3296 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3299 ac_cv_path_EGREP=$EGREP
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3305 $as_echo "$ac_cv_path_EGREP" >&6; }
3306 EGREP="$ac_cv_path_EGREP"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3310 $as_echo_n "checking for ANSI C header files... " >&6; }
3311 if test "${ac_cv_header_stdc+set}" = set; then :
3312 $as_echo_n "(cached) " >&6
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_cv_header_stdc=yes
3332 ac_cv_header_stdc=no
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 if test $ac_cv_header_stdc = yes; then
3337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344 $EGREP "memchr" >/dev/null 2>&1; then :
3347 ac_cv_header_stdc=no
3353 if test $ac_cv_header_stdc = yes; then
3354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3361 $EGREP "free" >/dev/null 2>&1; then :
3364 ac_cv_header_stdc=no
3370 if test $ac_cv_header_stdc = yes; then
3371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3372 if test "$cross_compiling" = yes; then :
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3379 #if ((' ' & 0x0FF) == 0x020)
3380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3383 # define ISLOWER(c) \
3384 (('a' <= (c) && (c) <= 'i') \
3385 || ('j' <= (c) && (c) <= 'r') \
3386 || ('s' <= (c) && (c) <= 'z'))
3387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3395 for (i = 0; i < 256; i++)
3396 if (XOR (islower (i), ISLOWER (i))
3397 || toupper (i) != TOUPPER (i))
3402 if ac_fn_c_try_run "$LINENO"; then :
3405 ac_cv_header_stdc=no
3407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3408 conftest.$ac_objext conftest.beam conftest.$ac_ext
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3414 $as_echo "$ac_cv_header_stdc" >&6; }
3415 if test $ac_cv_header_stdc = yes; then
3417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3423 inttypes.h stdint.h unistd.h
3425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3428 eval as_val=\$$as_ac_Header
3429 if test "x$as_val" = x""yes; then :
3430 cat >>confdefs.h <<_ACEOF
3431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3440 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3441 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3448 if test "$MINIX" = yes; then
3450 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3453 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3456 $as_echo "#define _MINIX 1" >>confdefs.h
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3462 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3463 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3469 # define __EXTENSIONS__ 1
3470 $ac_includes_default
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_safe_to_define___extensions__=yes
3482 ac_cv_safe_to_define___extensions__=no
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3487 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3488 test $ac_cv_safe_to_define___extensions__ = yes &&
3489 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3491 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3493 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3495 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3497 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3501 # AC_USE_SYSTEM_EXTENSIONS
3502 am__api_version='1.11'
3505 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3506 for ac_t in install-sh install.sh shtool; do
3507 if test -f "$ac_dir/$ac_t"; then
3509 ac_install_sh="$ac_aux_dir/$ac_t -c"
3514 if test -z "$ac_aux_dir"; then
3515 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3518 # These three variables are undocumented and unsupported,
3519 # and are intended to be withdrawn in a future Autoconf release.
3520 # They can cause serious problems if a builder's source tree is in a directory
3521 # whose full name contains unusual characters.
3522 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3523 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3524 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3527 # Find a good install program. We prefer a C program (faster),
3528 # so one script is as good as another. But avoid the broken or
3529 # incompatible versions:
3530 # SysV /etc/install, /usr/sbin/install
3531 # SunOS /usr/etc/install
3532 # IRIX /sbin/install
3534 # AmigaOS /C/install, which installs bootblocks on floppy discs
3535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3538 # OS/2's system install, which has a completely different semantic
3539 # ./install, which can be erroneously created by make from ./install.sh.
3540 # Reject install programs that cannot install multiple files.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3542 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3543 if test -z "$INSTALL"; then
3544 if test "${ac_cv_path_install+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 # Account for people who put trailing slashes in PATH elements.
3553 case $as_dir/ in #((
3554 ./ | .// | /[cC]/* | \
3555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3559 # OSF1 and SCO ODT 3.0 have their own names for install.
3560 # Don't use installbsd from OSF since it installs stuff as root
3562 for ac_prog in ginstall scoinst install; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3565 if test $ac_prog = install &&
3566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567 # AIX install. It has an incompatible calling convention.
3569 elif test $ac_prog = install &&
3570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571 # program-specific install script used by HP pwplus--don't use.
3574 rm -rf conftest.one conftest.two conftest.dir
3575 echo one > conftest.one
3576 echo two > conftest.two
3578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3579 test -s conftest.one && test -s conftest.two &&
3580 test -s conftest.dir/conftest.one &&
3581 test -s conftest.dir/conftest.two
3583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3596 rm -rf conftest.one conftest.two conftest.dir
3599 if test "${ac_cv_path_install+set}" = set; then
3600 INSTALL=$ac_cv_path_install
3602 # As a last resort, use the slow shell script. Don't cache a
3603 # value for INSTALL within a source directory, because that will
3604 # break other packages using the cache if that directory is
3605 # removed, or if the value is a relative name.
3606 INSTALL=$ac_install_sh
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3610 $as_echo "$INSTALL" >&6; }
3612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3613 # It thinks the first close brace ends the variable substitution.
3614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3621 $as_echo_n "checking whether build environment is sane... " >&6; }
3624 echo timestamp > conftest.file
3625 # Reject unsafe characters in $srcdir or the absolute working directory
3626 # name. Accept space and tab only in the latter.
3630 *[\\\"\#\$\&\'\`$am_lf]*)
3631 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3634 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3635 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3638 # Do `set' in a subshell so we don't clobber the current shell's
3639 # arguments. Must try -L first in case configure is actually a
3640 # symlink; some systems play weird games with the mod time of symlinks
3641 # (eg FreeBSD returns the mod time of the symlink's containing
3644 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3645 if test "$*" = "X"; then
3647 set X `ls -t "$srcdir/configure" conftest.file`
3650 if test "$*" != "X $srcdir/configure conftest.file" \
3651 && test "$*" != "X conftest.file $srcdir/configure"; then
3653 # If neither matched, then we have a broken ls. This can happen
3654 # if, for instance, CONFIG_SHELL is bash and it inherits a
3655 # broken ls alias from the environment. This has actually
3656 # happened. Such a system could not be considered "sane".
3657 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3658 alias in your environment" "$LINENO" 5
3661 test "$2" = conftest.file
3667 as_fn_error "newly created file is older than distributed files!
3668 Check your system clock" "$LINENO" 5
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3671 $as_echo "yes" >&6; }
3672 test "$program_prefix" != NONE &&
3673 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3674 # Use a double $ so make ignores it.
3675 test "$program_suffix" != NONE &&
3676 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3677 # Double any \ or $.
3678 # By default was `s,x,x', remove it if useless.
3679 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3680 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3682 # expand $ac_aux_dir to an absolute path
3683 am_aux_dir=`cd $ac_aux_dir && pwd`
3685 if test x"${MISSING+set}" != xset; then
3688 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3690 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3693 # Use eval to expand $SHELL
3694 if eval "$MISSING --run true"; then
3695 am_missing_run="$MISSING --run "
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3699 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3702 if test x"${install_sh}" != xset; then
3705 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3707 install_sh="\${SHELL} $am_aux_dir/install-sh"
3711 # Installed binaries are usually stripped using `strip' when the user
3712 # run `make install-strip'. However `strip' might not be the right
3713 # tool to use in cross-compilation environments, therefore Automake
3714 # will honor the `STRIP' environment variable to overrule this program.
3715 if test "$cross_compiling" != no; then
3716 if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}strip; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if test "${ac_cv_prog_STRIP+set}" = set; then :
3722 $as_echo_n "(cached) " >&6
3724 if test -n "$STRIP"; then
3725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 STRIP=$ac_cv_prog_STRIP
3745 if test -n "$STRIP"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3747 $as_echo "$STRIP" >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3755 if test -z "$ac_cv_prog_STRIP"; then
3757 # Extract the first word of "strip", so it can be a program name with args.
3758 set dummy strip; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3764 if test -n "$ac_ct_STRIP"; then
3765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 ac_cv_prog_ac_ct_STRIP="strip"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3785 if test -n "$ac_ct_STRIP"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3787 $as_echo "$ac_ct_STRIP" >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3793 if test "x$ac_ct_STRIP" = x; then
3796 case $cross_compiling:$ac_tool_warned in
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800 ac_tool_warned=yes ;;
3805 STRIP="$ac_cv_prog_STRIP"
3809 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3812 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3813 if test -z "$MKDIR_P"; then
3814 if test "${ac_cv_path_mkdir+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3821 test -z "$as_dir" && as_dir=.
3822 for ac_prog in mkdir gmkdir; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3825 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3826 'mkdir (GNU coreutils) '* | \
3827 'mkdir (coreutils) '* | \
3828 'mkdir (fileutils) '4.1*)
3829 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3839 test -d ./--version && rmdir ./--version
3840 if test "${ac_cv_path_mkdir+set}" = set; then
3841 MKDIR_P="$ac_cv_path_mkdir -p"
3843 # As a last resort, use the slow shell script. Don't cache a
3844 # value for MKDIR_P within a source directory, because that will
3845 # break other packages using the cache if that directory is
3846 # removed, or if the value is a relative name.
3847 MKDIR_P="$ac_install_sh -d"
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3851 $as_echo "$MKDIR_P" >&6; }
3855 [\\/$]* | ?:[\\/]*) ;;
3856 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3859 for ac_prog in gawk mawk nawk awk
3861 # Extract the first word of "$ac_prog", so it can be a program name with args.
3862 set dummy $ac_prog; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if test "${ac_cv_prog_AWK+set}" = set; then :
3866 $as_echo_n "(cached) " >&6
3868 if test -n "$AWK"; then
3869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3878 ac_cv_prog_AWK="$ac_prog"
3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 if test -n "$AWK"; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3891 $as_echo "$AWK" >&6; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3898 test -n "$AWK" && break
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3904 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3905 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3906 $as_echo_n "(cached) " >&6
3908 cat >conftest.make <<\_ACEOF
3911 @echo '@@@%%%=$(MAKE)=@@@%%%'
3913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3916 eval ac_cv_prog_make_${ac_make}_set=yes;;
3918 eval ac_cv_prog_make_${ac_make}_set=no;;
3922 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 $as_echo "yes" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929 SET_MAKE="MAKE=${MAKE-make}"
3932 rm -rf .tst 2>/dev/null
3933 mkdir .tst 2>/dev/null
3934 if test -d .tst; then
3939 rmdir .tst 2>/dev/null
3941 DEPDIR="${am__leading_dot}deps"
3943 ac_config_commands="$ac_config_commands depfiles"
3946 am_make=${MAKE-make}
3947 cat > confinc << 'END'
3949 @echo this is the am__doit target
3952 # If we don't find an include directive, just comment out the code.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3954 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3958 # First try GNU make style include.
3959 echo "include confinc" > confmf
3960 # Ignore all kinds of additional output from `make'.
3961 case `$am_make -s -f confmf 2> /dev/null` in #(
3962 *the\ am__doit\ target*)
3968 # Now try BSD make style include.
3969 if test "$am__include" = "#"; then
3970 echo '.include "confinc"' > confmf
3971 case `$am_make -s -f confmf 2> /dev/null` in #(
3972 *the\ am__doit\ target*)
3973 am__include=.include
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3982 $as_echo "$_am_result" >&6; }
3983 rm -f confinc confmf
3985 # Check whether --enable-dependency-tracking was given.
3986 if test "${enable_dependency_tracking+set}" = set; then :
3987 enableval=$enable_dependency_tracking;
3990 if test "x$enable_dependency_tracking" != xno; then
3991 am_depcomp="$ac_aux_dir/depcomp"
3994 if test "x$enable_dependency_tracking" != xno; then
4003 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4004 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4005 # is not polluted with repeated "-I."
4006 am__isrc=' -I$(srcdir)'
4007 # test to see if srcdir already configured
4008 if test -f $srcdir/config.status; then
4009 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4013 # test whether we have cygpath
4014 if test -z "$CYGPATH_W"; then
4015 if (cygpath --version) >/dev/null 2>/dev/null; then
4016 CYGPATH_W='cygpath -w'
4023 # Define the identity of the package.
4028 cat >>confdefs.h <<_ACEOF
4029 #define PACKAGE "$PACKAGE"
4033 cat >>confdefs.h <<_ACEOF
4034 #define VERSION "$VERSION"
4037 # Some tools Automake needs.
4039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4053 # We need awk for the "check" target. The system "awk" is bad on
4055 # Always define AMTAR for backward compatibility.
4057 AMTAR=${AMTAR-"${am_missing_run}tar"}
4059 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4064 depcc="$CC" am_compiler_list=
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4067 $as_echo_n "checking dependency style of $depcc... " >&6; }
4068 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4072 # We make a subdir and do the tests there. Otherwise we can end up
4073 # making bogus files that we don't know about and never remove. For
4074 # instance it was reported that on HP-UX the gcc test will end up
4075 # making a dummy file named `D' -- because `-MD' means `put the output
4078 # Copy depcomp to subdir because otherwise we won't find it if we're
4079 # using a relative directory.
4080 cp "$am_depcomp" conftest.dir
4082 # We will build objects and dependencies in a subdirectory because
4083 # it helps to detect inapplicable dependency modes. For instance
4084 # both Tru64's cc and ICC support -MD to output dependencies as a
4085 # side effect of compilation, but ICC will put the dependencies in
4086 # the current directory while Tru64 will put them in the object
4090 am_cv_CC_dependencies_compiler_type=none
4091 if test "$am_compiler_list" = ""; then
4092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4095 case " $depcc " in #(
4096 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4099 for depmode in $am_compiler_list; do
4100 # Setup a source with many dependencies, because some compilers
4101 # like to wrap large dependency lists on column 80 (with \), and
4102 # we should not choose a depcomp mode which is confused by this.
4104 # We need to recreate these files for each test, as the compiler may
4105 # overwrite some of them when testing with obscure command lines.
4106 # This happens at least with the AIX C compiler.
4108 for i in 1 2 3 4 5 6; do
4109 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4110 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4111 # Solaris 8's {/usr,}/bin/sh.
4112 touch sub/conftst$i.h
4114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4116 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4117 # mode. It turns out that the SunPro C++ compiler does not properly
4118 # handle `-M -o', and we need to detect this. Also, some Intel
4119 # versions had trouble with output in subdirs
4120 am__obj=sub/conftest.${OBJEXT-o}
4121 am__minus_obj="-o $am__obj"
4124 # This depmode causes a compiler race in universal mode.
4125 test "$am__universal" = false || continue
4128 # after this tag, mechanisms are not by side-effect, so they'll
4129 # only be used when explicitly requested
4130 if test "x$enable_dependency_tracking" = xyes; then
4136 msvisualcpp | msvcmsys)
4137 # This compiler won't grok `-c -o', but also, the minuso test has
4138 # not run yet. These depmodes are late enough in the game, and
4139 # so weak that their functioning should not be impacted.
4140 am__obj=conftest.${OBJEXT-o}
4145 if depmode=$depmode \
4146 source=sub/conftest.c object=$am__obj \
4147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4149 >/dev/null 2>conftest.err &&
4150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4154 # icc doesn't choke on unknown options, it will just issue warnings
4155 # or remarks (even with -Werror). So we grep stderr for any message
4156 # that says an option was ignored or not supported.
4157 # When given -MP, icc 7.0 and 7.1 complain thusly:
4158 # icc: Command line warning: ignoring option '-M'; no argument required
4159 # The diagnosis changed in icc 8.0:
4160 # icc: Command line remark: option '-MP' not supported
4161 if (grep 'ignoring option' conftest.err ||
4162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4163 am_cv_CC_dependencies_compiler_type=$depmode
4172 am_cv_CC_dependencies_compiler_type=none
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4177 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4181 test "x$enable_dependency_tracking" != xno \
4182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4184 am__fastdepCC_FALSE='#'
4186 am__fastdepCC_TRUE='#'
4187 am__fastdepCC_FALSE=
4195 # Checks for programs.
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4202 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4203 # On Suns, sometimes $CPP names a directory.
4204 if test -n "$CPP" && test -d "$CPP"; then
4207 if test -z "$CPP"; then
4208 if test "${ac_cv_prog_CPP+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4211 # Double quotes because CPP needs to be expanded
4212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4215 for ac_c_preproc_warn_flag in '' yes
4217 # Use a header file that comes with gcc, so configuring glibc
4218 # with a fresh cross-compiler works.
4219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220 # <limits.h> exists even on freestanding compilers.
4221 # On the NeXT, cc -E runs the code through the compiler's parser,
4222 # not just through cpp. "Syntax error" is here to catch this case.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4226 # include <limits.h>
4228 # include <assert.h>
4232 if ac_fn_c_try_cpp "$LINENO"; then :
4235 # Broken: fails on valid input.
4238 rm -f conftest.err conftest.$ac_ext
4240 # OK, works on sane cases. Now check whether nonexistent headers
4241 # can be detected and how.
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <ac_nonexistent.h>
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4247 # Broken: success on invalid input.
4250 # Passes both tests.
4254 rm -f conftest.err conftest.$ac_ext
4257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258 rm -f conftest.err conftest.$ac_ext
4259 if $ac_preproc_ok; then :
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4272 $as_echo "$CPP" >&6; }
4274 for ac_c_preproc_warn_flag in '' yes
4276 # Use a header file that comes with gcc, so configuring glibc
4277 # with a fresh cross-compiler works.
4278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279 # <limits.h> exists even on freestanding compilers.
4280 # On the NeXT, cc -E runs the code through the compiler's parser,
4281 # not just through cpp. "Syntax error" is here to catch this case.
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4285 # include <limits.h>
4287 # include <assert.h>
4291 if ac_fn_c_try_cpp "$LINENO"; then :
4294 # Broken: fails on valid input.
4297 rm -f conftest.err conftest.$ac_ext
4299 # OK, works on sane cases. Now check whether nonexistent headers
4300 # can be detected and how.
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303 #include <ac_nonexistent.h>
4305 if ac_fn_c_try_cpp "$LINENO"; then :
4306 # Broken: success on invalid input.
4309 # Passes both tests.
4313 rm -f conftest.err conftest.$ac_ext
4316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4317 rm -f conftest.err conftest.$ac_ext
4318 if $ac_preproc_ok; then :
4321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4324 See \`config.log' for more details." "$LINENO" 5; }
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334 ac_cpp='$CXXCPP $CPPFLAGS'
4335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4338 if test -z "$CXX"; then
4339 if test -n "$CCC"; then
4342 if test -n "$ac_tool_prefix"; then
4343 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_CXX+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4352 if test -n "$CXX"; then
4353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 if test -n "$CXX"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4375 $as_echo "$CXX" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4382 test -n "$CXX" && break
4385 if test -z "$CXX"; then
4387 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4389 # Extract the first word of "$ac_prog", so it can be a program name with args.
4390 set dummy $ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4394 $as_echo_n "(cached) " >&6
4396 if test -n "$ac_ct_CXX"; then
4397 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_ac_ct_CXX="$ac_prog"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4417 if test -n "$ac_ct_CXX"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4419 $as_echo "$ac_ct_CXX" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4426 test -n "$ac_ct_CXX" && break
4429 if test "x$ac_ct_CXX" = x; then
4432 case $cross_compiling:$ac_tool_warned in
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436 ac_tool_warned=yes ;;
4444 # Provide some information about the compiler.
4445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4448 for ac_option in --version -v -V -qversion; do
4449 { { ac_try="$ac_compiler $ac_option >&5"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4458 if test -s conftest.err; then
4460 ... rest of stderr output deleted ...
4461 10q' conftest.err >conftest.er1
4462 cat conftest.er1 >&5
4464 rm -f conftest.er1 conftest.err
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4470 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4488 if ac_fn_cxx_try_compile "$LINENO"; then :
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4498 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4499 if test $ac_compiler_gnu = yes; then
4504 ac_test_CXXFLAGS=${CXXFLAGS+set}
4505 ac_save_CXXFLAGS=$CXXFLAGS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4507 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4508 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4511 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4512 ac_cxx_werror_flag=yes
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527 ac_cv_prog_cxx_g=yes
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4558 ac_cv_prog_cxx_g=yes
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4568 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4569 if test "$ac_test_CXXFLAGS" = set; then
4570 CXXFLAGS=$ac_save_CXXFLAGS
4571 elif test $ac_cv_prog_cxx_g = yes; then
4572 if test "$GXX" = yes; then
4578 if test "$GXX" = yes; then
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590 depcc="$CXX" am_compiler_list=
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4593 $as_echo_n "checking dependency style of $depcc... " >&6; }
4594 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4598 # We make a subdir and do the tests there. Otherwise we can end up
4599 # making bogus files that we don't know about and never remove. For
4600 # instance it was reported that on HP-UX the gcc test will end up
4601 # making a dummy file named `D' -- because `-MD' means `put the output
4604 # Copy depcomp to subdir because otherwise we won't find it if we're
4605 # using a relative directory.
4606 cp "$am_depcomp" conftest.dir
4608 # We will build objects and dependencies in a subdirectory because
4609 # it helps to detect inapplicable dependency modes. For instance
4610 # both Tru64's cc and ICC support -MD to output dependencies as a
4611 # side effect of compilation, but ICC will put the dependencies in
4612 # the current directory while Tru64 will put them in the object
4616 am_cv_CXX_dependencies_compiler_type=none
4617 if test "$am_compiler_list" = ""; then
4618 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4621 case " $depcc " in #(
4622 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4625 for depmode in $am_compiler_list; do
4626 # Setup a source with many dependencies, because some compilers
4627 # like to wrap large dependency lists on column 80 (with \), and
4628 # we should not choose a depcomp mode which is confused by this.
4630 # We need to recreate these files for each test, as the compiler may
4631 # overwrite some of them when testing with obscure command lines.
4632 # This happens at least with the AIX C compiler.
4634 for i in 1 2 3 4 5 6; do
4635 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4636 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4637 # Solaris 8's {/usr,}/bin/sh.
4638 touch sub/conftst$i.h
4640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4642 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4643 # mode. It turns out that the SunPro C++ compiler does not properly
4644 # handle `-M -o', and we need to detect this. Also, some Intel
4645 # versions had trouble with output in subdirs
4646 am__obj=sub/conftest.${OBJEXT-o}
4647 am__minus_obj="-o $am__obj"
4650 # This depmode causes a compiler race in universal mode.
4651 test "$am__universal" = false || continue
4654 # after this tag, mechanisms are not by side-effect, so they'll
4655 # only be used when explicitly requested
4656 if test "x$enable_dependency_tracking" = xyes; then
4662 msvisualcpp | msvcmsys)
4663 # This compiler won't grok `-c -o', but also, the minuso test has
4664 # not run yet. These depmodes are late enough in the game, and
4665 # so weak that their functioning should not be impacted.
4666 am__obj=conftest.${OBJEXT-o}
4671 if depmode=$depmode \
4672 source=sub/conftest.c object=$am__obj \
4673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4674 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4675 >/dev/null 2>conftest.err &&
4676 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4678 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4680 # icc doesn't choke on unknown options, it will just issue warnings
4681 # or remarks (even with -Werror). So we grep stderr for any message
4682 # that says an option was ignored or not supported.
4683 # When given -MP, icc 7.0 and 7.1 complain thusly:
4684 # icc: Command line warning: ignoring option '-M'; no argument required
4685 # The diagnosis changed in icc 8.0:
4686 # icc: Command line remark: option '-MP' not supported
4687 if (grep 'ignoring option' conftest.err ||
4688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4689 am_cv_CXX_dependencies_compiler_type=$depmode
4698 am_cv_CXX_dependencies_compiler_type=none
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4703 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4704 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4707 test "x$enable_dependency_tracking" != xno \
4708 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4709 am__fastdepCXX_TRUE=
4710 am__fastdepCXX_FALSE='#'
4712 am__fastdepCXX_TRUE='#'
4713 am__fastdepCXX_FALSE=
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4730 if test -n "$CC"; then
4731 ac_cv_prog_CC="$CC" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 if test -n "$CC"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753 $as_echo "$CC" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4761 if test -z "$ac_cv_prog_CC"; then
4763 # Extract the first word of "gcc", so it can be a program name with args.
4764 set dummy gcc; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -n "$ac_ct_CC"; then
4771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_ac_ct_CC="gcc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4791 if test -n "$ac_ct_CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793 $as_echo "$ac_ct_CC" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4799 if test "x$ac_ct_CC" = x; then
4802 case $cross_compiling:$ac_tool_warned in
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806 ac_tool_warned=yes ;;
4814 if test -z "$CC"; then
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}cc; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC="$CC" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_CC="${ac_tool_prefix}cc"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 if test -n "$CC"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4846 $as_echo "$CC" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4855 if test -z "$CC"; then
4856 # Extract the first word of "cc", so it can be a program name with args.
4857 set dummy cc; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$CC"; then
4864 ac_cv_prog_CC="$CC" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4875 ac_prog_rejected=yes
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 if test $ac_prog_rejected = yes; then
4887 # We found a bogon in the path, so make sure we never use it.
4888 set dummy $ac_cv_prog_CC
4890 if test $# != 0; then
4891 # We chose a different compiler from the bogus one.
4892 # However, it has the same basename, so the bogon will be chosen
4893 # first if we set CC to just the basename; use the full file name.
4895 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4901 if test -n "$CC"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4903 $as_echo "$CC" >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4911 if test -z "$CC"; then
4912 if test -n "$ac_tool_prefix"; then
4913 for ac_prog in cl.exe
4915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 if test -n "$CC"; then
4923 ac_cv_prog_CC="$CC" # Let the user override the test.
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 if test -n "$CC"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4945 $as_echo "$CC" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4952 test -n "$CC" && break
4955 if test -z "$CC"; then
4957 for ac_prog in cl.exe
4959 # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4966 if test -n "$ac_ct_CC"; then
4967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_ac_ct_CC="$ac_prog"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4987 if test -n "$ac_ct_CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4989 $as_echo "$ac_ct_CC" >&6; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4996 test -n "$ac_ct_CC" && break
4999 if test "x$ac_ct_CC" = x; then
5002 case $cross_compiling:$ac_tool_warned in
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned=yes ;;
5015 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5017 as_fn_error "no acceptable C compiler found in \$PATH
5018 See \`config.log' for more details." "$LINENO" 5; }
5020 # Provide some information about the compiler.
5021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5024 for ac_option in --version -v -V -qversion; do
5025 { { ac_try="$ac_compiler $ac_option >&5"
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5031 $as_echo "$ac_try_echo"; } >&5
5032 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5034 if test -s conftest.err; then
5036 ... rest of stderr output deleted ...
5037 10q' conftest.err >conftest.er1
5038 cat conftest.er1 >&5
5040 rm -f conftest.er1 conftest.err
5041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042 test $ac_status = 0; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5064 if ac_fn_c_try_compile "$LINENO"; then :
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5075 if test $ac_compiler_gnu = yes; then
5080 ac_test_CFLAGS=${CFLAGS+set}
5081 ac_save_CFLAGS=$CFLAGS
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5084 if test "${ac_cv_prog_cc_g+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5087 ac_save_c_werror_flag=$ac_c_werror_flag
5088 ac_c_werror_flag=yes
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5102 if ac_fn_c_try_compile "$LINENO"; then :
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5117 if ac_fn_c_try_compile "$LINENO"; then :
5120 ac_c_werror_flag=$ac_save_c_werror_flag
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5133 if ac_fn_c_try_compile "$LINENO"; then :
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 ac_c_werror_flag=$ac_save_c_werror_flag
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5144 $as_echo "$ac_cv_prog_cc_g" >&6; }
5145 if test "$ac_test_CFLAGS" = set; then
5146 CFLAGS=$ac_save_CFLAGS
5147 elif test $ac_cv_prog_cc_g = yes; then
5148 if test "$GCC" = yes; then
5154 if test "$GCC" = yes; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5165 ac_cv_prog_cc_c89=no
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5171 #include <sys/types.h>
5172 #include <sys/stat.h>
5173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5174 struct buf { int x; };
5175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5176 static char *e (p, i)
5182 static char *f (char * (*g) (char **, int), char **p, ...)
5187 s = g (p, va_arg (v,int));
5192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5193 function prototypes and stuff, but not '\xHH' hex character constants.
5194 These don't provoke an error unfortunately, instead are silently treated
5195 as 'x'. The following induces an error, until -std is added to get
5196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5197 array size at least. It's necessary to write '\x00'==0 to get something
5198 that's true only with -std. */
5199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5202 inside strings and character constants. */
5204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5206 int test (int i, double x);
5207 struct s1 {int (*f) (int a);};
5208 struct s2 {int (*f) (double a);};
5209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5223 CC="$ac_save_CC $ac_arg"
5224 if ac_fn_c_try_compile "$LINENO"; then :
5225 ac_cv_prog_cc_c89=$ac_arg
5227 rm -f core conftest.err conftest.$ac_objext
5228 test "x$ac_cv_prog_cc_c89" != "xno" && break
5230 rm -f conftest.$ac_ext
5235 case "x$ac_cv_prog_cc_c89" in
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5238 $as_echo "none needed" >&6; } ;;
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5241 $as_echo "unsupported" >&6; } ;;
5243 CC="$CC $ac_cv_prog_cc_c89"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5247 if test "x$ac_cv_prog_cc_c89" != xno; then :
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5259 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5261 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5262 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5263 $as_echo_n "(cached) " >&6
5265 cat >conftest.make <<\_ACEOF
5268 @echo '@@@%%%=$(MAKE)=@@@%%%'
5270 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5271 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5273 eval ac_cv_prog_make_${ac_make}_set=yes;;
5275 eval ac_cv_prog_make_${ac_make}_set=no;;
5279 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5281 $as_echo "yes" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 SET_MAKE="MAKE=${MAKE-make}"
5291 # site specific configs
5293 # check for asterisk
5295 # Check whether --with-asterisk was given.
5296 if test "${with_asterisk+set}" = set; then :
5297 withval=$with_asterisk;
5299 with_asterisk="check"
5303 if test "x$with_asterisk" != xno; then :
5304 for ac_header in asterisk/compiler.h
5306 ac_fn_c_check_header_mongrel "$LINENO" "asterisk/compiler.h" "ac_cv_header_asterisk_compiler_h" "$ac_includes_default"
5307 if test "x$ac_cv_header_asterisk_compiler_h" = x""yes; then :
5308 cat >>confdefs.h <<_ACEOF
5309 #define HAVE_ASTERISK_COMPILER_H 1
5313 if test "x$with_asterisk" != xcheck ; then
5314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5316 as_fn_error "--with-asterisk was given, but test for header-file asterisk/compiler.h failed
5317 See \`config.log' for more details." "$LINENO" 5; }
5327 if test "x$with_asterisk" = "xyes"; then
5328 ast_tone_zone_sound=
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tone_zone_sound in asterisk/indications.h" >&5
5331 $as_echo_n "checking for struct tone_zone_sound in asterisk/indications.h... " >&6; }
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5336 #include <asterisk.h>,
5337 #include <asterisk/linkedlists.h>,
5338 #include <asterisk/indications.h>
5342 struct tone_zone_sound * ts = NULL; (void) ts->data;
5347 if ac_fn_c_try_compile "$LINENO"; then :
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tzs_test_result" >&5
5352 $as_echo "$tzs_test_result" >&6; }
5354 if test "x$tzs_test_result" = "xyes"; then
5355 ast_tone_zone_sound=tone_zone_sound
5358 if test "x$ast_tone_zone_sound" = "x"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ast_tone_zone_sound in asterisk/indications.h" >&5
5360 $as_echo_n "checking for struct ast_tone_zone_sound in asterisk/indications.h... " >&6; }
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5365 #include <asterisk.h>,
5366 #include <asterisk/linkedlists.h>,
5367 #include <asterisk/indications.h>
5371 struct ast_tone_zone_sound * ts = NULL; (void) ts->name;
5376 if ac_fn_c_try_compile "$LINENO"; then :
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tzs_test_result" >&5
5381 $as_echo "$tzs_test_result" >&6; }
5383 if test "x$tzs_test_result" = "xyes"; then
5384 ast_tone_zone_sound=ast_tone_zone_sound
5388 if test "x$ast_tone_zone_sound" = "x"; then
5389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5391 as_fn_error "No ast_tone_zone_sound, confused...
5392 See \`config.log' for more details." "$LINENO" 5; }
5395 AST_CFLAGS="-Dtone_zone_sound=$ast_tone_zone_sound"
5399 if test "x$with_asterisk" == "xyes" ; then
5400 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
5401 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
5403 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
5404 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
5410 # Check whether --with-ssl was given.
5411 if test "${with_ssl+set}" = set; then :
5418 if test "x$with_ssl" != xno; then :
5419 for ac_header in openssl/rsa.h
5421 ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
5422 if test "x$ac_cv_header_openssl_rsa_h" = x""yes; then :
5423 cat >>confdefs.h <<_ACEOF
5424 #define HAVE_OPENSSL_RSA_H 1
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
5432 $as_echo_n "checking for main in -lcrypto... " >&6; }
5433 if test "${ac_cv_lib_crypto_main+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 ac_check_lib_save_LIBS=$LIBS
5437 LIBS="-lcrypto -lcrypto
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5451 if ac_fn_c_try_link "$LINENO"; then :
5452 ac_cv_lib_crypto_main=yes
5454 ac_cv_lib_crypto_main=no
5456 rm -f core conftest.err conftest.$ac_objext \
5457 conftest$ac_exeext conftest.$ac_ext
5458 LIBS=$ac_check_lib_save_LIBS
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
5461 $as_echo "$ac_cv_lib_crypto_main" >&6; }
5462 if test "x$ac_cv_lib_crypto_main" = x""yes; then :
5463 LIBCRYPTO="-lcrypto"
5466 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5470 if test "x$with_ssl" != xcheck ; then
5471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5473 as_fn_error "--with-ssl was given, but test for libcrypto failed
5474 See \`config.log' for more details." "$LINENO" 5; }
5485 # Check whether --with-gsm-bs was given.
5486 if test "${with_gsm_bs+set}" = set; then :
5487 withval=$with_gsm_bs;
5493 if test "x$with_gsm_bs" != xno; then :
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openbsc/include/openbsc/gsm_data.h" >&5
5495 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
5496 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5499 test "$cross_compiling" = yes &&
5500 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
5501 if test -r "openbsc/include/openbsc/gsm_data.h"; then
5502 ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
5504 ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
5508 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
5509 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then :
5512 if test "x$with_gsm_bs" != xcheck ; then
5513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5515 as_fn_error "--with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
5516 See \`config.log' for more details." "$LINENO" 5; }
5524 if test "x$with_gsm_bs" == "xyes" ; then
5526 ENABLE_GSM_BS_FALSE='#'
5528 ENABLE_GSM_BS_TRUE='#'
5529 ENABLE_GSM_BS_FALSE=
5535 # Check whether --with-gsm-ms was given.
5536 if test "${with_gsm_ms+set}" = set; then :
5537 withval=$with_gsm_ms;
5543 if test "x$with_gsm_ms" != xno; then :
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for layer23/include/osmocom/osmocom_data.h" >&5
5545 $as_echo_n "checking for layer23/include/osmocom/osmocom_data.h... " >&6; }
5546 if test "${ac_cv_file_layer23_include_osmocom_osmocom_data_h+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5549 test "$cross_compiling" = yes &&
5550 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
5551 if test -r "layer23/include/osmocom/osmocom_data.h"; then
5552 ac_cv_file_layer23_include_osmocom_osmocom_data_h=yes
5554 ac_cv_file_layer23_include_osmocom_osmocom_data_h=no
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&5
5558 $as_echo "$ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&6; }
5559 if test "x$ac_cv_file_layer23_include_osmocom_osmocom_data_h" = x""yes; then :
5562 if test "x$with_gsm_ms" != xcheck ; then
5563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5565 as_fn_error "--with-gsm-ms was given, but osmocom-bb/include/osmocom/osmocom_data.h was not found! Pleas link Osmocom-BB and libosmocore source directory to LCR source directory: ln -s path_to_osmocom-bb/src/host/layer23/ layer23 ; ln -s path_to_libosmocore libosmocore
5566 See \`config.log' for more details." "$LINENO" 5; }
5574 if test "x$with_gsm_ms" == "xyes" ; then
5576 ENABLE_GSM_MS_FALSE='#'
5578 ENABLE_GSM_MS_TRUE='#'
5579 ENABLE_GSM_MS_FALSE=
5583 if test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes"; then
5585 ENABLE_GSM_FALSE='#'
5594 # Check whether --with-ss5 was given.
5595 if test "${with_ss5+set}" = set; then :
5602 if test "x$with_ss5" == "xyes" ; then
5604 ENABLE_SS5_FALSE='#'
5611 # Checks for libraries.
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5613 $as_echo_n "checking for main in -lm... " >&6; }
5614 if test "${ac_cv_lib_m_main+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5617 ac_check_lib_save_LIBS=$LIBS
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5631 if ac_fn_c_try_link "$LINENO"; then :
5632 ac_cv_lib_m_main=yes
5636 rm -f core conftest.err conftest.$ac_objext \
5637 conftest$ac_exeext conftest.$ac_ext
5638 LIBS=$ac_check_lib_save_LIBS
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5641 $as_echo "$ac_cv_lib_m_main" >&6; }
5642 if test "x$ac_cv_lib_m_main" = x""yes; then :
5643 cat >>confdefs.h <<_ACEOF
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5652 $as_echo_n "checking for main in -lncurses... " >&6; }
5653 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5656 ac_check_lib_save_LIBS=$LIBS
5657 LIBS="-lncurses $LIBS"
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5670 if ac_fn_c_try_link "$LINENO"; then :
5671 ac_cv_lib_ncurses_main=yes
5673 ac_cv_lib_ncurses_main=no
5675 rm -f core conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_check_lib_save_LIBS
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5680 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5681 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5682 cat >>confdefs.h <<_ACEOF
5683 #define HAVE_LIBNCURSES 1
5686 LIBS="-lncurses $LIBS"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5691 $as_echo_n "checking for main in -lpthread... " >&6; }
5692 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5695 ac_check_lib_save_LIBS=$LIBS
5696 LIBS="-lpthread $LIBS"
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5709 if ac_fn_c_try_link "$LINENO"; then :
5710 ac_cv_lib_pthread_main=yes
5712 ac_cv_lib_pthread_main=no
5714 rm -f core conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716 LIBS=$ac_check_lib_save_LIBS
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5719 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5720 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5721 cat >>confdefs.h <<_ACEOF
5722 #define HAVE_LIBPTHREAD 1
5725 LIBS="-lpthread $LIBS"
5730 # Checks for header files.
5732 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5733 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5735 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5737 $as_echo_n "(cached) " >&6
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <sys/types.h>
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 eval "$as_ac_Header=yes"
5756 eval "$as_ac_Header=no"
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 eval ac_res=\$$as_ac_Header
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5762 $as_echo "$ac_res" >&6; }
5763 eval as_val=\$$as_ac_Header
5764 if test "x$as_val" = x""yes; then :
5765 cat >>confdefs.h <<_ACEOF
5766 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5769 ac_header_dirent=$ac_hdr; break
5773 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5774 if test $ac_header_dirent = dirent.h; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5776 $as_echo_n "checking for library containing opendir... " >&6; }
5777 if test "${ac_cv_search_opendir+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 ac_func_search_save_LIBS=$LIBS
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5784 /* Override any GCC internal prototype to avoid an error.
5785 Use char because int might match the return type of a GCC
5786 builtin and then its argument prototype would still apply. */
5799 for ac_lib in '' dir; do
5800 if test -z "$ac_lib"; then
5801 ac_res="none required"
5804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5806 if ac_fn_c_try_link "$LINENO"; then :
5807 ac_cv_search_opendir=$ac_res
5809 rm -f core conftest.err conftest.$ac_objext \
5811 if test "${ac_cv_search_opendir+set}" = set; then :
5815 if test "${ac_cv_search_opendir+set}" = set; then :
5818 ac_cv_search_opendir=no
5821 LIBS=$ac_func_search_save_LIBS
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5824 $as_echo "$ac_cv_search_opendir" >&6; }
5825 ac_res=$ac_cv_search_opendir
5826 if test "$ac_res" != no; then :
5827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5833 $as_echo_n "checking for library containing opendir... " >&6; }
5834 if test "${ac_cv_search_opendir+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5837 ac_func_search_save_LIBS=$LIBS
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5841 /* Override any GCC internal prototype to avoid an error.
5842 Use char because int might match the return type of a GCC
5843 builtin and then its argument prototype would still apply. */
5856 for ac_lib in '' x; do
5857 if test -z "$ac_lib"; then
5858 ac_res="none required"
5861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5863 if ac_fn_c_try_link "$LINENO"; then :
5864 ac_cv_search_opendir=$ac_res
5866 rm -f core conftest.err conftest.$ac_objext \
5868 if test "${ac_cv_search_opendir+set}" = set; then :
5872 if test "${ac_cv_search_opendir+set}" = set; then :
5875 ac_cv_search_opendir=no
5878 LIBS=$ac_func_search_save_LIBS
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5881 $as_echo "$ac_cv_search_opendir" >&6; }
5882 ac_res=$ac_cv_search_opendir
5883 if test "$ac_res" != no; then :
5884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5891 $as_echo_n "checking for ANSI C header files... " >&6; }
5892 if test "${ac_cv_header_stdc+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5910 if ac_fn_c_try_compile "$LINENO"; then :
5911 ac_cv_header_stdc=yes
5913 ac_cv_header_stdc=no
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 if test $ac_cv_header_stdc = yes; then
5918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "memchr" >/dev/null 2>&1; then :
5928 ac_cv_header_stdc=no
5934 if test $ac_cv_header_stdc = yes; then
5935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942 $EGREP "free" >/dev/null 2>&1; then :
5945 ac_cv_header_stdc=no
5951 if test $ac_cv_header_stdc = yes; then
5952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5953 if test "$cross_compiling" = yes; then :
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5960 #if ((' ' & 0x0FF) == 0x020)
5961 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5962 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5964 # define ISLOWER(c) \
5965 (('a' <= (c) && (c) <= 'i') \
5966 || ('j' <= (c) && (c) <= 'r') \
5967 || ('s' <= (c) && (c) <= 'z'))
5968 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5971 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5976 for (i = 0; i < 256; i++)
5977 if (XOR (islower (i), ISLOWER (i))
5978 || toupper (i) != TOUPPER (i))
5983 if ac_fn_c_try_run "$LINENO"; then :
5986 ac_cv_header_stdc=no
5988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5989 conftest.$ac_objext conftest.beam conftest.$ac_ext
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5995 $as_echo "$ac_cv_header_stdc" >&6; }
5996 if test $ac_cv_header_stdc = yes; then
5998 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6003 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6004 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <sys/types.h>
6010 #include <sys/wait.h>
6012 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6015 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6023 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6028 if ac_fn_c_try_compile "$LINENO"; then :
6029 ac_cv_header_sys_wait_h=yes
6031 ac_cv_header_sys_wait_h=no
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6036 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6037 if test $ac_cv_header_sys_wait_h = yes; then
6039 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6043 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
6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6047 eval as_val=\$$as_ac_Header
6048 if test "x$as_val" = x""yes; then :
6049 cat >>confdefs.h <<_ACEOF
6050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 # Checks for typedefs, structures, and compiler characteristics.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6060 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6061 if test "${ac_cv_header_stdbool_h+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6067 #include <stdbool.h>
6069 "error: bool is not defined"
6072 "error: false is not defined"
6075 "error: false is not 0"
6078 "error: true is not defined"
6081 "error: true is not 1"
6083 #ifndef __bool_true_false_are_defined
6084 "error: __bool_true_false_are_defined is not defined"
6087 struct s { _Bool s: 1; _Bool t; } s;
6089 char a[true == 1 ? 1 : -1];
6090 char b[false == 0 ? 1 : -1];
6091 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6092 char d[(bool) 0.5 == true ? 1 : -1];
6094 char f[(_Bool) 0.0 == false ? 1 : -1];
6096 char h[sizeof (_Bool)];
6098 enum { j = false, k = true, l = false * true, m = true * 256 };
6099 /* The following fails for
6100 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6102 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6103 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6104 # if defined __xlc__ || defined __GNUC__
6105 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6106 reported by James Lemley on 2005-10-05; see
6107 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6108 This test is not quite right, since xlc is allowed to
6109 reject this program, as the initializer for xlcbug is
6110 not one of the forms that C requires support for.
6111 However, doing the test right would require a runtime
6112 test, and that would make cross-compilation harder.
6113 Let us hope that IBM fixes the xlc bug, and also adds
6114 support for this kind of constant expression. In the
6115 meantime, this test will reject xlc, which is OK, since
6116 our stdbool.h substitute should suffice. We also test
6117 this with GCC, where it should work, to detect more
6118 quickly whether someone messes up the test in the
6120 char digs[] = "0123456789";
6121 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6123 /* Catch a bug in an HP-UX C compiler. See
6124 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6125 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6136 /* Refer to every declared value, to avoid compiler optimizations. */
6137 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6138 + !m + !n + !o + !p + !q + !pq);
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 ac_cv_header_stdbool_h=yes
6147 ac_cv_header_stdbool_h=no
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6152 $as_echo "$ac_cv_header_stdbool_h" >&6; }
6153 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6154 if test "x$ac_cv_type__Bool" = x""yes; then :
6156 cat >>confdefs.h <<_ACEOF
6157 #define HAVE__BOOL 1
6163 if test $ac_cv_header_stdbool_h = yes; then
6165 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6170 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6171 if test "${ac_cv_c_const+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6180 /* FIXME: Include the comments suggested by Paul. */
6182 /* Ultrix mips cc rejects this. */
6183 typedef int charset[2];
6185 /* SunOS 4.1.1 cc rejects this. */
6186 char const *const *pcpcc;
6188 /* NEC SVR4.0.2 mips cc rejects this. */
6189 struct point {int x, y;};
6190 static struct point const zero = {0,0};
6191 /* AIX XL C 1.02.0.0 rejects this.
6192 It does not let you subtract one const X* pointer from another in
6193 an arm of an if-expression whose if-part is not a constant
6195 const char *g = "string";
6196 pcpcc = &g + (g ? g-g : 0);
6197 /* HPUX 7.0 cc rejects these. */
6199 ppc = (char**) pcpcc;
6200 pcpcc = (char const *const *) ppc;
6201 { /* SCO 3.2v4 cc rejects this. */
6203 char const *s = 0 ? (char *) 0 : (char const *) 0;
6208 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6210 const int *foo = &x[0];
6213 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6214 typedef const int *iptr;
6218 { /* AIX XL C 1.02.0.0 rejects this saying
6219 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6220 struct s { int j; const int *ap[3]; };
6221 struct s *b; b->j = 5;
6223 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6227 return !cs[0] && !zero.x;
6234 if ac_fn_c_try_compile "$LINENO"; then :
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6242 $as_echo "$ac_cv_c_const" >&6; }
6243 if test $ac_cv_c_const = no; then
6245 $as_echo "#define const /**/" >>confdefs.h
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6250 $as_echo_n "checking for inline... " >&6; }
6251 if test "${ac_cv_c_inline+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6255 for ac_kw in inline __inline__ __inline; do
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6260 static $ac_kw foo_t static_foo () {return 0; }
6261 $ac_kw foo_t foo () {return 0; }
6265 if ac_fn_c_try_compile "$LINENO"; then :
6266 ac_cv_c_inline=$ac_kw
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 test "$ac_cv_c_inline" != no && break
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6274 $as_echo "$ac_cv_c_inline" >&6; }
6276 case $ac_cv_c_inline in
6279 case $ac_cv_c_inline in
6281 *) ac_val=$ac_cv_c_inline;;
6283 cat >>confdefs.h <<_ACEOF
6285 #define inline $ac_val
6291 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6292 if test "x$ac_cv_type_pid_t" = x""yes; then :
6296 cat >>confdefs.h <<_ACEOF
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6303 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6304 if test "${ac_cv_header_time+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #include <sys/types.h>
6310 #include <sys/time.h>
6316 if ((struct tm *) 0)
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323 ac_cv_header_time=yes
6325 ac_cv_header_time=no
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6330 $as_echo "$ac_cv_header_time" >&6; }
6331 if test $ac_cv_header_time = yes; then
6333 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6338 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6339 if test "${ac_cv_struct_tm+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 #include <sys/types.h>
6351 int *p = &tm.tm_sec;
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 ac_cv_struct_tm=time.h
6360 ac_cv_struct_tm=sys/time.h
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6365 $as_echo "$ac_cv_struct_tm" >&6; }
6366 if test $ac_cv_struct_tm = sys/time.h; then
6368 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6373 # Checks for library functions.
6374 for ac_header in vfork.h
6376 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6377 if test "x$ac_cv_header_vfork_h" = x""yes; then :
6378 cat >>confdefs.h <<_ACEOF
6379 #define HAVE_VFORK_H 1
6386 for ac_func in fork vfork
6388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6390 eval as_val=\$$as_ac_var
6391 if test "x$as_val" = x""yes; then :
6392 cat >>confdefs.h <<_ACEOF
6393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6399 if test "x$ac_cv_func_fork" = xyes; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6401 $as_echo_n "checking for working fork... " >&6; }
6402 if test "${ac_cv_func_fork_works+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 if test "$cross_compiling" = yes; then :
6406 ac_cv_func_fork_works=cross
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 $ac_includes_default
6415 /* By Ruediger Kuhlmann. */
6422 if ac_fn_c_try_run "$LINENO"; then :
6423 ac_cv_func_fork_works=yes
6425 ac_cv_func_fork_works=no
6427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6428 conftest.$ac_objext conftest.beam conftest.$ac_ext
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6433 $as_echo "$ac_cv_func_fork_works" >&6; }
6436 ac_cv_func_fork_works=$ac_cv_func_fork
6438 if test "x$ac_cv_func_fork_works" = xcross; then
6440 *-*-amigaos* | *-*-msdosdjgpp*)
6441 # Override, as these systems have only a dummy fork() stub
6442 ac_cv_func_fork_works=no
6445 ac_cv_func_fork_works=yes
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6449 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6451 ac_cv_func_vfork_works=$ac_cv_func_vfork
6452 if test "x$ac_cv_func_vfork" = xyes; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6454 $as_echo_n "checking for working vfork... " >&6; }
6455 if test "${ac_cv_func_vfork_works+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6458 if test "$cross_compiling" = yes; then :
6459 ac_cv_func_vfork_works=cross
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 /* Thanks to Paul Eggert for this test. */
6464 $ac_includes_default
6465 #include <sys/wait.h>
6469 /* On some sparc systems, changes by the child to local and incoming
6470 argument registers are propagated back to the parent. The compiler
6471 is told about this with #include <vfork.h>, but some compilers
6472 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6473 static variable whose address is put into a register that is
6474 clobbered by the vfork. */
6477 sparc_address_test (int arg)
6479 sparc_address_test (arg) int arg;
6500 pid_t parent = getpid ();
6503 sparc_address_test (0);
6508 /* Here is another test for sparc vfork register problems. This
6509 test uses lots of local variables, at least as many local
6510 variables as main has allocated so far including compiler
6511 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6512 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6513 reuse the register of parent for one of the local variables,
6514 since it will think that parent can't possibly be used any more
6515 in this routine. Assigning to the local variable will thus
6516 munge parent in the parent process. */
6518 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6519 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6520 /* Convince the compiler that p..p7 are live; otherwise, it might
6521 use the same hardware register for all 8 local variables. */
6522 if (p != p1 || p != p2 || p != p3 || p != p4
6523 || p != p5 || p != p6 || p != p7)
6526 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6527 from child file descriptors. If the child closes a descriptor
6528 before it execs or exits, this munges the parent's descriptor
6529 as well. Test for this by closing stdout in the child. */
6530 _exit(close(fileno(stdout)) != 0);
6535 while (wait(&status) != child)
6538 /* Was there some problem with vforking? */
6541 /* Did the child fail? (This shouldn't happen.) */
6544 /* Did the vfork/compiler bug occur? */
6545 || parent != getpid()
6547 /* Did the file descriptor bug occur? */
6548 || fstat(fileno(stdout), &st) != 0
6553 if ac_fn_c_try_run "$LINENO"; then :
6554 ac_cv_func_vfork_works=yes
6556 ac_cv_func_vfork_works=no
6558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6559 conftest.$ac_objext conftest.beam conftest.$ac_ext
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6564 $as_echo "$ac_cv_func_vfork_works" >&6; }
6567 if test "x$ac_cv_func_fork_works" = xcross; then
6568 ac_cv_func_vfork_works=$ac_cv_func_vfork
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6570 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6573 if test "x$ac_cv_func_vfork_works" = xyes; then
6575 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6579 $as_echo "#define vfork fork" >>confdefs.h
6582 if test "x$ac_cv_func_fork_works" = xyes; then
6584 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6588 if test $ac_cv_c_compiler_gnu = yes; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6590 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6591 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6594 ac_pattern="Autoconf.*'x'"
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6601 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6602 ac_cv_prog_gcc_traditional=yes
6604 ac_cv_prog_gcc_traditional=no
6609 if test $ac_cv_prog_gcc_traditional = no; then
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6617 ac_cv_prog_gcc_traditional=yes
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6624 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6625 if test $ac_cv_prog_gcc_traditional = yes; then
6626 CC="$CC -traditional"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6631 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
6632 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6635 rm -f conftest.sym conftest.file
6637 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6638 if test "$cross_compiling" = yes; then :
6639 ac_cv_func_lstat_dereferences_slashed_symlink=no
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 $ac_includes_default
6648 /* Linux will dereference the symlink and fail, as required by POSIX.
6649 That is better in the sense that it means we will not
6650 have to compile and use the lstat wrapper. */
6651 return lstat ("conftest.sym/", &sbuf) == 0;
6656 if ac_fn_c_try_run "$LINENO"; then :
6657 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6659 ac_cv_func_lstat_dereferences_slashed_symlink=no
6661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6662 conftest.$ac_objext conftest.beam conftest.$ac_ext
6666 # If the `ln -s' command failed, then we probably don't even
6667 # have an lstat function.
6668 ac_cv_func_lstat_dereferences_slashed_symlink=no
6670 rm -f conftest.sym conftest.file
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6674 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6676 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6678 cat >>confdefs.h <<_ACEOF
6679 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6683 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6684 case " $LIBOBJS " in
6685 *" lstat.$ac_objext "* ) ;;
6686 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6693 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6694 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6697 if test "$cross_compiling" = yes; then :
6698 ac_cv_func_lstat_empty_string_bug=yes
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 $ac_includes_default
6707 return lstat ("", &sbuf) == 0;
6712 if ac_fn_c_try_run "$LINENO"; then :
6713 ac_cv_func_lstat_empty_string_bug=no
6715 ac_cv_func_lstat_empty_string_bug=yes
6717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6718 conftest.$ac_objext conftest.beam conftest.$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6723 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6724 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6725 case " $LIBOBJS " in
6726 *" lstat.$ac_objext "* ) ;;
6727 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6739 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
6740 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6743 rm -f conftest.sym conftest.file
6745 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6746 if test "$cross_compiling" = yes; then :
6747 ac_cv_func_lstat_dereferences_slashed_symlink=no
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 $ac_includes_default
6756 /* Linux will dereference the symlink and fail, as required by POSIX.
6757 That is better in the sense that it means we will not
6758 have to compile and use the lstat wrapper. */
6759 return lstat ("conftest.sym/", &sbuf) == 0;
6764 if ac_fn_c_try_run "$LINENO"; then :
6765 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6767 ac_cv_func_lstat_dereferences_slashed_symlink=no
6769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6770 conftest.$ac_objext conftest.beam conftest.$ac_ext
6774 # If the `ln -s' command failed, then we probably don't even
6775 # have an lstat function.
6776 ac_cv_func_lstat_dereferences_slashed_symlink=no
6778 rm -f conftest.sym conftest.file
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6782 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6784 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6786 cat >>confdefs.h <<_ACEOF
6787 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6791 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6792 case " $LIBOBJS " in
6793 *" lstat.$ac_objext "* ) ;;
6794 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6800 for ac_header in stdlib.h
6802 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6803 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6804 cat >>confdefs.h <<_ACEOF
6805 #define HAVE_STDLIB_H 1
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6813 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6814 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6817 if test "$cross_compiling" = yes; then :
6818 ac_cv_func_malloc_0_nonnull=no
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6823 # include <stdlib.h>
6831 return ! malloc (0);
6836 if ac_fn_c_try_run "$LINENO"; then :
6837 ac_cv_func_malloc_0_nonnull=yes
6839 ac_cv_func_malloc_0_nonnull=no
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842 conftest.$ac_objext conftest.beam conftest.$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6847 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6848 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6850 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6853 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6855 case " $LIBOBJS " in
6856 *" malloc.$ac_objext "* ) ;;
6857 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6862 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6868 $as_echo_n "checking for working memcmp... " >&6; }
6869 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6870 $as_echo_n "(cached) " >&6
6872 if test "$cross_compiling" = yes; then :
6873 ac_cv_func_memcmp_working=no
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 $ac_includes_default
6882 /* Some versions of memcmp are not 8-bit clean. */
6883 char c0 = '\100', c1 = '\200', c2 = '\201';
6884 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6887 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6888 or more and with at least one buffer not starting on a 4-byte boundary.
6889 William Lewis provided this test program. */
6894 for (i = 0; i < 4; i++)
6898 strcpy (a, "--------01111111");
6899 strcpy (b, "--------10000000");
6900 if (memcmp (a, b, 16) >= 0)
6910 if ac_fn_c_try_run "$LINENO"; then :
6911 ac_cv_func_memcmp_working=yes
6913 ac_cv_func_memcmp_working=no
6915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6916 conftest.$ac_objext conftest.beam conftest.$ac_ext
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6921 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6922 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6923 *" memcmp.$ac_objext "* ) ;;
6924 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6930 $as_echo_n "checking return type of signal handlers... " >&6; }
6931 if test "${ac_cv_type_signal+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 #include <sys/types.h>
6942 return *(signal (0, 0)) (0) == 1;
6947 if ac_fn_c_try_compile "$LINENO"; then :
6948 ac_cv_type_signal=int
6950 ac_cv_type_signal=void
6952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6955 $as_echo "$ac_cv_type_signal" >&6; }
6957 cat >>confdefs.h <<_ACEOF
6958 #define RETSIGTYPE $ac_cv_type_signal
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
6963 $as_echo_n "checking for working strnlen... " >&6; }
6964 if test "${ac_cv_func_strnlen_working+set}" = set; then :
6965 $as_echo_n "(cached) " >&6
6967 if test "$cross_compiling" = yes; then :
6968 ac_cv_func_strnlen_working=no
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 $ac_includes_default
6978 #define S_LEN (sizeof S - 1)
6980 /* At least one implementation is buggy: that of AIX 4.3 would
6981 give strnlen (S, 1) == 3. */
6984 for (i = 0; i < S_LEN + 1; ++i)
6986 int expected = i <= S_LEN ? i : S_LEN;
6987 if (strnlen (S, i) != expected)
6996 if ac_fn_c_try_run "$LINENO"; then :
6997 ac_cv_func_strnlen_working=yes
6999 ac_cv_func_strnlen_working=no
7001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7002 conftest.$ac_objext conftest.beam conftest.$ac_ext
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
7007 $as_echo "$ac_cv_func_strnlen_working" >&6; }
7008 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
7009 *" strnlen.$ac_objext "* ) ;;
7010 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
7016 $as_echo_n "checking for working strtod... " >&6; }
7017 if test "${ac_cv_func_strtod+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7020 if test "$cross_compiling" = yes; then :
7021 ac_cv_func_strtod=no
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7026 $ac_includes_default
7034 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7035 char *string = " +69";
7038 value = strtod (string, &term);
7039 if (value != 69 || term != (string + 4))
7044 /* Under Solaris 2.4, strtod returns the wrong value for the
7045 terminating character under some conditions. */
7046 char *string = "NaN";
7048 strtod (string, &term);
7049 if (term != string && *(term - 1) == 0)
7056 if ac_fn_c_try_run "$LINENO"; then :
7057 ac_cv_func_strtod=yes
7059 ac_cv_func_strtod=no
7061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7062 conftest.$ac_objext conftest.beam conftest.$ac_ext
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
7067 $as_echo "$ac_cv_func_strtod" >&6; }
7068 if test $ac_cv_func_strtod = no; then
7069 case " $LIBOBJS " in
7070 *" strtod.$ac_objext "* ) ;;
7071 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7075 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
7076 if test "x$ac_cv_func_pow" = x""yes; then :
7080 if test $ac_cv_func_pow = no; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
7082 $as_echo_n "checking for pow in -lm... " >&6; }
7083 if test "${ac_cv_lib_m_pow+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7086 ac_check_lib_save_LIBS=$LIBS
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7091 /* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
7106 if ac_fn_c_try_link "$LINENO"; then :
7111 rm -f core conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113 LIBS=$ac_check_lib_save_LIBS
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
7116 $as_echo "$ac_cv_lib_m_pow" >&6; }
7117 if test "x$ac_cv_lib_m_pow" = x""yes; then :
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
7121 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7128 for ac_func in vprintf
7130 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7131 if test "x$ac_cv_func_vprintf" = x""yes; then :
7132 cat >>confdefs.h <<_ACEOF
7133 #define HAVE_VPRINTF 1
7136 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7137 if test "x$ac_cv_func__doprnt" = x""yes; then :
7139 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7147 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
7149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7151 eval as_val=\$$as_ac_var
7152 if test "x$as_val" = x""yes; then :
7153 cat >>confdefs.h <<_ACEOF
7154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7162 ac_config_files="$ac_config_files Makefile"
7164 cat >confcache <<\_ACEOF
7165 # This file is a shell script that caches the results of configure
7166 # tests run on this system so they can be shared between configure
7167 # scripts and configure runs, see configure's option --config-cache.
7168 # It is not useful on other systems. If it contains results you don't
7169 # want to keep, you may remove or edit it.
7171 # config.status only pays attention to the cache file if you give it
7172 # the --recheck option to rerun configure.
7174 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7175 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7180 # The following way of writing the cache mishandles newlines in values,
7181 # but we know of no workaround that is simple, portable, and efficient.
7182 # So, we kill variables containing newlines.
7183 # Ultrix sh set writes to stderr and can't be redirected directly,
7184 # and sets the high bit in the cache file unless we assign to the vars.
7186 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7187 eval ac_val=\$$ac_var
7191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7195 _ | IFS | as_nl) ;; #(
7196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7197 *) { eval $ac_var=; unset $ac_var;} ;;
7203 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7204 *${as_nl}ac_space=\ *)
7205 # `set' does not quote correctly, so add quotes: double-quote
7206 # substitution turns \\\\ into \\, and sed turns \\ into \.
7209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7212 # `set' quotes correctly as required by POSIX, so do not add quotes.
7213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7222 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7224 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7226 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7227 if test -w "$cache_file"; then
7228 test "x$cache_file" != "x/dev/null" &&
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7230 $as_echo "$as_me: updating cache $cache_file" >&6;}
7231 cat confcache >$cache_file
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7234 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7239 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7240 # Let make expand exec_prefix.
7241 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7243 DEFS=-DHAVE_CONFIG_H
7247 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7248 # 1. Remove the extension, and $U if already installed.
7249 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7250 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7251 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7252 # will be set to the directory where LIBOBJS objects are built.
7253 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7254 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7258 LTLIBOBJS=$ac_ltlibobjs
7261 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7262 as_fn_error "conditional \"AMDEP\" was never defined.
7263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7265 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7266 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7269 if test -n "$EXEEXT"; then
7271 am__EXEEXT_FALSE='#'
7277 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7278 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7281 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
7282 as_fn_error "conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
7283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7285 if test -z "${ENABLE_GSM_BS_TRUE}" && test -z "${ENABLE_GSM_BS_FALSE}"; then
7286 as_fn_error "conditional \"ENABLE_GSM_BS\" was never defined.
7287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7289 if test -z "${ENABLE_GSM_MS_TRUE}" && test -z "${ENABLE_GSM_MS_FALSE}"; then
7290 as_fn_error "conditional \"ENABLE_GSM_MS\" was never defined.
7291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7293 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
7294 as_fn_error "conditional \"ENABLE_GSM\" was never defined.
7295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7297 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
7298 as_fn_error "conditional \"ENABLE_SS5\" was never defined.
7299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7302 : ${CONFIG_STATUS=./config.status}
7304 ac_clean_files_save=$ac_clean_files
7305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7307 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7309 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7311 # Generated by $as_me.
7312 # Run this file to recreate the current configuration.
7313 # Compiler output produced by configure, useful for debugging
7314 # configure, is in config.log if it exists.
7320 SHELL=\${CONFIG_SHELL-$SHELL}
7323 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7324 ## -------------------- ##
7325 ## M4sh Initialization. ##
7326 ## -------------------- ##
7328 # Be more Bourne compatible
7329 DUALCASE=1; export DUALCASE # for MKS sh
7330 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7333 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7334 # is contrary to our usage. Disable this feature.
7335 alias -g '${1+"$@"}'='"$@"'
7336 setopt NO_GLOB_SUBST
7338 case `(set -o) 2>/dev/null` in #(
7350 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7351 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7352 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7354 # Prefer a ksh shell builtin over an external printf program on Solaris,
7355 # but without wasting forks for bash or zsh.
7356 if test -z "$BASH_VERSION$ZSH_VERSION" \
7357 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7358 as_echo='print -r --'
7359 as_echo_n='print -rn --'
7360 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7361 as_echo='printf %s\n'
7362 as_echo_n='printf %s'
7364 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7365 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7366 as_echo_n='/usr/ucb/echo -n'
7368 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7369 as_echo_n_body='eval
7373 expr "X$arg" : "X\\(.*\\)$as_nl";
7374 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7376 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7378 export as_echo_n_body
7379 as_echo_n='sh -c $as_echo_n_body as_echo'
7382 as_echo='sh -c $as_echo_body as_echo'
7385 # The user is always right.
7386 if test "${PATH_SEPARATOR+set}" != set; then
7388 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7389 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7396 # We need space, tab and new line, in precisely that order. Quoting is
7397 # there to prevent editors from complaining about space-tab.
7398 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7399 # splitting by setting IFS to empty value.)
7402 # Find who we are. Look in the path if we contain no directory separator.
7404 *[\\/]* ) as_myself=$0 ;;
7405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir=.
7410 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7416 # We did not find ourselves, most probably we were run as `sh COMMAND'
7417 # in which case we are not to be found in the path.
7418 if test "x$as_myself" = x; then
7421 if test ! -f "$as_myself"; then
7422 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7426 # Unset variables that we do not need and which cause bugs (e.g. in
7427 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7428 # suppresses any "Segmentation fault" message there. '((' could
7429 # trigger a bug in pdksh 5.2.14.
7430 for as_var in BASH_ENV ENV MAIL MAILPATH
7431 do eval test x\${$as_var+set} = xset \
7432 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7445 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7448 # as_fn_error ERROR [LINENO LOG_FD]
7449 # ---------------------------------
7450 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7451 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7452 # script with status $?, using 1 if that was 0.
7455 as_status=$?; test $as_status -eq 0 && as_status=1
7457 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7458 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7460 $as_echo "$as_me: error: $1" >&2
7461 as_fn_exit $as_status
7465 # as_fn_set_status STATUS
7466 # -----------------------
7467 # Set $? to STATUS, without forking.
7471 } # as_fn_set_status
7475 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7485 # Portably unset VAR.
7488 { eval $1=; unset $1;}
7490 as_unset=as_fn_unset
7491 # as_fn_append VAR VALUE
7492 # ----------------------
7493 # Append the text in VALUE to the end of the definition contained in VAR. Take
7494 # advantage of any shell optimizations that allow amortized linear growth over
7495 # repeated appends, instead of the typical quadratic growth present in naive
7497 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7498 eval 'as_fn_append ()
7509 # as_fn_arith ARG...
7510 # ------------------
7511 # Perform arithmetic evaluation on the ARGs, and store the result in the
7512 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7513 # must be portable across $(()) and expr.
7514 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7515 eval 'as_fn_arith ()
7522 as_val=`expr "$@" || test $? -eq 1`
7527 if expr a : '\(a\)' >/dev/null 2>&1 &&
7528 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7534 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7535 as_basename=basename
7540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7546 as_me=`$as_basename -- "$0" ||
7547 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7548 X"$0" : 'X\(//\)$' \| \
7549 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7551 sed '/^.*\/\([^/][^/]*\)\/*$/{
7565 # Avoid depending upon Character Ranges.
7566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7569 as_cr_digits='0123456789'
7570 as_cr_alnum=$as_cr_Letters$as_cr_digits
7572 ECHO_C= ECHO_N= ECHO_T=
7573 case `echo -n x` in #(((((
7575 case `echo 'xy\c'` in
7576 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7578 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7585 rm -f conf$$ conf$$.exe conf$$.file
7586 if test -d conf$$.dir; then
7587 rm -f conf$$.dir/conf$$.file
7590 mkdir conf$$.dir 2>/dev/null
7592 if (echo >conf$$.file) 2>/dev/null; then
7593 if ln -s conf$$.file conf$$ 2>/dev/null; then
7595 # ... but there are two gotchas:
7596 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7597 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7598 # In both cases, we have to default to `cp -p'.
7599 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7601 elif ln conf$$.file conf$$ 2>/dev/null; then
7609 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7610 rmdir conf$$.dir 2>/dev/null
7615 # Create "$as_dir" as a directory, including parents if necessary.
7620 -*) as_dir=./$as_dir;;
7622 test -d "$as_dir" || eval $as_mkdir_p || {
7626 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7627 *) as_qdir=$as_dir;;
7629 as_dirs="'$as_qdir' $as_dirs"
7630 as_dir=`$as_dirname -- "$as_dir" ||
7631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7632 X"$as_dir" : 'X\(//\)[^/]' \| \
7633 X"$as_dir" : 'X\(//\)$' \| \
7634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7635 $as_echo X"$as_dir" |
7636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7653 test -d "$as_dir" && break
7655 test -z "$as_dirs" || eval "mkdir $as_dirs"
7656 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7660 if mkdir -p . 2>/dev/null; then
7661 as_mkdir_p='mkdir -p "$as_dir"'
7663 test -d ./-p && rmdir ./-p
7667 if test -x / >/dev/null 2>&1; then
7670 if ls -dL / >/dev/null 2>&1; then
7677 if test -d "$1"; then
7683 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7684 ???[sx]*):;;*)false;;esac;fi
7688 as_executable_p=$as_test_x
7690 # Sed expression to map a string onto a valid CPP name.
7691 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7693 # Sed expression to map a string onto a valid variable name.
7694 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7698 ## ----------------------------------- ##
7699 ## Main body of $CONFIG_STATUS script. ##
7700 ## ----------------------------------- ##
7702 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7705 # Save the log message, to keep $0 and so on meaningful, and to
7706 # report actual input values of CONFIG_FILES etc. instead of their
7707 # values after options handling.
7709 This file was extended by lcr $as_me 1.7, which was
7710 generated by GNU Autoconf 2.65. Invocation command line was
7712 CONFIG_FILES = $CONFIG_FILES
7713 CONFIG_HEADERS = $CONFIG_HEADERS
7714 CONFIG_LINKS = $CONFIG_LINKS
7715 CONFIG_COMMANDS = $CONFIG_COMMANDS
7718 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7723 case $ac_config_files in *"
7724 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7727 case $ac_config_headers in *"
7728 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7733 # Files that config.status was made for.
7734 config_files="$ac_config_files"
7735 config_headers="$ac_config_headers"
7736 config_commands="$ac_config_commands"
7740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7742 \`$as_me' instantiates files and other configuration actions
7743 from templates according to the current configuration. Unless the files
7744 and actions are specified as TAGs, all are instantiated by default.
7746 Usage: $0 [OPTION]... [TAG]...
7748 -h, --help print this help, then exit
7749 -V, --version print version number and configuration settings, then exit
7750 --config print configuration, then exit
7751 -q, --quiet, --silent
7752 do not print progress messages
7753 -d, --debug don't remove temporary files
7754 --recheck update $as_me by reconfiguring in the same conditions
7755 --file=FILE[:TEMPLATE]
7756 instantiate the configuration file FILE
7757 --header=FILE[:TEMPLATE]
7758 instantiate the configuration header FILE
7760 Configuration files:
7763 Configuration headers:
7766 Configuration commands:
7769 Report bugs to <andreas@eversberg.eu>."
7772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7773 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7775 lcr config.status 1.7
7776 configured by $0, generated by GNU Autoconf 2.65,
7777 with options \\"\$ac_cs_config\\"
7779 Copyright (C) 2009 Free Software Foundation, Inc.
7780 This config.status script is free software; the Free Software Foundation
7781 gives unlimited permission to copy, distribute and modify it."
7788 test -n "\$AWK" || AWK=awk
7791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7792 # The default lists apply if the user does not specify any file.
7798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7810 # Handling of the options.
7811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7813 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7814 $as_echo "$ac_cs_version"; exit ;;
7815 --config | --confi | --conf | --con | --co | --c )
7816 $as_echo "$ac_cs_config"; exit ;;
7817 --debug | --debu | --deb | --de | --d | -d )
7819 --file | --fil | --fi | --f )
7822 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7824 as_fn_append CONFIG_FILES " '$ac_optarg'"
7825 ac_need_defaults=false;;
7826 --header | --heade | --head | --hea )
7829 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7831 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7832 ac_need_defaults=false;;
7834 # Conflict between --help and --header
7835 as_fn_error "ambiguous option: \`$1'
7836 Try \`$0 --help' for more information.";;
7837 --help | --hel | -h )
7838 $as_echo "$ac_cs_usage"; exit ;;
7839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7844 -*) as_fn_error "unrecognized option: \`$1'
7845 Try \`$0 --help' for more information." ;;
7847 *) as_fn_append ac_config_targets " $1"
7848 ac_need_defaults=false ;;
7854 ac_configure_extra_args=
7856 if $ac_cs_silent; then
7858 ac_configure_extra_args="$ac_configure_extra_args --silent"
7862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7863 if \$ac_cs_recheck; then
7864 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7866 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7867 CONFIG_SHELL='$SHELL'
7873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7878 ## Running $as_me. ##
7884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7888 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7894 # Handling of arguments.
7895 for ac_config_target in $ac_config_targets
7897 case $ac_config_target in
7898 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7899 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7902 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7907 # If the user did not use the arguments to specify the items to instantiate,
7908 # then the envvar interface is used. Set only those that are not.
7909 # We use the long form for the default assignment because of an extremely
7910 # bizarre bug on SunOS 4.1.3.
7911 if $ac_need_defaults; then
7912 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7913 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7914 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7917 # Have a temporary directory for convenience. Make it in the build tree
7918 # simply because there is no reason against having it here, and in addition,
7919 # creating and moving files from /tmp can sometimes cause problems.
7920 # Hook for its removal unless debugging.
7921 # Note that there is a small window in which the directory will not be cleaned:
7922 # after its creation but before its name has been assigned to `$tmp'.
7926 trap 'exit_status=$?
7927 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7929 trap 'as_fn_exit 1' 1 2 13 15
7931 # Create a (secure) tmp directory for tmp files.
7934 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7935 test -n "$tmp" && test -d "$tmp"
7938 tmp=./conf$$-$RANDOM
7939 (umask 077 && mkdir "$tmp")
7940 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7942 # Set up the scripts for CONFIG_FILES section.
7943 # No need to generate them if there are no CONFIG_FILES.
7944 # This happens for instance with `./config.status config.h'.
7945 if test -n "$CONFIG_FILES"; then
7948 ac_cr=`echo X | tr X '\015'`
7949 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7950 # But we know of no other shell where ac_cr would be empty at this
7951 # point, so we can use a bashism as a fallback.
7952 if test "x$ac_cr" = x; then
7953 eval ac_cr=\$\'\\r\'
7955 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7956 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7962 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7967 echo "cat >conf$$subs.awk <<_ACEOF" &&
7968 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7971 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7974 for ac_last_try in false false false false false :; do
7975 . ./conf$$subs.sh ||
7976 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7978 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7979 if test $ac_delim_n = $ac_delim_num; then
7981 elif $ac_last_try; then
7982 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7990 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7994 s/^/S["/; s/!.*/"]=/
8004 s/\(.\{148\}\)..*/\1/
8006 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8018 s/\(.\{148\}\)..*/\1/
8020 s/["\\]/\\&/g; s/^/"/; s/$/"/
8024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8029 ' <conf$$subs.awk | sed '
8034 ' >>$CONFIG_STATUS || ac_write_fail=1
8035 rm -f conf$$subs.awk
8036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8038 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8039 for (key in S) S_is_set[key] = 1
8045 nfields = split(line, field, "@")
8047 len = length(field[1])
8048 for (i = 2; i < nfields; i++) {
8050 keylen = length(key)
8051 if (S_is_set[key]) {
8053 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8054 len += length(value) + length(field[++i])
8065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8066 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8067 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8070 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8071 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8076 # trailing colons and then remove the whole line if VPATH becomes empty
8077 # (actually we leave an empty line to preserve line numbers).
8078 if test "x$srcdir" = x.; then
8079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8083 s/^\([^=]*=[ ]*\):*/\1/
8089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8090 fi # test -n "$CONFIG_FILES"
8092 # Set up the scripts for CONFIG_HEADERS section.
8093 # No need to generate them if there are no CONFIG_HEADERS.
8094 # This happens for instance with `./config.status Makefile'.
8095 if test -n "$CONFIG_HEADERS"; then
8096 cat >"$tmp/defines.awk" <<\_ACAWK ||
8100 # Transform confdefs.h into an awk script `defines.awk', embedded as
8101 # here-document in config.status, that substitutes the proper values into
8102 # config.h.in to produce config.h.
8104 # Create a delimiter string that does not exist in confdefs.h, to ease
8105 # handling of long lines.
8107 for ac_last_try in false false :; do
8108 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8109 if test -z "$ac_t"; then
8111 elif $ac_last_try; then
8112 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8114 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8118 # For the awk script, D is an array of macro values keyed by name,
8119 # likewise P contains macro parameters if any. Preserve backslash
8120 # newline sequences.
8122 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8124 s/.\{148\}/&'"$ac_delim"'/g
8127 s/^[ ]*#[ ]*define[ ][ ]*/ /
8134 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8136 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8141 D["\1"]=" \3\\\\\\n"\\/p
8143 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8148 s/.\{148\}/&'"$ac_delim"'/g
8153 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8156 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8158 ' <confdefs.h | sed '
8159 s/'"$ac_delim"'/"\\\
8160 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8163 for (key in D) D_is_set[key] = 1
8166 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8168 split(line, arg, " ")
8169 if (arg[1] == "#") {
8173 defundef = substr(arg[1], 2)
8176 split(mac1, mac2, "(") #)
8178 prefix = substr(line, 1, index(line, defundef) - 1)
8179 if (D_is_set[macro]) {
8180 # Preserve the white space surrounding the "#".
8181 print prefix "define", macro P[macro] D[macro]
8184 # Replace #undef with comments. This is necessary, for example,
8185 # in the case of _POSIX_SOURCE, which is predefined and required
8186 # on some systems where configure will not decide to define it.
8187 if (defundef == "undef") {
8188 print "/*", prefix defundef, macro, "*/"
8196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8197 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8198 fi # test -n "$CONFIG_HEADERS"
8201 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8206 :[FHLC]) ac_mode=$ac_tag; continue;;
8208 case $ac_mode$ac_tag in
8210 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8211 :[FH]-) ac_tag=-:-;;
8212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8229 -) ac_f="$tmp/stdin";;
8230 *) # Look for the file first in the build tree, then in the source tree
8231 # (if the path is not absolute). The absolute path cannot be DOS-style,
8232 # because $ac_f cannot contain `:'.
8236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8238 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8241 as_fn_append ac_file_inputs " '$ac_f'"
8244 # Let's still pretend it is `configure' which instantiates (i.e., don't
8245 # use $as_me), people would be surprised to read:
8246 # /* config.h. Generated by config.status. */
8247 configure_input='Generated from '`
8248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8250 if test x"$ac_file" != x-; then
8251 configure_input="$ac_file. $configure_input"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8253 $as_echo "$as_me: creating $ac_file" >&6;}
8255 # Neutralize special characters interpreted by sed in replacement strings.
8256 case $configure_input in #(
8257 *\&* | *\|* | *\\* )
8258 ac_sed_conf_input=`$as_echo "$configure_input" |
8259 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8260 *) ac_sed_conf_input=$configure_input;;
8264 *:-:* | *:-) cat >"$tmp/stdin" \
8265 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8270 ac_dir=`$as_dirname -- "$ac_file" ||
8271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8272 X"$ac_file" : 'X\(//\)[^/]' \| \
8273 X"$ac_file" : 'X\(//\)$' \| \
8274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8275 $as_echo X"$ac_file" |
8276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8293 as_dir="$ac_dir"; as_fn_mkdir_p
8297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8300 # A ".." for each directory in $ac_dir_suffix.
8301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8302 case $ac_top_builddir_sub in
8303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8307 ac_abs_top_builddir=$ac_pwd
8308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8309 # for backward compatibility:
8310 ac_top_builddir=$ac_top_build_prefix
8313 .) # We are building in place.
8315 ac_top_srcdir=$ac_top_builddir_sub
8316 ac_abs_top_srcdir=$ac_pwd ;;
8317 [\\/]* | ?:[\\/]* ) # Absolute name.
8318 ac_srcdir=$srcdir$ac_dir_suffix;
8319 ac_top_srcdir=$srcdir
8320 ac_abs_top_srcdir=$srcdir ;;
8322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8323 ac_top_srcdir=$ac_top_build_prefix$srcdir
8324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8341 [\\/$]* | ?:[\\/]* ) ;;
8342 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8347 # If the template does not know about datarootdir, expand it.
8348 # FIXME: This hack should be removed a few years after 2.60.
8349 ac_datarootdir_hack=; ac_datarootdir_seen=
8360 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8361 *datarootdir*) ac_datarootdir_seen=yes;;
8362 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8364 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8367 ac_datarootdir_hack='
8368 s&@datadir@&$datadir&g
8369 s&@docdir@&$docdir&g
8370 s&@infodir@&$infodir&g
8371 s&@localedir@&$localedir&g
8372 s&@mandir@&$mandir&g
8373 s&\\\${datarootdir}&$datarootdir&g' ;;
8377 # Neutralize VPATH when `$srcdir' = `.'.
8378 # Shell code in configure.ac might set extrasub.
8379 # FIXME: do we really want to maintain this feature?
8380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8381 ac_sed_extra="$ac_vpsub
8384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8387 s|@configure_input@|$ac_sed_conf_input|;t t
8388 s&@top_builddir@&$ac_top_builddir_sub&;t t
8389 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8390 s&@srcdir@&$ac_srcdir&;t t
8391 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8392 s&@top_srcdir@&$ac_top_srcdir&;t t
8393 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8394 s&@builddir@&$ac_builddir&;t t
8395 s&@abs_builddir@&$ac_abs_builddir&;t t
8396 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8397 s&@INSTALL@&$ac_INSTALL&;t t
8398 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8399 $ac_datarootdir_hack
8401 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8402 || as_fn_error "could not create $ac_file" "$LINENO" 5
8404 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8405 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8406 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8408 which seems to be undefined. Please make sure it is defined." >&5
8409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8410 which seems to be undefined. Please make sure it is defined." >&2;}
8414 -) cat "$tmp/out" && rm -f "$tmp/out";;
8415 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8417 || as_fn_error "could not create $ac_file" "$LINENO" 5
8423 if test x"$ac_file" != x-; then
8425 $as_echo "/* $configure_input */" \
8426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8427 } >"$tmp/config.h" \
8428 || as_fn_error "could not create $ac_file" "$LINENO" 5
8429 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8431 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8434 mv "$tmp/config.h" "$ac_file" \
8435 || as_fn_error "could not create $ac_file" "$LINENO" 5
8438 $as_echo "/* $configure_input */" \
8439 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8440 || as_fn_error "could not create -" "$LINENO" 5
8442 # Compute "$ac_file"'s index in $config_headers.
8445 for _am_header in $config_headers :; do
8447 $_am_arg | $_am_arg:* )
8450 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8453 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8454 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8455 X"$_am_arg" : 'X\(//\)[^/]' \| \
8456 X"$_am_arg" : 'X\(//\)$' \| \
8457 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8458 $as_echo X"$_am_arg" |
8459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8475 s/.*/./; q'`/stamp-h$_am_stamp_count
8478 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8479 $as_echo "$as_me: executing $ac_file commands" >&6;}
8484 case $ac_file$ac_mode in
8485 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8486 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8487 # are listed without --file. Let's play safe and only enable the eval
8488 # if we detect the quoting.
8489 case $CONFIG_FILES in
8490 *\'*) eval set x "$CONFIG_FILES" ;;
8491 *) set x $CONFIG_FILES ;;
8496 # Strip MF so we end up with the name of the file.
8497 mf=`echo "$mf" | sed -e 's/:.*$//'`
8498 # Check whether this is an Automake generated Makefile or not.
8499 # We used to match only the files named `Makefile.in', but
8500 # some people rename them; so instead we look at the file content.
8501 # Grep'ing the first line is not enough: some people post-process
8502 # each Makefile.in and add a new line on top of each file to say so.
8503 # Grep'ing the whole file is not good either: AIX grep has a line
8504 # limit of 2048, but all sed's we know have understand at least 4000.
8505 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8506 dirpart=`$as_dirname -- "$mf" ||
8507 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8508 X"$mf" : 'X\(//\)[^/]' \| \
8509 X"$mf" : 'X\(//\)$' \| \
8510 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8532 # Extract the definition of DEPDIR, am__include, and am__quote
8533 # from the Makefile without running `make'.
8534 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8535 test -z "$DEPDIR" && continue
8536 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8537 test -z "am__include" && continue
8538 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8539 # When using ansi2knr, U may be empty or an underscore; expand it
8540 U=`sed -n 's/^U = //p' < "$mf"`
8541 # Find all dependency output files, they are included files with
8542 # $(DEPDIR) in their names. We invoke sed twice because it is the
8543 # simplest approach to changing $(DEPDIR) to its actual value in the
8545 for file in `sed -n "
8546 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8547 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8548 # Make sure the directory exists.
8549 test -f "$dirpart/$file" && continue
8550 fdir=`$as_dirname -- "$file" ||
8551 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8552 X"$file" : 'X\(//\)[^/]' \| \
8553 X"$file" : 'X\(//\)$' \| \
8554 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8573 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8574 # echo "creating $dirpart/$file"
8575 echo '# dummy' > "$dirpart/$file"
8587 ac_clean_files=$ac_clean_files_save
8589 test $ac_write_fail = 0 ||
8590 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8593 # configure is writing to config.log, and then calls config.status.
8594 # config.status does its own redirection, appending to config.log.
8595 # Unfortunately, on DOS this fails, as config.log is still kept open
8596 # by configure, so config.status won't be able to write to it; its
8597 # output is simply discarded. So we exec the FD to /dev/null,
8598 # effectively closing config.log, so it can be properly (re)opened and
8599 # appended to by config.status. When coming back to configure, we
8600 # need to make the FD available again.
8601 if test "$no_create" != yes; then
8603 ac_config_status_args=
8604 test "$silent" = yes &&
8605 ac_config_status_args="$ac_config_status_args --quiet"
8607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8610 # would make configure fail if this is the last instruction.
8611 $ac_cs_success || as_fn_exit $?
8613 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8615 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}