2 # From configure.ac Revision: 418850 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # 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 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
216 test -z "$as_dir" && as_dir=.
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
241 if test "x$CONFIG_SHELL" != x; then :
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 *v*x* | *x*v* ) as_opts=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
588 ac_unique_file="menuselect"
589 ac_unique_file="menuselect.c"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
626 ac_subst_vars='LTLIBOBJS
700 program_transform_name
713 enable_option_checking
720 ac_precious_vars='build_alias
731 # Initialize some variables set by options.
733 ac_init_version=false
734 ac_unrecognized_opts=
736 # The variables have the same names as the options, with
737 # dashes changed to underlines.
745 program_transform_name=s,x,x,
753 # Installation directory options.
754 # These are left unexpanded so users can "make install exec_prefix=/foo"
755 # and all the variables that are supposed to be based on exec_prefix
756 # by default will actually change.
757 # Use braces instead of parens because sh, perl, etc. also accept them.
758 # (The list follows the same order as the GNU Coding Standards.)
759 bindir='${exec_prefix}/bin'
760 sbindir='${exec_prefix}/sbin'
761 libexecdir='${exec_prefix}/libexec'
762 datarootdir='${prefix}/share'
763 datadir='${datarootdir}'
764 sysconfdir='${prefix}/etc'
765 sharedstatedir='${prefix}/com'
766 localstatedir='${prefix}/var'
767 includedir='${prefix}/include'
768 oldincludedir='/usr/include'
769 docdir='${datarootdir}/doc/${PACKAGE}'
770 infodir='${datarootdir}/info'
775 libdir='${exec_prefix}/lib'
776 localedir='${datarootdir}/locale'
777 mandir='${datarootdir}/man'
783 # If the previous option needs an argument, assign it.
784 if test -n "$ac_prev"; then
785 eval $ac_prev=\$ac_option
791 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 # Accept the important Cygnus configure options, so we can diagnose typos.
798 case $ac_dashdash$ac_option in
802 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 -build | --build | --buil | --bui | --bu)
808 ac_prev=build_alias ;;
809 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810 build_alias=$ac_optarg ;;
812 -cache-file | --cache-file | --cache-fil | --cache-fi \
813 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
814 ac_prev=cache_file ;;
815 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
816 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
817 cache_file=$ac_optarg ;;
820 cache_file=config.cache ;;
822 -datadir | --datadir | --datadi | --datad)
824 -datadir=* | --datadir=* | --datadi=* | --datad=*)
825 datadir=$ac_optarg ;;
827 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
828 | --dataroo | --dataro | --datar)
829 ac_prev=datarootdir ;;
830 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
831 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
832 datarootdir=$ac_optarg ;;
834 -disable-* | --disable-*)
835 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
836 # Reject names that are not valid shell variable names.
837 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
838 as_fn_error $? "invalid feature name: $ac_useropt"
839 ac_useropt_orig=$ac_useropt
840 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841 case $ac_user_opts in
845 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
846 ac_unrecognized_sep=', ';;
848 eval enable_$ac_useropt=no ;;
850 -docdir | --docdir | --docdi | --doc | --do)
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 -enable-* | --enable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
874 eval enable_$ac_useropt=\$ac_optarg ;;
876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878 | --exec | --exe | --ex)
879 ac_prev=exec_prefix ;;
880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882 | --exec=* | --exe=* | --ex=*)
883 exec_prefix=$ac_optarg ;;
885 -gas | --gas | --ga | --g)
886 # Obsolete; use --with-gas.
889 -help | --help | --hel | --he | -h)
891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892 ac_init_help=recursive ;;
893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894 ac_init_help=short ;;
896 -host | --host | --hos | --ho)
897 ac_prev=host_alias ;;
898 -host=* | --host=* | --hos=* | --ho=*)
899 host_alias=$ac_optarg ;;
901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 htmldir=$ac_optarg ;;
907 -includedir | --includedir | --includedi | --included | --include \
908 | --includ | --inclu | --incl | --inc)
909 ac_prev=includedir ;;
910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911 | --includ=* | --inclu=* | --incl=* | --inc=*)
912 includedir=$ac_optarg ;;
914 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917 infodir=$ac_optarg ;;
919 -libdir | --libdir | --libdi | --libd)
921 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925 | --libexe | --libex | --libe)
926 ac_prev=libexecdir ;;
927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928 | --libexe=* | --libex=* | --libe=*)
929 libexecdir=$ac_optarg ;;
931 -localedir | --localedir | --localedi | --localed | --locale)
933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934 localedir=$ac_optarg ;;
936 -localstatedir | --localstatedir | --localstatedi | --localstated \
937 | --localstate | --localstat | --localsta | --localst | --locals)
938 ac_prev=localstatedir ;;
939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941 localstatedir=$ac_optarg ;;
943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 # Obsolete; use --without-fp.
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c | -n)
956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962 | --oldin | --oldi | --old | --ol | --o)
963 ac_prev=oldincludedir ;;
964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967 oldincludedir=$ac_optarg ;;
969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 -program-prefix | --program-prefix | --program-prefi | --program-pref \
975 | --program-pre | --program-pr | --program-p)
976 ac_prev=program_prefix ;;
977 -program-prefix=* | --program-prefix=* | --program-prefi=* \
978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979 program_prefix=$ac_optarg ;;
981 -program-suffix | --program-suffix | --program-suffi | --program-suff \
982 | --program-suf | --program-su | --program-s)
983 ac_prev=program_suffix ;;
984 -program-suffix=* | --program-suffix=* | --program-suffi=* \
985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
996 -program-transform-name=* | --program-transform-name=* \
997 | --program-transform-nam=* | --program-transform-na=* \
998 | --program-transform-n=* | --program-transform-=* \
999 | --program-transform=* | --program-transfor=* \
1000 | --program-transfo=* | --program-transf=* \
1001 | --program-trans=* | --program-tran=* \
1002 | --progr-tra=* | --program-tr=* | --program-t=*)
1003 program_transform_name=$ac_optarg ;;
1005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008 pdfdir=$ac_optarg ;;
1010 -psdir | --psdir | --psdi | --psd | --ps)
1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 sbindir=$ac_optarg ;;
1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 | --sharedst | --shareds | --shared | --share | --shar \
1029 ac_prev=sharedstatedir ;;
1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 sharedstatedir=$ac_optarg ;;
1036 -site | --site | --sit)
1038 -site=* | --site=* | --sit=*)
1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 srcdir=$ac_optarg ;;
1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 | --syscon | --sysco | --sysc | --sys | --sy)
1048 ac_prev=sysconfdir ;;
1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 sysconfdir=$ac_optarg ;;
1053 -target | --target | --targe | --targ | --tar | --ta | --t)
1054 ac_prev=target_alias ;;
1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 target_alias=$ac_optarg ;;
1058 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 -version | --version | --versio | --versi | --vers | -V)
1062 ac_init_version=: ;;
1065 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid package name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1078 eval with_$ac_useropt=\$ac_optarg ;;
1080 -without-* | --without-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid package name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1094 eval with_$ac_useropt=no ;;
1097 # Obsolete; use --with-x.
1100 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1101 | --x-incl | --x-inc | --x-in | --x-i)
1102 ac_prev=x_includes ;;
1103 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1104 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1105 x_includes=$ac_optarg ;;
1107 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1108 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1109 ac_prev=x_libraries ;;
1110 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1111 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1112 x_libraries=$ac_optarg ;;
1114 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1115 Try \`$0 --help' for more information"
1119 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1120 # Reject names that are not valid shell variable names.
1121 case $ac_envvar in #(
1122 '' | [0-9]* | *[!_$as_cr_alnum]* )
1123 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1125 eval $ac_envvar=\$ac_optarg
1126 export $ac_envvar ;;
1129 # FIXME: should be removed in autoconf 3.0.
1130 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1131 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1132 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1133 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1139 if test -n "$ac_prev"; then
1140 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1141 as_fn_error $? "missing argument to $ac_option"
1144 if test -n "$ac_unrecognized_opts"; then
1145 case $enable_option_checking in
1147 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1148 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1152 # Check all directory arguments for consistency.
1153 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 datadir sysconfdir sharedstatedir localstatedir includedir \
1155 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 libdir localedir mandir
1158 eval ac_val=\$$ac_var
1159 # Remove trailing slashes.
1162 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1163 eval $ac_var=\$ac_val;;
1165 # Be sure to have absolute directory names.
1167 [\\/$]* | ?:[\\/]* ) continue;;
1168 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1173 # There might be people who depend on the old broken behavior: `$host'
1174 # used to hold the argument of --host etc.
1175 # FIXME: To remove some day.
1178 target=$target_alias
1180 # FIXME: To remove some day.
1181 if test "x$host_alias" != x; then
1182 if test "x$build_alias" = x; then
1183 cross_compiling=maybe
1184 elif test "x$build_alias" != "x$host_alias"; then
1190 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1192 test "$silent" = yes && exec 6>/dev/null
1195 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1196 ac_ls_di=`ls -di .` &&
1197 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1198 as_fn_error $? "working directory cannot be determined"
1199 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1200 as_fn_error $? "pwd does not report name of working directory"
1203 # Find the source files, if location was not specified.
1204 if test -z "$srcdir"; then
1205 ac_srcdir_defaulted=yes
1206 # Try the directory containing this script, then the parent directory.
1207 ac_confdir=`$as_dirname -- "$as_myself" ||
1208 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1209 X"$as_myself" : 'X\(//\)[^/]' \| \
1210 X"$as_myself" : 'X\(//\)$' \| \
1211 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1212 $as_echo X"$as_myself" |
1213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1235 ac_srcdir_defaulted=no
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1239 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1241 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1245 # When building in place, set srcdir=.
1246 if test "$ac_abs_confdir" = "$ac_pwd"; then
1249 # Remove unnecessary trailing slashes from srcdir.
1250 # Double slashes in file names in object file debugging info
1251 # mess up M-x gdb in Emacs.
1253 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263 # Report the --help message.
1265 if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1269 \`configure' configures this package to adapt to many kinds of systems.
1271 Usage: $0 [OPTION]... [VAR=VALUE]...
1273 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 VAR=VALUE. See below for descriptions of some of the useful variables.
1276 Defaults for the options are specified in brackets.
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking ...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1289 Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1295 By default, \`make install' will install all the files in
1296 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298 for instance \`--prefix=\$HOME'.
1300 For better control, use the options below.
1302 Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1327 --build=BUILD configure for building on BUILD [guessed]
1328 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1332 if test -n "$ac_init_help"; then
1337 --disable-option-checking ignore unrecognized --enable/--with options
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-debug Turn on debug mode
1343 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1344 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1345 --with-newt=PATH use newt files in PATH
1346 --with-curses=PATH use curses files in PATH
1347 --with-ncurses=PATH use ncurses files in PATH
1348 --with-libxml2=PATH use LibXML2 files in PATH
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1360 Use these variables to override the choices made by `configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1363 Report bugs to the package provider.
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" ||
1372 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1393 .) # We are building in place.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1417 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1427 generated by GNU Autoconf 2.69
1429 Copyright (C) 2012 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1438 ## ------------------------ ##
1439 ## Autoconf initialization. ##
1440 ## ------------------------ ##
1442 # ac_fn_c_try_compile LINENO
1443 # --------------------------
1444 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1445 ac_fn_c_try_compile ()
1447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1448 rm -f conftest.$ac_objext
1449 if { { ac_try="$ac_compile"
1451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1452 *) ac_try_echo=$ac_try;;
1454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1455 $as_echo "$ac_try_echo"; } >&5
1456 (eval "$ac_compile") 2>conftest.err
1458 if test -s conftest.err; then
1459 grep -v '^ *+' conftest.err >conftest.er1
1460 cat conftest.er1 >&5
1461 mv -f conftest.er1 conftest.err
1463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1464 test $ac_status = 0; } && {
1465 test -z "$ac_c_werror_flag" ||
1466 test ! -s conftest.err
1467 } && test -s conftest.$ac_objext; then :
1470 $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1476 as_fn_set_status $ac_retval
1478 } # ac_fn_c_try_compile
1480 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1481 # -------------------------------------------
1482 # Tests whether TYPE exists after having included INCLUDES, setting cache
1483 # variable VAR accordingly.
1484 ac_fn_c_check_type ()
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1488 $as_echo_n "checking for $2... " >&6; }
1489 if eval \${$3+:} false; then :
1490 $as_echo_n "(cached) " >&6
1493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1494 /* end confdefs.h. */
1505 if ac_fn_c_try_compile "$LINENO"; then :
1506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1507 /* end confdefs.h. */
1518 if ac_fn_c_try_compile "$LINENO"; then :
1523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1529 $as_echo "$ac_res" >&6; }
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 } # ac_fn_c_check_type
1534 # ac_fn_c_try_cpp LINENO
1535 # ----------------------
1536 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 if { { ac_try="$ac_cpp conftest.$ac_ext"
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } > conftest.i && {
1556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1571 # ac_fn_c_try_run LINENO
1572 # ----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1574 # that executables *can* be run.
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if { { ac_try="$ac_link"
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>&5
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1589 { { case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_try") 2>&5
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; }; }; then :
1601 $as_echo "$as_me: program exited with status $ac_status" >&5
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1605 ac_retval=$ac_status
1607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1613 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists and can be compiled using the include files in
1616 # INCLUDES, setting the cache variable VAR accordingly.
1617 ac_fn_c_check_header_compile ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 $as_echo_n "checking for $2... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1630 if ac_fn_c_try_compile "$LINENO"; then :
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 } # ac_fn_c_check_header_compile
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 test -x conftest$ac_exeext
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682 # interfere with the next link command; also delete a directory that is
1683 # left behind by Apple's compiler. We do this before executing the actions.
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_link
1690 # ac_fn_c_check_func LINENO FUNC VAR
1691 # ----------------------------------
1692 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1693 ac_fn_c_check_func ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1705 #define $2 innocuous_$2
1707 /* System header to define __stub macros and hopefully few prototypes,
1708 which can conflict with char $2 (); below.
1709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1710 <limits.h> exists even on freestanding compilers. */
1713 # include <limits.h>
1715 # include <assert.h>
1720 /* Override any GCC internal prototype to avoid an error.
1721 Use char because int might match the return type of a GCC
1722 builtin and then its argument prototype would still apply. */
1727 /* The GNU C library defines this for functions which it implements
1728 to always fail with ENOSYS. Some functions are actually named
1729 something starting with __ and the normal name is an alias. */
1730 #if defined __stub_$2 || defined __stub___$2
1742 if ac_fn_c_try_link "$LINENO"; then :
1747 rm -f core conftest.err conftest.$ac_objext \
1748 conftest$ac_exeext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 } # ac_fn_c_check_func
1757 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1758 # -------------------------------------------------------
1759 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1760 # the include files in INCLUDES and setting the cache variable VAR
1762 ac_fn_c_check_header_mongrel ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if eval \${$3+:} false; then :
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1775 # Is the header compilable?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1777 $as_echo_n "checking $2 usability... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 ac_header_compiler=yes
1786 ac_header_compiler=no
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1790 $as_echo "$ac_header_compiler" >&6; }
1792 # Is the header present?
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1794 $as_echo_n "checking $2 presence... " >&6; }
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1799 if ac_fn_c_try_cpp "$LINENO"; then :
1800 ac_header_preproc=yes
1802 ac_header_preproc=no
1804 rm -f conftest.err conftest.i conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1806 $as_echo "$ac_header_preproc" >&6; }
1808 # So? What about this header?
1809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1812 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1818 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1820 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1822 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1824 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1834 eval "$3=\$ac_header_compiler"
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 } # ac_fn_c_check_header_mongrel
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1847 It was created by $as_me, which was
1848 generated by GNU Autoconf 2.69. Invocation command line was
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1869 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1870 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1873 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1874 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1875 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir=.
1884 $as_echo "PATH: $as_dir"
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_must_keep_next=false
1914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916 | -silent | --silent | --silen | --sile | --sil)
1919 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1924 as_fn_append ac_configure_args1 " '$ac_arg'"
1925 if test $ac_must_keep_next = true; then
1926 ac_must_keep_next=false # Got value, back to normal.
1929 *=* | --config-cache | -C | -disable-* | --disable-* \
1930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932 | -with-* | --with-* | -without-* | --without-* | --x)
1933 case "$ac_configure_args0 " in
1934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937 -* ) ac_must_keep_next=true ;;
1940 as_fn_append ac_configure_args " '$ac_arg'"
1945 { ac_configure_args0=; unset ac_configure_args0;}
1946 { ac_configure_args1=; unset ac_configure_args1;}
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log. We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954 # Save into config.log some information that might help in debugging.
1958 $as_echo "## ---------------- ##
1959 ## Cache variables. ##
1960 ## ---------------- ##"
1962 # The following way of writing the cache mishandles newlines in values,
1964 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1965 eval ac_val=\$$ac_var
1969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1973 _ | IFS | as_nl) ;; #(
1974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1975 *) { eval $ac_var=; unset $ac_var;} ;;
1980 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1981 *${as_nl}ac_space=\ *)
1983 "s/'\''/'\''\\\\'\'''\''/g;
1984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1994 $as_echo "## ----------------- ##
1995 ## Output variables. ##
1996 ## ----------------- ##"
1998 for ac_var in $ac_subst_vars
2000 eval ac_val=\$$ac_var
2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 $as_echo "$ac_var='\''$ac_val'\''"
2008 if test -n "$ac_subst_files"; then
2009 $as_echo "## ------------------- ##
2010 ## File substitutions. ##
2011 ## ------------------- ##"
2013 for ac_var in $ac_subst_files
2015 eval ac_val=\$$ac_var
2017 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 $as_echo "$ac_var='\''$ac_val'\''"
2024 if test -s confdefs.h; then
2025 $as_echo "## ----------- ##
2032 test "$ac_signal" != 0 &&
2033 $as_echo "$as_me: caught signal $ac_signal"
2034 $as_echo "$as_me: exit $exit_status"
2036 rm -f core *.core core.conftest.* &&
2037 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040 for ac_signal in 1 2 13 15; do
2041 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2048 $as_echo "/* confdefs.h */" > confdefs.h
2050 # Predefined preprocessor variables.
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_NAME "$PACKAGE_NAME"
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_STRING "$PACKAGE_STRING"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_URL "$PACKAGE_URL"
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer an explicitly selected file to automatically selected ones.
2081 if test -n "$CONFIG_SITE"; then
2082 # We do not want a PATH search for config.site.
2083 case $CONFIG_SITE in #((
2084 -*) ac_site_file1=./$CONFIG_SITE;;
2085 */*) ac_site_file1=$CONFIG_SITE;;
2086 *) ac_site_file1=./$CONFIG_SITE;;
2088 elif test "x$prefix" != xNONE; then
2089 ac_site_file1=$prefix/share/config.site
2090 ac_site_file2=$prefix/etc/config.site
2092 ac_site_file1=$ac_default_prefix/share/config.site
2093 ac_site_file2=$ac_default_prefix/etc/config.site
2095 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2097 test "x$ac_site_file" = xNONE && continue
2098 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2100 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2101 sed 's/^/| /' "$ac_site_file" >&5
2103 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2105 as_fn_error $? "failed to load site script $ac_site_file
2106 See \`config.log' for more details" "$LINENO" 5; }
2110 if test -r "$cache_file"; then
2111 # Some versions of bash will fail to source /dev/null (special files
2112 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2113 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2115 $as_echo "$as_me: loading cache $cache_file" >&6;}
2117 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2118 *) . "./$cache_file";;
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2123 $as_echo "$as_me: creating cache $cache_file" >&6;}
2127 # Check that the precious variables saved in the cache have kept the same
2129 ac_cache_corrupted=false
2130 for ac_var in $ac_precious_vars; do
2131 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2132 eval ac_new_set=\$ac_env_${ac_var}_set
2133 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2134 eval ac_new_val=\$ac_env_${ac_var}_value
2135 case $ac_old_set,$ac_new_set in
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2138 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2139 ac_cache_corrupted=: ;;
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2142 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2143 ac_cache_corrupted=: ;;
2146 if test "x$ac_old_val" != "x$ac_new_val"; then
2147 # differences in whitespace do not lead to failure.
2148 ac_old_val_w=`echo x $ac_old_val`
2149 ac_new_val_w=`echo x $ac_new_val`
2150 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2152 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2153 ac_cache_corrupted=:
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2156 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2157 eval $ac_var=\$ac_old_val
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2160 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2162 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2165 # Pass precious variables to config.status.
2166 if test "$ac_new_set" = set; then
2168 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 *) ac_arg=$ac_var=$ac_new_val ;;
2171 case " $ac_configure_args " in
2172 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2173 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2177 if $ac_cache_corrupted; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2181 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2182 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2184 ## -------------------- ##
2185 ## Main body of script. ##
2186 ## -------------------- ##
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 # check existence of the package
2199 # specify output header file
2200 ac_config_headers="$ac_config_headers autoconfig.h"
2207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2208 if test -f "$ac_dir/install-sh"; then
2210 ac_install_sh="$ac_aux_dir/install-sh -c"
2212 elif test -f "$ac_dir/install.sh"; then
2214 ac_install_sh="$ac_aux_dir/install.sh -c"
2216 elif test -f "$ac_dir/shtool"; then
2218 ac_install_sh="$ac_aux_dir/shtool install -c"
2222 if test -z "$ac_aux_dir"; then
2223 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2235 # Make sure we can run config.sub.
2236 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2237 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2240 $as_echo_n "checking build system type... " >&6; }
2241 if ${ac_cv_build+:} false; then :
2242 $as_echo_n "(cached) " >&6
2244 ac_build_alias=$build_alias
2245 test "x$ac_build_alias" = x &&
2246 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2247 test "x$ac_build_alias" = x &&
2248 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2249 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2254 $as_echo "$ac_cv_build" >&6; }
2255 case $ac_cv_build in
2257 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2260 ac_save_IFS=$IFS; IFS='-'
2266 # Remember, the first character of IFS is used to create $*,
2267 # except with old shells:
2270 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2274 $as_echo_n "checking host system type... " >&6; }
2275 if ${ac_cv_host+:} false; then :
2276 $as_echo_n "(cached) " >&6
2278 if test "x$host_alias" = x; then
2279 ac_cv_host=$ac_cv_build
2281 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2282 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2287 $as_echo "$ac_cv_host" >&6; }
2290 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2293 ac_save_IFS=$IFS; IFS='-'
2299 # Remember, the first character of IFS is used to create $*,
2300 # except with old shells:
2303 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2311 case "${host_os}" in
2344 # Checks for programs.
2346 ac_cpp='$CPP $CPPFLAGS'
2347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2350 if test -n "$ac_tool_prefix"; then
2351 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2352 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2354 $as_echo_n "checking for $ac_word... " >&6; }
2355 if ${ac_cv_prog_CC+:} false; then :
2356 $as_echo_n "(cached) " >&6
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2368 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 if test -n "$CC"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2381 $as_echo "$CC" >&6; }
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2384 $as_echo "no" >&6; }
2389 if test -z "$ac_cv_prog_CC"; then
2391 # Extract the first word of "gcc", so it can be a program name with args.
2392 set dummy gcc; ac_word=$2
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2394 $as_echo_n "checking for $ac_word... " >&6; }
2395 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2396 $as_echo_n "(cached) " >&6
2398 if test -n "$ac_ct_CC"; then
2399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2408 ac_cv_prog_ac_ct_CC="gcc"
2409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2419 if test -n "$ac_ct_CC"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2421 $as_echo "$ac_ct_CC" >&6; }
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2424 $as_echo "no" >&6; }
2427 if test "x$ac_ct_CC" = x; then
2430 case $cross_compiling:$ac_tool_warned in
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2434 ac_tool_warned=yes ;;
2442 if test -z "$CC"; then
2443 if test -n "$ac_tool_prefix"; then
2444 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}cc; ac_word=$2
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447 $as_echo_n "checking for $ac_word... " >&6; }
2448 if ${ac_cv_prog_CC+:} false; then :
2449 $as_echo_n "(cached) " >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461 ac_cv_prog_CC="${ac_tool_prefix}cc"
2462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 if test -n "$CC"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2474 $as_echo "$CC" >&6; }
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477 $as_echo "no" >&6; }
2483 if test -z "$CC"; then
2484 # Extract the first word of "cc", so it can be a program name with args.
2485 set dummy cc; ac_word=$2
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487 $as_echo_n "checking for $ac_word... " >&6; }
2488 if ${ac_cv_prog_CC+:} false; then :
2489 $as_echo_n "(cached) " >&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2503 ac_prog_rejected=yes
2507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 if test $ac_prog_rejected = yes; then
2515 # We found a bogon in the path, so make sure we never use it.
2516 set dummy $ac_cv_prog_CC
2518 if test $# != 0; then
2519 # We chose a different compiler from the bogus one.
2520 # However, it has the same basename, so the bogon will be chosen
2521 # first if we set CC to just the basename; use the full file name.
2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2529 if test -n "$CC"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2531 $as_echo "$CC" >&6; }
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2539 if test -z "$CC"; then
2540 if test -n "$ac_tool_prefix"; then
2541 for ac_prog in cl.exe
2543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546 $as_echo_n "checking for $ac_word... " >&6; }
2547 if ${ac_cv_prog_CC+:} false; then :
2548 $as_echo_n "(cached) " >&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 if test -n "$CC"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2573 $as_echo "$CC" >&6; }
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576 $as_echo "no" >&6; }
2580 test -n "$CC" && break
2583 if test -z "$CC"; then
2585 for ac_prog in cl.exe
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604 ac_cv_prog_ac_ct_CC="$ac_prog"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2617 $as_echo "$ac_ct_CC" >&6; }
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2624 test -n "$ac_ct_CC" && break
2627 if test "x$ac_ct_CC" = x; then
2630 case $cross_compiling:$ac_tool_warned in
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2634 ac_tool_warned=yes ;;
2643 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645 as_fn_error $? "no acceptable C compiler found in \$PATH
2646 See \`config.log' for more details" "$LINENO" 5; }
2648 # Provide some information about the compiler.
2649 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2652 for ac_option in --version -v -V -qversion; do
2653 { { ac_try="$ac_compiler $ac_option >&5"
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2662 if test -s conftest.err; then
2664 ... rest of stderr output deleted ...
2665 10q' conftest.err >conftest.er1
2666 cat conftest.er1 >&5
2668 rm -f conftest.er1 conftest.err
2669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2670 test $ac_status = 0; }
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2684 ac_clean_files_save=$ac_clean_files
2685 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2686 # Try to create an executable without -o first, disregard a.out.
2687 # It will help us diagnose broken compilers, and finding out an intuition
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2690 $as_echo_n "checking whether the C compiler works... " >&6; }
2691 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2693 # The possible output files:
2694 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2697 for ac_file in $ac_files
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2701 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2706 if { { ac_try="$ac_link_default"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712 $as_echo "$ac_try_echo"; } >&5
2713 (eval "$ac_link_default") 2>&5
2715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2716 test $ac_status = 0; }; then :
2717 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2718 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2719 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2720 # so that the user can short-circuit this test for compilers unknown to
2722 for ac_file in $ac_files ''
2724 test -f "$ac_file" || continue
2726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2729 # We found the default executable, but exeext='' is most
2733 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2735 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2737 # We set ac_cv_exeext here because the later test for it is not
2738 # safe: cross compilers may not add the suffix if given an `-o'
2739 # argument, so we may need to know it at that point already.
2740 # Even if this section looks crufty: it has the advantage of
2747 test "$ac_cv_exeext" = no && ac_cv_exeext=
2752 if test -z "$ac_file"; then :
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 $as_echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760 as_fn_error 77 "C compiler cannot create executables
2761 See \`config.log' for more details" "$LINENO" 5; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 $as_echo "yes" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2767 $as_echo_n "checking for C compiler default output file name... " >&6; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2769 $as_echo "$ac_file" >&6; }
2770 ac_exeext=$ac_cv_exeext
2772 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2773 ac_clean_files=$ac_clean_files_save
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2775 $as_echo_n "checking for suffix of executables... " >&6; }
2776 if { { ac_try="$ac_link"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782 $as_echo "$ac_try_echo"; } >&5
2783 (eval "$ac_link") 2>&5
2785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786 test $ac_status = 0; }; then :
2787 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2788 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2789 # work properly (i.e., refer to `conftest.exe'), while it won't with
2791 for ac_file in conftest.exe conftest conftest.*; do
2792 test -f "$ac_file" || continue
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2804 See \`config.log' for more details" "$LINENO" 5; }
2806 rm -f conftest conftest$ac_cv_exeext
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2808 $as_echo "$ac_cv_exeext" >&6; }
2810 rm -f conftest.$ac_ext
2811 EXEEXT=$ac_cv_exeext
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814 /* end confdefs.h. */
2819 FILE *f = fopen ("conftest.out", "w");
2820 return ferror (f) || fclose (f) != 0;
2826 ac_clean_files="$ac_clean_files conftest.out"
2827 # Check that the compiler produces executables we can run. If not, either
2828 # the compiler is broken, or we cross compile.
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2830 $as_echo_n "checking whether we are cross compiling... " >&6; }
2831 if test "$cross_compiling" != yes; then
2832 { { ac_try="$ac_link"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_link") 2>&5
2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842 test $ac_status = 0; }
2843 if { ac_try='./conftest$ac_cv_exeext'
2844 { { case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849 $as_echo "$ac_try_echo"; } >&5
2850 (eval "$ac_try") 2>&5
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }; }; then
2856 if test "$cross_compiling" = maybe; then
2859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $? "cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details" "$LINENO" 5; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2868 $as_echo "$cross_compiling" >&6; }
2870 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2871 ac_clean_files=$ac_clean_files_save
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2873 $as_echo_n "checking for suffix of object files... " >&6; }
2874 if ${ac_cv_objext+:} false; then :
2875 $as_echo_n "(cached) " >&6
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h. */
2888 rm -f conftest.o conftest.obj
2889 if { { ac_try="$ac_compile"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895 $as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_compile") 2>&5
2898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2899 test $ac_status = 0; }; then :
2900 for ac_file in conftest.o conftest.obj conftest.*; do
2901 test -f "$ac_file" || continue;
2903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2904 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2909 $as_echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 as_fn_error $? "cannot compute suffix of object files: cannot compile
2915 See \`config.log' for more details" "$LINENO" 5; }
2917 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2920 $as_echo "$ac_cv_objext" >&6; }
2921 OBJEXT=$ac_cv_objext
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2924 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2925 if ${ac_cv_c_compiler_gnu+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2942 if ac_fn_c_try_compile "$LINENO"; then :
2947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2952 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2953 if test $ac_compiler_gnu = yes; then
2958 ac_test_CFLAGS=${CFLAGS+set}
2959 ac_save_CFLAGS=$CFLAGS
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2961 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2962 if ${ac_cv_prog_cc_g+:} false; then :
2963 $as_echo_n "(cached) " >&6
2965 ac_save_c_werror_flag=$ac_c_werror_flag
2966 ac_c_werror_flag=yes
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2980 if ac_fn_c_try_compile "$LINENO"; then :
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2995 if ac_fn_c_try_compile "$LINENO"; then :
2998 ac_c_werror_flag=$ac_save_c_werror_flag
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3011 if ac_fn_c_try_compile "$LINENO"; then :
3014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 ac_c_werror_flag=$ac_save_c_werror_flag
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3022 $as_echo "$ac_cv_prog_cc_g" >&6; }
3023 if test "$ac_test_CFLAGS" = set; then
3024 CFLAGS=$ac_save_CFLAGS
3025 elif test $ac_cv_prog_cc_g = yes; then
3026 if test "$GCC" = yes; then
3032 if test "$GCC" = yes; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3039 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3040 if ${ac_cv_prog_cc_c89+:} false; then :
3041 $as_echo_n "(cached) " >&6
3043 ac_cv_prog_cc_c89=no
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3051 struct buf { int x; };
3052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3053 static char *e (p, i)
3059 static char *f (char * (*g) (char **, int), char **p, ...)
3064 s = g (p, va_arg (v,int));
3069 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3070 function prototypes and stuff, but not '\xHH' hex character constants.
3071 These don't provoke an error unfortunately, instead are silently treated
3072 as 'x'. The following induces an error, until -std is added to get
3073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3074 array size at least. It's necessary to write '\x00'==0 to get something
3075 that's true only with -std. */
3076 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3078 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3079 inside strings and character constants. */
3081 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3083 int test (int i, double x);
3084 struct s1 {int (*f) (int a);};
3085 struct s2 {int (*f) (double a);};
3086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3097 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3098 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3100 CC="$ac_save_CC $ac_arg"
3101 if ac_fn_c_try_compile "$LINENO"; then :
3102 ac_cv_prog_cc_c89=$ac_arg
3104 rm -f core conftest.err conftest.$ac_objext
3105 test "x$ac_cv_prog_cc_c89" != "xno" && break
3107 rm -f conftest.$ac_ext
3112 case "x$ac_cv_prog_cc_c89" in
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3115 $as_echo "none needed" >&6; } ;;
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3118 $as_echo "unsupported" >&6; } ;;
3120 CC="$CC $ac_cv_prog_cc_c89"
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3122 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3124 if test "x$ac_cv_prog_cc_c89" != xno; then :
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
3135 $as_echo_n "checking for GNU make... " >&6; }
3136 if ${ac_cv_GNU_MAKE+:} false; then :
3137 $as_echo_n "(cached) " >&6
3139 ac_cv_GNU_MAKE='Not Found' ;
3140 ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
3141 ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
3142 for a in make gmake gnumake ; do
3143 if test -z "$a" ; then continue ; fi ;
3144 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3146 ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
3147 ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
3154 $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
3155 if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
3156 as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
3159 GNU_MAKE=$ac_cv_GNU_MAKE
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 # Check whether --enable-debug was given.
3171 if test "${enable_debug+set}" = set; then :
3172 enableval=$enable_debug; case "${enableval}" in
3173 y|ye|yes) MENUSELECT_DEBUG=yes ;;
3174 n|no) MENUSELECT_DEBUG=no ;;
3175 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
3181 # Support weak symbols on a platform specific basis. The Mac OS X
3182 # (Darwin) support must be isolated from the other platforms because
3183 # it has caused other platforms to fail.
3187 # Allow weak symbol support on Darwin platforms only because there
3188 # is active community support for it.
3189 # However, Darwin seems to break weak symbols for each new version.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak_import' support" >&5
3194 $as_echo_n "checking for compiler 'attribute weak_import' support... " >&6; }
3195 saved_CFLAGS="$CFLAGS"
3196 CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203 void __attribute__((weak_import)) *test(void *muffin, ...) {return (void *) 0;}
3212 if ac_fn_c_try_compile "$LINENO"; then :
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3217 cat >>confdefs.h <<_ACEOF
3218 #define HAVE_ATTRIBUTE_weak_import 1
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3230 void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
3239 if ac_fn_c_try_compile "$LINENO"; then :
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3244 cat >>confdefs.h <<_ACEOF
3245 #define HAVE_ATTRIBUTE_weak_import 1
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 CFLAGS="$saved_CFLAGS"
3261 # Several other platforms including Linux have GCC versions that
3262 # define the weak attribute. However, this attribute is only
3263 # setup for use in the code by Darwin.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak' support" >&5
3266 $as_echo_n "checking for compiler 'attribute weak' support... " >&6; }
3267 saved_CFLAGS="$CFLAGS"
3268 CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275 void __attribute__((weak)) *test(void *muffin, ...) {return (void *) 0;}
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3289 cat >>confdefs.h <<_ACEOF
3290 #define HAVE_ATTRIBUTE_weak 1
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302 void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3316 cat >>confdefs.h <<_ACEOF
3317 #define HAVE_ATTRIBUTE_weak 1
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 CFLAGS="$saved_CFLAGS"
3334 # Primarily support weak symbols on Linux platforms.
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
3338 $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
3339 saved_CFLAGS="$CFLAGS"
3340 CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
3343 if test "xweakref("foo")" = "x"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3361 cat >>confdefs.h <<_ACEOF
3362 #define HAVE_ATTRIBUTE_weakref 1
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374 static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
3383 if ac_fn_c_try_compile "$LINENO"; then :
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385 $as_echo "yes" >&6; }
3388 cat >>confdefs.h <<_ACEOF
3389 #define HAVE_ATTRIBUTE_weakref 1
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 CFLAGS="$saved_CFLAGS"
3406 # Allow weak symbols on other platforms. However, any problems
3407 # with this feature on other platforms must be fixed by the
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
3412 $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
3413 saved_CFLAGS="$CFLAGS"
3414 CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
3417 if test "xweakref("foo")" = "x"
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421 static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 $as_echo "yes" >&6; }
3435 cat >>confdefs.h <<_ACEOF
3436 #define HAVE_ATTRIBUTE_weakref 1
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448 static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3462 cat >>confdefs.h <<_ACEOF
3463 #define HAVE_ATTRIBUTE_weakref 1
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 CFLAGS="$saved_CFLAGS"
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3487 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3488 # On Suns, sometimes $CPP names a directory.
3489 if test -n "$CPP" && test -d "$CPP"; then
3492 if test -z "$CPP"; then
3493 if ${ac_cv_prog_CPP+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 # Double quotes because CPP needs to be expanded
3497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3500 for ac_c_preproc_warn_flag in '' yes
3502 # Use a header file that comes with gcc, so configuring glibc
3503 # with a fresh cross-compiler works.
3504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505 # <limits.h> exists even on freestanding compilers.
3506 # On the NeXT, cc -E runs the code through the compiler's parser,
3507 # not just through cpp. "Syntax error" is here to catch this case.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3511 # include <limits.h>
3513 # include <assert.h>
3517 if ac_fn_c_try_cpp "$LINENO"; then :
3520 # Broken: fails on valid input.
3523 rm -f conftest.err conftest.i conftest.$ac_ext
3525 # OK, works on sane cases. Now check whether nonexistent headers
3526 # can be detected and how.
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #include <ac_nonexistent.h>
3531 if ac_fn_c_try_cpp "$LINENO"; then :
3532 # Broken: success on invalid input.
3535 # Passes both tests.
3539 rm -f conftest.err conftest.i conftest.$ac_ext
3542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543 rm -f conftest.i conftest.err conftest.$ac_ext
3544 if $ac_preproc_ok; then :
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3557 $as_echo "$CPP" >&6; }
3559 for ac_c_preproc_warn_flag in '' yes
3561 # Use a header file that comes with gcc, so configuring glibc
3562 # with a fresh cross-compiler works.
3563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564 # <limits.h> exists even on freestanding compilers.
3565 # On the NeXT, cc -E runs the code through the compiler's parser,
3566 # not just through cpp. "Syntax error" is here to catch this case.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3570 # include <limits.h>
3572 # include <assert.h>
3576 if ac_fn_c_try_cpp "$LINENO"; then :
3579 # Broken: fails on valid input.
3582 rm -f conftest.err conftest.i conftest.$ac_ext
3584 # OK, works on sane cases. Now check whether nonexistent headers
3585 # can be detected and how.
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588 #include <ac_nonexistent.h>
3590 if ac_fn_c_try_cpp "$LINENO"; then :
3591 # Broken: success on invalid input.
3594 # Passes both tests.
3598 rm -f conftest.err conftest.i conftest.$ac_ext
3601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602 rm -f conftest.i conftest.err conftest.$ac_ext
3603 if $ac_preproc_ok; then :
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3609 See \`config.log' for more details" "$LINENO" 5; }
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3620 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3621 if ${ac_cv_path_GREP+:} false; then :
3622 $as_echo_n "(cached) " >&6
3624 if test -z "$GREP"; then
3625 ac_path_GREP_found=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631 test -z "$as_dir" && as_dir=.
3632 for ac_prog in grep ggrep; do
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3635 as_fn_executable_p "$ac_path_GREP" || continue
3636 # Check for GNU ac_path_GREP and select it if it is found.
3637 # Check for GNU $ac_path_GREP
3638 case `"$ac_path_GREP" --version 2>&1` in
3640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643 $as_echo_n 0123456789 >"conftest.in"
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
3649 $as_echo 'GREP' >> "conftest.nl"
3650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652 as_fn_arith $ac_count + 1 && ac_count=$as_val
3653 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_GREP="$ac_path_GREP"
3656 ac_path_GREP_max=$ac_count
3658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664 $ac_path_GREP_found && break 3
3669 if test -z "$ac_cv_path_GREP"; then
3670 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3673 ac_cv_path_GREP=$GREP
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3678 $as_echo "$ac_cv_path_GREP" >&6; }
3679 GREP="$ac_cv_path_GREP"
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3683 $as_echo_n "checking for egrep... " >&6; }
3684 if ${ac_cv_path_EGREP+:} false; then :
3685 $as_echo_n "(cached) " >&6
3687 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3688 then ac_cv_path_EGREP="$GREP -E"
3690 if test -z "$EGREP"; then
3691 ac_path_EGREP_found=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3697 test -z "$as_dir" && as_dir=.
3698 for ac_prog in egrep; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3701 as_fn_executable_p "$ac_path_EGREP" || continue
3702 # Check for GNU ac_path_EGREP and select it if it is found.
3703 # Check for GNU $ac_path_EGREP
3704 case `"$ac_path_EGREP" --version 2>&1` in
3706 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3709 $as_echo_n 0123456789 >"conftest.in"
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 $as_echo 'EGREP' >> "conftest.nl"
3716 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718 as_fn_arith $ac_count + 1 && ac_count=$as_val
3719 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_EGREP="$ac_path_EGREP"
3722 ac_path_EGREP_max=$ac_count
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3730 $ac_path_EGREP_found && break 3
3735 if test -z "$ac_cv_path_EGREP"; then
3736 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3739 ac_cv_path_EGREP=$EGREP
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3745 $as_echo "$ac_cv_path_EGREP" >&6; }
3746 EGREP="$ac_cv_path_EGREP"
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3750 $as_echo_n "checking for ANSI C header files... " >&6; }
3751 if ${ac_cv_header_stdc+:} false; then :
3752 $as_echo_n "(cached) " >&6
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_cv_header_stdc=yes
3772 ac_cv_header_stdc=no
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 if test $ac_cv_header_stdc = yes; then
3777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3784 $EGREP "memchr" >/dev/null 2>&1; then :
3787 ac_cv_header_stdc=no
3793 if test $ac_cv_header_stdc = yes; then
3794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801 $EGREP "free" >/dev/null 2>&1; then :
3804 ac_cv_header_stdc=no
3810 if test $ac_cv_header_stdc = yes; then
3811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3812 if test "$cross_compiling" = yes; then :
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3819 #if ((' ' & 0x0FF) == 0x020)
3820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3823 # define ISLOWER(c) \
3824 (('a' <= (c) && (c) <= 'i') \
3825 || ('j' <= (c) && (c) <= 'r') \
3826 || ('s' <= (c) && (c) <= 'z'))
3827 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3835 for (i = 0; i < 256; i++)
3836 if (XOR (islower (i), ISLOWER (i))
3837 || toupper (i) != TOUPPER (i))
3842 if ac_fn_c_try_run "$LINENO"; then :
3845 ac_cv_header_stdc=no
3847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3848 conftest.$ac_objext conftest.beam conftest.$ac_ext
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3854 $as_echo "$ac_cv_header_stdc" >&6; }
3855 if test $ac_cv_header_stdc = yes; then
3857 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3861 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3862 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3863 inttypes.h stdint.h unistd.h
3865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3866 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3868 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3869 cat >>confdefs.h <<_ACEOF
3870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3878 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3879 if test "x$ac_cv_type_size_t" = xyes; then :
3883 cat >>confdefs.h <<_ACEOF
3884 #define size_t unsigned int
3889 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3890 # for constant arguments. Useless!
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
3892 $as_echo_n "checking for working alloca.h... " >&6; }
3893 if ${ac_cv_working_alloca_h+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3902 char *p = (char *) alloca (2 * sizeof (int));
3908 if ac_fn_c_try_link "$LINENO"; then :
3909 ac_cv_working_alloca_h=yes
3911 ac_cv_working_alloca_h=no
3913 rm -f core conftest.err conftest.$ac_objext \
3914 conftest$ac_exeext conftest.$ac_ext
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
3917 $as_echo "$ac_cv_working_alloca_h" >&6; }
3918 if test $ac_cv_working_alloca_h = yes; then
3920 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
3925 $as_echo_n "checking for alloca... " >&6; }
3926 if ${ac_cv_func_alloca_works+:} false; then :
3927 $as_echo_n "(cached) " >&6
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3932 # define alloca __builtin_alloca
3935 # include <malloc.h>
3936 # define alloca _alloca
3938 # ifdef HAVE_ALLOCA_H
3939 # include <alloca.h>
3944 # ifndef alloca /* predefined by HP cc +Olibcalls */
3945 void *alloca (size_t);
3955 char *p = (char *) alloca (1);
3961 if ac_fn_c_try_link "$LINENO"; then :
3962 ac_cv_func_alloca_works=yes
3964 ac_cv_func_alloca_works=no
3966 rm -f core conftest.err conftest.$ac_objext \
3967 conftest$ac_exeext conftest.$ac_ext
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
3970 $as_echo "$ac_cv_func_alloca_works" >&6; }
3972 if test $ac_cv_func_alloca_works = yes; then
3974 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
3977 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3978 # that cause trouble. Some versions do not even contain alloca or
3979 # contain a buggy version. If you still want to use their alloca,
3980 # use ar to extract alloca.o from them instead of compiling alloca.c.
3982 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3984 $as_echo "#define C_ALLOCA 1" >>confdefs.h
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
3988 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
3989 if ${ac_cv_os_cray+:} false; then :
3990 $as_echo_n "(cached) " >&6
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #if defined CRAY && ! defined CRAY2
4001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4002 $EGREP "webecray" >/dev/null 2>&1; then :
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4011 $as_echo "$ac_cv_os_cray" >&6; }
4012 if test $ac_cv_os_cray = yes; then
4013 for ac_func in _getb67 GETB67 getb67; do
4014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4016 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4018 cat >>confdefs.h <<_ACEOF
4019 #define CRAY_STACKSEG_END $ac_func
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4029 $as_echo_n "checking stack direction for C alloca... " >&6; }
4030 if ${ac_cv_c_stack_direction+:} false; then :
4031 $as_echo_n "(cached) " >&6
4033 if test "$cross_compiling" = yes; then :
4034 ac_cv_c_stack_direction=0
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 $ac_includes_default
4040 find_stack_direction (int *addr, int depth)
4045 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4046 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4051 main (int argc, char **argv)
4053 return find_stack_direction (0, argc + !argv + 20) < 0;
4056 if ac_fn_c_try_run "$LINENO"; then :
4057 ac_cv_c_stack_direction=1
4059 ac_cv_c_stack_direction=-1
4061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4062 conftest.$ac_objext conftest.beam conftest.$ac_ext
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4067 $as_echo "$ac_cv_c_stack_direction" >&6; }
4068 cat >>confdefs.h <<_ACEOF
4069 #define STACK_DIRECTION $ac_cv_c_stack_direction
4075 for ac_func in asprintf getloadavg setenv strcasestr strndup strnlen strsep unsetenv vasprintf
4077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4079 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4080 cat >>confdefs.h <<_ACEOF
4081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4088 # The frontend can use curses, ncurses, newt or GTK2 so check for all of them
4095 # Check whether --with-newt was given.
4096 if test "${with_newt+set}" = set; then :
4101 # -1 is a magic value used by menuselect to know that the package
4102 # was disabled, other than 'not found'
4106 ac_mandatory_list="${ac_mandatory_list} NEWT"
4109 NEWT_DIR="${withval}"
4110 ac_mandatory_list="${ac_mandatory_list} NEWT"
4123 CURSES_DESCRIP="curses"
4124 CURSES_OPTION="curses"
4127 # Check whether --with-curses was given.
4128 if test "${with_curses+set}" = set; then :
4129 withval=$with_curses;
4133 # -1 is a magic value used by menuselect to know that the package
4134 # was disabled, other than 'not found'
4138 ac_mandatory_list="${ac_mandatory_list} CURSES"
4141 CURSES_DIR="${withval}"
4142 ac_mandatory_list="${ac_mandatory_list} CURSES"
4155 NCURSES_DESCRIP="ncurses"
4156 NCURSES_OPTION="ncurses"
4159 # Check whether --with-ncurses was given.
4160 if test "${with_ncurses+set}" = set; then :
4161 withval=$with_ncurses;
4165 # -1 is a magic value used by menuselect to know that the package
4166 # was disabled, other than 'not found'
4170 ac_mandatory_list="${ac_mandatory_list} NCURSES"
4173 NCURSES_DIR="${withval}"
4174 ac_mandatory_list="${ac_mandatory_list} NCURSES"
4187 LIBXML2_DESCRIP="LibXML2"
4188 LIBXML2_OPTION="libxml2"
4191 # Check whether --with-libxml2 was given.
4192 if test "${with_libxml2+set}" = set; then :
4193 withval=$with_libxml2;
4197 # -1 is a magic value used by menuselect to know that the package
4198 # was disabled, other than 'not found'
4202 ac_mandatory_list="${ac_mandatory_list} LIBXML2"
4205 LIBXML2_DIR="${withval}"
4206 ac_mandatory_list="${ac_mandatory_list} LIBXML2"
4220 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
4222 # if --with-NEWT=DIR has been specified, use it.
4223 if test "x${NEWT_DIR}" != "x"; then
4224 if test -d ${NEWT_DIR}/lib; then
4225 pbxlibdir="-L${NEWT_DIR}/lib"
4227 pbxlibdir="-L${NEWT_DIR}"
4230 pbxfuncname="newtBell"
4231 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
4234 ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
4236 as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
4238 $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
4239 if eval \${$as_ac_Lib+:} false; then :
4240 $as_echo_n "(cached) " >&6
4242 ac_check_lib_save_LIBS=$LIBS
4243 LIBS="-lnewt ${pbxlibdir} $LIBS"
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4247 /* Override any GCC internal prototype to avoid an error.
4248 Use char because int might match the return type of a GCC
4249 builtin and then its argument prototype would still apply. */
4253 char ${pbxfuncname} ();
4257 return ${pbxfuncname} ();
4262 if ac_fn_c_try_link "$LINENO"; then :
4263 eval "$as_ac_Lib=yes"
4265 eval "$as_ac_Lib=no"
4267 rm -f core conftest.err conftest.$ac_objext \
4268 conftest$ac_exeext conftest.$ac_ext
4269 LIBS=$ac_check_lib_save_LIBS
4271 eval ac_res=\$$as_ac_Lib
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4273 $as_echo "$ac_res" >&6; }
4274 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4280 CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
4283 # now check for the header.
4284 if test "${AST_NEWT_FOUND}" = "yes"; then
4285 NEWT_LIB="${pbxlibdir} -lnewt "
4286 # if --with-NEWT=DIR has been specified, use it.
4287 if test "x${NEWT_DIR}" != "x"; then
4288 NEWT_INCLUDE="-I${NEWT_DIR}/include"
4290 NEWT_INCLUDE="${NEWT_INCLUDE} "
4291 if test "xnewt.h" = "x" ; then # no header, assume found
4292 NEWT_HEADER_FOUND="1"
4293 else # check for the header
4294 ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
4295 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
4296 ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
4297 if test "x$ac_cv_header_newt_h" = xyes; then :
4304 CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
4306 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
4310 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
4314 cat >>confdefs.h <<_ACEOF
4324 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
4326 # if --with-CURSES=DIR has been specified, use it.
4327 if test "x${CURSES_DIR}" != "x"; then
4328 if test -d ${CURSES_DIR}/lib; then
4329 pbxlibdir="-L${CURSES_DIR}/lib"
4331 pbxlibdir="-L${CURSES_DIR}"
4334 pbxfuncname="initscr"
4335 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
4336 AST_CURSES_FOUND=yes
4338 ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
4340 as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcurses" >&5
4342 $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
4343 if eval \${$as_ac_Lib+:} false; then :
4344 $as_echo_n "(cached) " >&6
4346 ac_check_lib_save_LIBS=$LIBS
4347 LIBS="-lcurses ${pbxlibdir} $LIBS"
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4351 /* Override any GCC internal prototype to avoid an error.
4352 Use char because int might match the return type of a GCC
4353 builtin and then its argument prototype would still apply. */
4357 char ${pbxfuncname} ();
4361 return ${pbxfuncname} ();
4366 if ac_fn_c_try_link "$LINENO"; then :
4367 eval "$as_ac_Lib=yes"
4369 eval "$as_ac_Lib=no"
4371 rm -f core conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
4373 LIBS=$ac_check_lib_save_LIBS
4375 eval ac_res=\$$as_ac_Lib
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4377 $as_echo "$ac_res" >&6; }
4378 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4379 AST_CURSES_FOUND=yes
4384 CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
4387 # now check for the header.
4388 if test "${AST_CURSES_FOUND}" = "yes"; then
4389 CURSES_LIB="${pbxlibdir} -lcurses "
4390 # if --with-CURSES=DIR has been specified, use it.
4391 if test "x${CURSES_DIR}" != "x"; then
4392 CURSES_INCLUDE="-I${CURSES_DIR}/include"
4394 CURSES_INCLUDE="${CURSES_INCLUDE} "
4395 if test "xcurses.h" = "x" ; then # no header, assume found
4396 CURSES_HEADER_FOUND="1"
4397 else # check for the header
4398 ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
4399 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
4400 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
4401 if test "x$ac_cv_header_curses_h" = xyes; then :
4402 CURSES_HEADER_FOUND=1
4404 CURSES_HEADER_FOUND=0
4408 CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
4410 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
4414 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
4418 cat >>confdefs.h <<_ACEOF
4419 #define HAVE_CURSES 1
4428 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
4430 # if --with-NCURSES=DIR has been specified, use it.
4431 if test "x${NCURSES_DIR}" != "x"; then
4432 if test -d ${NCURSES_DIR}/lib; then
4433 pbxlibdir="-L${NCURSES_DIR}/lib"
4435 pbxlibdir="-L${NCURSES_DIR}"
4438 pbxfuncname="initscr"
4439 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
4440 AST_NCURSES_FOUND=yes
4442 ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
4444 as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lncurses" >&5
4446 $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
4447 if eval \${$as_ac_Lib+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 ac_check_lib_save_LIBS=$LIBS
4451 LIBS="-lncurses ${pbxlibdir} $LIBS"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext