2 # From configure.ac Revision: 23897 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
277 ac_unique_file="asterisk"
278 ac_unique_file="asterisk.c"
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os PBX_PLATFORM PBX_CPU PBX_VENDOR PBX_OS UNAME ac_pt_UNAME PBX_OSREV OSISWIN32 PBX_OSTYPE CC ac_ct_CC CXX ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR NM ac_ct_NM WINDRES ac_ct_WINDRES DLLWRAP ac_ct_DLLWRAP CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT CXXFLAGS CPP CXXCPP AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S GNU_MAKE GREP FIND COMPRESS BASENAME DIRNAME LN DOT AST_DEVMODE EGREP asound_LIB asound_INCLUDE PBX_LIBasound curses_LIB curses_INCLUDE PBX_LIBcurses nbs_LIB nbs_INCLUDE PBX_LIBnbs ncurses_LIB ncurses_INCLUDE PBX_LIBncurses newt_LIB newt_INCLUDE PBX_LIBnewt odbc_LIB odbc_INCLUDE PBX_LIBodbc ogg_LIB ogg_INCLUDE PBX_LIBogg osptk_LIB osptk_INCLUDE PBX_LIBosptk popt_LIB popt_INCLUDE PBX_LIBpopt pri_LIB pri_INCLUDE PBX_LIBpri speex_LIB speex_INCLUDE PBX_LIBspeex sqlite_LIB sqlite_INCLUDE PBX_LIBsqlite ssl_LIB ssl_INCLUDE PBX_LIBssl tds_LIB tds_INCLUDE PBX_LIBtds vorbis_LIB vorbis_INCLUDE PBX_LIBvorbis z_LIB z_INCLUDE PBX_LIBz ossaudio_LIB ossaudio_INCLUDE PBX_LIBossaudio tonezone_LIB tonezone_INCLUDE PBX_LIBtonezone gsm_LIB gsm_INCLUDE PBX_LIBgsm PG_CONFIG ac_pt_PG_CONFIG pq_INCLUDE pq_LIB PBX_LIBpq PBX_H323 PBX_IXJUSER VPB_INCLUDE VPB_LIB PBX_LIBvpb QT_INCLUDE QT_LIB QTMOC ac_pt_QTMOC PBX_QT KDE_INCLUDE KDE_LIBS PBX_KDE KDEINIT ac_pt_KDEINIT KDEDIR GTKCONFIG ac_ct_GTKCONFIG PBX_GTK GTK_INCLUDE GTK_LIBS PWLIB_INCLUDE PWLIB_LIB PBX_LIBPWLIB CURL ac_pt_CURL PBX_CURL CURLLIBS ALLOCA LIBOBJS POW_LIB LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CXX_set=${CXX+set}
775 ac_env_CXX_value=$CXX
776 ac_cv_env_CXX_set=${CXX+set}
777 ac_cv_env_CXX_value=$CXX
778 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_env_CXXFLAGS_value=$CXXFLAGS
780 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
782 ac_env_CPP_set=${CPP+set}
783 ac_env_CPP_value=$CPP
784 ac_cv_env_CPP_set=${CPP+set}
785 ac_cv_env_CPP_value=$CPP
786 ac_env_CXXCPP_set=${CXXCPP+set}
787 ac_env_CXXCPP_value=$CXXCPP
788 ac_cv_env_CXXCPP_set=${CXXCPP+set}
789 ac_cv_env_CXXCPP_value=$CXXCPP
792 # Report the --help message.
794 if test "$ac_init_help" = "long"; then
795 # Omit some internal or obsolete options to make the list less imposing.
796 # This message is too long to be a string in the A/UX 3.1 sh.
798 \`configure' configures this package to adapt to many kinds of systems.
800 Usage: $0 [OPTION]... [VAR=VALUE]...
802 To assign environment variables (e.g., CC, CFLAGS...), specify them as
803 VAR=VALUE. See below for descriptions of some of the useful variables.
805 Defaults for the options are specified in brackets.
808 -h, --help display this help and exit
809 --help=short display options specific to this package
810 --help=recursive display the short help of all the included packages
811 -V, --version display version information and exit
812 -q, --quiet, --silent do not print \`checking...' messages
813 --cache-file=FILE cache test results in FILE [disabled]
814 -C, --config-cache alias for \`--cache-file=config.cache'
815 -n, --no-create do not create output files
816 --srcdir=DIR find the sources in DIR [configure dir or \`..']
821 Installation directories:
822 --prefix=PREFIX install architecture-independent files in PREFIX
824 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
827 By default, \`make install' will install all the files in
828 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
829 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
830 for instance \`--prefix=\$HOME'.
832 For better control, use the options below.
834 Fine tuning of the installation directories:
835 --bindir=DIR user executables [EPREFIX/bin]
836 --sbindir=DIR system admin executables [EPREFIX/sbin]
837 --libexecdir=DIR program executables [EPREFIX/libexec]
838 --datadir=DIR read-only architecture-independent data [PREFIX/share]
839 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
840 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
841 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
842 --libdir=DIR object code libraries [EPREFIX/lib]
843 --includedir=DIR C header files [PREFIX/include]
844 --oldincludedir=DIR C header files for non-gcc [/usr/include]
845 --infodir=DIR info documentation [PREFIX/info]
846 --mandir=DIR man documentation [PREFIX/man]
852 --build=BUILD configure for building on BUILD [guessed]
853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
854 --target=TARGET configure for building compilers for TARGET [HOST]
858 if test -n "$ac_init_help"; then
863 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
864 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
865 --enable-dev-mode Turn on developer mode
866 --disable-largefile omit support for large files
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
872 --with-curses=PATH use curses files in PATH
873 --with-nbs=PATH use Network Broadcast Sound files in PATH
874 --with-ncurses=PATH use ncurses files in PATH
875 --with-newt=PATH use newt files in PATH
876 --with-odbc=PATH use unixODBC files in PATH
877 --with-ogg=PATH use OGG files in PATH
878 --with-osptk=PATH use OSP Toolkit files in PATH
879 --with-popt=PATH use popt files in PATH
880 --with-pri=PATH use ISDN PRI files in PATH
881 --with-speex=PATH use Speex files in PATH
882 --with-sqlite=PATH use SQLite files in PATH
883 --with-ssl=PATH use OpenSSL files in PATH
884 --with-tds=PATH use FreeTDS files in PATH
885 --with-vorbis=PATH use Vorbis files in PATH
886 --with-z=PATH use zlib files in PATH
887 --with-ossaudio=PATH use Open Sound System files in PATH
888 --with-tonezone=PATH use Zaptel files in PATH
889 --with-gsm=PATH use libgsm files in PATH, or 'internal'
890 --with-pq=PATH use PostgreSQL files in PATH
891 --with-vpb=PATH use vpb files in PATH
892 --with-qt=PATH use Qt files in PATH
893 --with-kde=PATH use KDE files in PATH
894 --with-pwlib=PATH use PWLib files in PATH
896 Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
903 CXX C++ compiler command
904 CXXFLAGS C++ compiler flags
906 CXXCPP C++ preprocessor
908 Use these variables to override the choices made by `configure' or to help
909 it to find libraries and programs with nonstandard names/locations.
914 if test "$ac_init_help" = "recursive"; then
915 # If there are subdirs, report their specific --help.
917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918 test -d $ac_dir || continue
921 if test "$ac_dir" != .; then
922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923 # A "../" for each directory in $ac_dir_suffix.
924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926 ac_dir_suffix= ac_top_builddir=
930 .) # No --srcdir option. We are building in place.
932 if test -z "$ac_top_builddir"; then
935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937 [\\/]* | ?:[\\/]* ) # Absolute path.
938 ac_srcdir=$srcdir$ac_dir_suffix;
939 ac_top_srcdir=$srcdir ;;
941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
945 # Do not use `cd foo && pwd` to compute absolute paths, because
946 # the directories may not exist.
948 .) ac_abs_builddir="$ac_dir";;
951 .) ac_abs_builddir=`pwd`;;
952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
956 case $ac_abs_builddir in
957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
959 case ${ac_top_builddir}. in
960 .) ac_abs_top_builddir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
965 case $ac_abs_builddir in
966 .) ac_abs_srcdir=$ac_srcdir;;
969 .) ac_abs_srcdir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
974 case $ac_abs_builddir in
975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
977 case $ac_top_srcdir in
978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 # Check for guested configure; otherwise get Cygnus style configure.
986 if test -f $ac_srcdir/configure.gnu; then
988 $SHELL $ac_srcdir/configure.gnu --help=recursive
989 elif test -f $ac_srcdir/configure; then
991 $SHELL $ac_srcdir/configure --help=recursive
992 elif test -f $ac_srcdir/configure.ac ||
993 test -f $ac_srcdir/configure.in; then
997 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 test -n "$ac_init_help" && exit 0
1004 if $ac_init_version; then
1007 Copyright (C) 2003 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1017 This file contains any messages produced by compilers while
1018 running configure, to aid debugging if configure makes a mistake.
1020 It was created by $as_me, which was
1021 generated by GNU Autoconf 2.59. Invocation command line was
1032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1039 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1042 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1044 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1045 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1046 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1047 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 test -z "$as_dir" && as_dir=.
1056 echo "PATH: $as_dir"
1071 # Keep a trace of the command line.
1072 # Strip out --no-create and --no-recursion so they do not pile up.
1073 # Strip out --silent because we don't want to record it for future runs.
1074 # Also quote any args containing shell meta-characters.
1075 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_must_keep_next=false
1086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1090 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1091 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1097 if test $ac_must_keep_next = true; then
1098 ac_must_keep_next=false # Got value, back to normal.
1101 *=* | --config-cache | -C | -disable-* | --disable-* \
1102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1104 | -with-* | --with-* | -without-* | --without-* | --x)
1105 case "$ac_configure_args0 " in
1106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 -* ) ac_must_keep_next=true ;;
1112 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1113 # Get rid of the leading space.
1119 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1120 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122 # When interrupted or exit'd, cleanup temporary files, and complete
1123 # config.log. We remove comments because anyway the quotes in there
1124 # would cause problems or look ugly.
1125 # WARNING: Be sure not to use single quotes in there, as some shells,
1126 # such as our DU 5.0 friend, will then `close' the trap.
1127 trap 'exit_status=$?
1128 # Save into config.log some information that might help in debugging.
1133 ## ---------------- ##
1134 ## Cache variables. ##
1135 ## ---------------- ##
1138 # The following way of writing the cache mishandles newlines in values,
1141 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156 ## ----------------- ##
1157 ## Output variables. ##
1158 ## ----------------- ##
1161 for ac_var in $ac_subst_vars
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -n "$ac_subst_files"; then
1175 for ac_var in $ac_subst_files
1177 eval ac_val=$`echo $ac_var`
1178 echo "$ac_var='"'"'$ac_val'"'"'"
1183 if test -s confdefs.h; then
1190 sed "/^$/d" confdefs.h | sort
1193 test "$ac_signal" != 0 &&
1194 echo "$as_me: caught signal $ac_signal"
1195 echo "$as_me: exit $exit_status"
1197 rm -f core *.core &&
1198 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201 for ac_signal in 1 2 13 15; do
1202 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1207 rm -rf conftest* confdefs.h
1208 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211 # Predefined preprocessor variables.
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_NAME "$PACKAGE_NAME"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_STRING "$PACKAGE_STRING"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238 # Let the site file select an alternate cache file if it wants to.
1239 # Prefer explicitly selected file to automatically selected ones.
1240 if test -z "$CONFIG_SITE"; then
1241 if test "x$prefix" != xNONE; then
1242 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 for ac_site_file in $CONFIG_SITE; do
1248 if test -r "$ac_site_file"; then
1249 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1250 echo "$as_me: loading site script $ac_site_file" >&6;}
1251 sed 's/^/| /' "$ac_site_file" >&5
1256 if test -r "$cache_file"; then
1257 # Some versions of bash will fail to source /dev/null (special
1258 # files actually), so we avoid doing that.
1259 if test -f "$cache_file"; then
1260 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1261 echo "$as_me: loading cache $cache_file" >&6;}
1263 [\\/]* | ?:[\\/]* ) . $cache_file;;
1264 *) . ./$cache_file;;
1268 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1269 echo "$as_me: creating cache $cache_file" >&6;}
1273 # Check that the precious variables saved in the cache have kept the same
1275 ac_cache_corrupted=false
1276 for ac_var in `(set) 2>&1 |
1277 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1278 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1279 eval ac_new_set=\$ac_env_${ac_var}_set
1280 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1281 eval ac_new_val="\$ac_env_${ac_var}_value"
1282 case $ac_old_set,$ac_new_set in
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1285 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1293 if test "x$ac_old_val" != "x$ac_new_val"; then
1294 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1295 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1296 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1297 echo "$as_me: former value: $ac_old_val" >&2;}
1298 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1299 echo "$as_me: current value: $ac_new_val" >&2;}
1300 ac_cache_corrupted=:
1303 # Pass precious variables to config.status.
1304 if test "$ac_new_set" = set; then
1306 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1307 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1308 *) ac_arg=$ac_var=$ac_new_val ;;
1310 case " $ac_configure_args " in
1311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1312 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316 if $ac_cache_corrupted; then
1317 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1318 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1319 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1320 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1321 { (exit 1); exit 1; }; }
1325 ac_cpp='$CPP $CPPFLAGS'
1326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1349 # cross-compile macros
1351 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1352 if test -f $ac_dir/install-sh; then
1354 ac_install_sh="$ac_aux_dir/install-sh -c"
1356 elif test -f $ac_dir/install.sh; then
1358 ac_install_sh="$ac_aux_dir/install.sh -c"
1360 elif test -f $ac_dir/shtool; then
1362 ac_install_sh="$ac_aux_dir/shtool install -c"
1366 if test -z "$ac_aux_dir"; then
1367 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1368 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1369 { (exit 1); exit 1; }; }
1371 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1372 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1373 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375 # Make sure we can run config.sub.
1376 $ac_config_sub sun4 >/dev/null 2>&1 ||
1377 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1378 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1379 { (exit 1); exit 1; }; }
1381 echo "$as_me:$LINENO: checking build system type" >&5
1382 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1383 if test "${ac_cv_build+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 ac_cv_build_alias=$build_alias
1387 test -z "$ac_cv_build_alias" &&
1388 ac_cv_build_alias=`$ac_config_guess`
1389 test -z "$ac_cv_build_alias" &&
1390 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1392 { (exit 1); exit 1; }; }
1393 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1399 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1400 echo "${ECHO_T}$ac_cv_build" >&6
1402 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$as_me:$LINENO: checking host system type" >&5
1408 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1409 if test "${ac_cv_host+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_host_alias=$host_alias
1413 test -z "$ac_cv_host_alias" &&
1414 ac_cv_host_alias=$ac_cv_build_alias
1415 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1422 echo "${ECHO_T}$ac_cv_host" >&6
1424 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 echo "$as_me:$LINENO: checking target system type" >&5
1430 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1431 if test "${ac_cv_target+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_target_alias=$target_alias
1435 test "x$ac_cv_target_alias" = "x" &&
1436 ac_cv_target_alias=$ac_cv_host_alias
1437 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1438 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1440 { (exit 1); exit 1; }; }
1443 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1444 echo "${ECHO_T}$ac_cv_target" >&6
1445 target=$ac_cv_target
1446 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1447 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1448 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451 # The aliases save the names the user supplied, while $host etc.
1452 # will get canonicalized.
1453 test -n "$target_alias" &&
1454 test "$program_prefix$program_suffix$program_transform_name" = \
1456 program_prefix=${target_alias}-
1458 # check existence of the package
1461 # specify output header file
1462 ac_config_headers="$ac_config_headers include/autoconfig.h"
1472 cat >>confdefs.h <<_ACEOF
1473 #define PBX_PLATFORM "${host}"
1477 cat >>confdefs.h <<_ACEOF
1478 #define PBX_CPU "${host_cpu}"
1482 cat >>confdefs.h <<_ACEOF
1483 #define PBX_VENDOR "${host_vendor}"
1487 cat >>confdefs.h <<_ACEOF
1488 #define PBX_OS "${host_os}"
1492 # export some useful defines
1493 PBX_PLATFORM=${host}
1495 PBX_VENDOR=${host_vendor}
1503 if test -n "$ac_tool_prefix"; then
1504 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
1505 set dummy ${ac_tool_prefix}uname; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_path_UNAME+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 UNAME=$ac_cv_path_UNAME
1535 if test -n "$UNAME"; then
1536 echo "$as_me:$LINENO: result: $UNAME" >&5
1537 echo "${ECHO_T}$UNAME" >&6
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1544 if test -z "$ac_cv_path_UNAME"; then
1546 # Extract the first word of "uname", so it can be a program name with args.
1547 set dummy uname; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 case $ac_pt_UNAME in
1555 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 test -z "$ac_cv_path_ac_pt_UNAME" && ac_cv_path_ac_pt_UNAME="No"
1576 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
1578 if test -n "$ac_pt_UNAME"; then
1579 echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
1580 echo "${ECHO_T}$ac_pt_UNAME" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1588 UNAME="$ac_cv_path_UNAME"
1591 if test ! x"${UNAME}" = xNo; then
1592 PBX_OSREV=$(${UNAME} -r)
1598 cygwin*|mingw*|windows*|winnt)
1600 cat >>confdefs.h <<\_ACEOF
1605 # this is ugly - KPF
1611 cat >>confdefs.h <<\_ACEOF
1619 cat >>confdefs.h <<\_ACEOF
1627 cat >>confdefs.h <<\_ACEOF
1631 PBX_OSTYPE="FreeBSD"
1635 cat >>confdefs.h <<\_ACEOF
1639 PBX_OSTYPE="OpenBSD"
1643 cat >>confdefs.h <<\_ACEOF
1651 cat >>confdefs.h <<\_ACEOF
1659 cat >>confdefs.h <<\_ACEOF
1668 # This needs to be before any macros that use the C compiler
1670 cat >>confdefs.h <<\_ACEOF
1671 #define _GNU_SOURCE 1
1679 # cross-compile checks
1680 if test x"${build}" != x"${host}";
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1719 if test -z "$ac_cv_prog_CC"; then
1721 # Extract the first word of "gcc", so it can be a program name with args.
1722 set dummy gcc; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="gcc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC=":"
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1762 if test -n "$ac_tool_prefix"; then
1763 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
1764 set dummy ${ac_tool_prefix}g++; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CXX+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$CXX"; then
1771 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_CXX="${ac_tool_prefix}g++"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 if test -n "$CXX"; then
1791 echo "$as_me:$LINENO: result: $CXX" >&5
1792 echo "${ECHO_T}$CXX" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1799 if test -z "$ac_cv_prog_CXX"; then
1801 # Extract the first word of "g++", so it can be a program name with args.
1802 set dummy g++; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 if test -n "$ac_ct_CXX"; then
1809 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_ac_ct_CXX="g++"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX=":"
1828 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1829 if test -n "$ac_ct_CXX"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1831 echo "${ECHO_T}$ac_ct_CXX" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1839 CXX="$ac_cv_prog_CXX"
1842 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_RANLIB+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 if test -n "$RANLIB"; then
1851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 RANLIB=$ac_cv_prog_RANLIB
1870 if test -n "$RANLIB"; then
1871 echo "$as_me:$LINENO: result: $RANLIB" >&5
1872 echo "${ECHO_T}$RANLIB" >&6
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1879 if test -z "$ac_cv_prog_RANLIB"; then
1880 ac_ct_RANLIB=$RANLIB
1881 # Extract the first word of "ranlib", so it can be a program name with args.
1882 set dummy ranlib; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$ac_ct_RANLIB"; then
1889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_RANLIB="ranlib"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1909 if test -n "$ac_ct_RANLIB"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1911 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 RANLIB=$ac_ct_RANLIB
1919 RANLIB="$ac_cv_prog_RANLIB"
1922 if test -n "$ac_tool_prefix"; then
1923 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1924 set dummy ${ac_tool_prefix}ar; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_AR+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 if test -n "$AR"; then
1931 ac_cv_prog_AR="$AR" # Let the user override the test.
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_AR="${ac_tool_prefix}ar"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 if test -n "$AR"; then
1951 echo "$as_me:$LINENO: result: $AR" >&5
1952 echo "${ECHO_T}$AR" >&6
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1959 if test -z "$ac_cv_prog_AR"; then
1961 # Extract the first word of "ar", so it can be a program name with args.
1962 set dummy ar; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$ac_ct_AR"; then
1969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_ac_ct_AR="ar"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
1988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1989 if test -n "$ac_ct_AR"; then
1990 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1991 echo "${ECHO_T}$ac_ct_AR" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
2003 if test x"${PBX_OSTYPE}" = xWin32;
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}nm; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_NM+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$NM"; then
2014 ac_cv_prog_NM="$NM" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_NM="${ac_tool_prefix}nm"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 if test -n "$NM"; then
2034 echo "$as_me:$LINENO: result: $NM" >&5
2035 echo "${ECHO_T}$NM" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$ac_cv_prog_NM"; then
2044 # Extract the first word of "nm", so it can be a program name with args.
2045 set dummy nm; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$ac_ct_NM"; then
2052 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_NM="nm"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
2071 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2072 if test -n "$ac_ct_NM"; then
2073 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2074 echo "${ECHO_T}$ac_ct_NM" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2087 set dummy ${ac_tool_prefix}windres; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_WINDRES+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 if test -n "$WINDRES"; then
2094 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 WINDRES=$ac_cv_prog_WINDRES
2113 if test -n "$WINDRES"; then
2114 echo "$as_me:$LINENO: result: $WINDRES" >&5
2115 echo "${ECHO_T}$WINDRES" >&6
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2122 if test -z "$ac_cv_prog_WINDRES"; then
2123 ac_ct_WINDRES=$WINDRES
2124 # Extract the first word of "windres", so it can be a program name with args.
2125 set dummy windres; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 if test -n "$ac_ct_WINDRES"; then
2132 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_WINDRES="windres"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
2151 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2152 if test -n "$ac_ct_WINDRES"; then
2153 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2154 echo "${ECHO_T}$ac_ct_WINDRES" >&6
2156 echo "$as_me:$LINENO: result: no" >&5
2157 echo "${ECHO_T}no" >&6
2160 WINDRES=$ac_ct_WINDRES
2162 WINDRES="$ac_cv_prog_WINDRES"
2165 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2167 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$DLLWRAP"; then
2174 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 DLLWRAP=$ac_cv_prog_DLLWRAP
2193 if test -n "$DLLWRAP"; then
2194 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2195 echo "${ECHO_T}$DLLWRAP" >&6
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2202 if test -z "$ac_cv_prog_DLLWRAP"; then
2203 ac_ct_DLLWRAP=$DLLWRAP
2204 # Extract the first word of "dllwrap", so it can be a program name with args.
2205 set dummy dllwrap; ac_word=$2
2206 echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 if test -n "$ac_ct_DLLWRAP"; then
2212 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP=":"
2231 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2232 if test -n "$ac_ct_DLLWRAP"; then
2233 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2234 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
2236 echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2240 DLLWRAP=$ac_ct_DLLWRAP
2242 DLLWRAP="$ac_cv_prog_DLLWRAP"
2249 # Checks for programs.
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255 if test -n "$ac_tool_prefix"; then
2256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC="$CC" # Let the user override the test.
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 if test -n "$CC"; then
2284 echo "$as_me:$LINENO: result: $CC" >&5
2285 echo "${ECHO_T}$CC" >&6
2287 echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2292 if test -z "$ac_cv_prog_CC"; then
2294 # Extract the first word of "gcc", so it can be a program name with args.
2295 set dummy gcc; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -n "$ac_ct_CC"; then
2302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_ac_ct_CC="gcc"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321 if test -n "$ac_ct_CC"; then
2322 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323 echo "${ECHO_T}$ac_ct_CC" >&6
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2334 if test -z "$CC"; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}cc; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_CC="${ac_tool_prefix}cc"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 if test -n "$CC"; then
2364 echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2372 if test -z "$ac_cv_prog_CC"; then
2374 # Extract the first word of "cc", so it can be a program name with args.
2375 set dummy cc; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 if test -n "$ac_ct_CC"; then
2382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_ac_ct_CC="cc"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403 echo "${ECHO_T}$ac_ct_CC" >&6
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2415 if test -z "$CC"; then
2416 # Extract the first word of "cc", so it can be a program name with args.
2417 set dummy cc; ac_word=$2
2418 echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2420 if test "${ac_cv_prog_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 if test -n "$CC"; then
2424 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2434 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2435 ac_prog_rejected=yes
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 if test $ac_prog_rejected = yes; then
2446 # We found a bogon in the path, so make sure we never use it.
2447 set dummy $ac_cv_prog_CC
2449 if test $# != 0; then
2450 # We chose a different compiler from the bogus one.
2451 # However, it has the same basename, so the bogon will be chosen
2452 # first if we set CC to just the basename; use the full file name.
2454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2460 if test -n "$CC"; then
2461 echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6
2464 echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6
2469 if test -z "$CC"; then
2470 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2475 echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 if test -n "$CC"; then
2501 echo "$as_me:$LINENO: result: $CC" >&5
2502 echo "${ECHO_T}$CC" >&6
2504 echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6
2508 test -n "$CC" && break
2511 if test -z "$CC"; then
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_ac_ct_CC="$ac_prog"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2542 if test -n "$ac_ct_CC"; then
2543 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2544 echo "${ECHO_T}$ac_ct_CC" >&6
2546 echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2550 test -n "$ac_ct_CC" && break
2559 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: no acceptable C compiler found in \$PATH
2562 See \`config.log' for more details." >&2;}
2563 { (exit 1); exit 1; }; }
2565 # Provide some information about the compiler.
2566 echo "$as_me:$LINENO:" \
2567 "checking for C compiler version" >&5
2568 ac_compiler=`set X $ac_compile; echo $2`
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2570 (eval $ac_compiler --version </dev/null >&5) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2574 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2575 (eval $ac_compiler -v </dev/null >&5) 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2580 (eval $ac_compiler -V </dev/null >&5) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2600 ac_clean_files_save=$ac_clean_files
2601 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2602 # Try to create an executable without -o first, disregard a.out.
2603 # It will help us diagnose broken compilers, and finding out an intuition
2605 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2606 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2607 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2608 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2609 (eval $ac_link_default) 2>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; then
2613 # Find the output, starting from the most likely. This scheme is
2614 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2617 # Be careful to initialize this variable, since it used to be cached.
2618 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2620 # b.out is created by i960 compilers.
2621 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2623 test -f "$ac_file" || continue
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2628 # This is the source file.
2631 # We found the default executable, but exeext='' is most
2635 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636 # FIXME: I believe we export ac_cv_exeext for Libtool,
2637 # but it would be cool to find out if it's true. Does anybody
2638 # maintain Libtool? --akim.
2646 echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2649 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2650 See \`config.log' for more details." >&5
2651 echo "$as_me: error: C compiler cannot create executables
2652 See \`config.log' for more details." >&2;}
2653 { (exit 77); exit 77; }; }
2656 ac_exeext=$ac_cv_exeext
2657 echo "$as_me:$LINENO: result: $ac_file" >&5
2658 echo "${ECHO_T}$ac_file" >&6
2660 # Check the compiler produces executables we can run. If not, either
2661 # the compiler is broken, or we cross compile.
2662 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2663 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2664 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2665 # If not cross compiling, check that we can run a simple program.
2666 if test "$cross_compiling" != yes; then
2667 if { ac_try='./$ac_file'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2675 if test "$cross_compiling" = maybe; then
2678 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2679 If you meant to cross compile, use \`--host'.
2680 See \`config.log' for more details." >&5
2681 echo "$as_me: error: cannot run C compiled programs.
2682 If you meant to cross compile, use \`--host'.
2683 See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
2688 echo "$as_me:$LINENO: result: yes" >&5
2689 echo "${ECHO_T}yes" >&6
2691 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2692 ac_clean_files=$ac_clean_files_save
2693 # Check the compiler produces executables we can run. If not, either
2694 # the compiler is broken, or we cross compile.
2695 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2696 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2697 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2698 echo "${ECHO_T}$cross_compiling" >&6
2700 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2701 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2703 (eval $ac_link) 2>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; then
2707 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2708 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2709 # work properly (i.e., refer to `conftest.exe'), while it won't with
2711 for ac_file in conftest.exe conftest conftest.*; do
2712 test -f "$ac_file" || continue
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2722 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2723 See \`config.log' for more details." >&5
2724 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2725 See \`config.log' for more details." >&2;}
2726 { (exit 1); exit 1; }; }
2729 rm -f conftest$ac_cv_exeext
2730 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2731 echo "${ECHO_T}$ac_cv_exeext" >&6
2733 rm -f conftest.$ac_ext
2734 EXEEXT=$ac_cv_exeext
2736 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2737 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2738 if test "${ac_cv_objext+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 cat >conftest.$ac_ext <<_ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2756 rm -f conftest.o conftest.obj
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&2;}
2777 { (exit 1); exit 1; }; }
2780 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2782 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2783 echo "${ECHO_T}$ac_cv_objext" >&6
2784 OBJEXT=$ac_cv_objext
2786 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2787 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2788 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 cat >conftest.$ac_ext <<_ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2841 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2842 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2843 GCC=`test $ac_compiler_gnu = yes && echo yes`
2844 ac_test_CFLAGS=${CFLAGS+set}
2845 ac_save_CFLAGS=$CFLAGS
2847 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2848 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2849 if test "${ac_cv_prog_cc_g+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2897 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2898 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2899 if test "$ac_test_CFLAGS" = set; then
2900 CFLAGS=$ac_save_CFLAGS
2901 elif test $ac_cv_prog_cc_g = yes; then
2902 if test "$GCC" = yes; then
2908 if test "$GCC" = yes; then
2914 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2915 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2916 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 ac_cv_prog_cc_stdc=no
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 #include <sys/types.h>
2930 #include <sys/stat.h>
2931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2932 struct buf { int x; };
2933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2934 static char *e (p, i)
2940 static char *f (char * (*g) (char **, int), char **p, ...)
2945 s = g (p, va_arg (v,int));
2950 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2951 function prototypes and stuff, but not '\xHH' hex character constants.
2952 These don't provoke an error unfortunately, instead are silently treated
2953 as 'x'. The following induces an error, until -std1 is added to get
2954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2955 array size at least. It's necessary to write '\x00'==0 to get something
2956 that's true only with -std1. */
2957 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2959 int test (int i, double x);
2960 struct s1 {int (*f) (int a);};
2961 struct s2 {int (*f) (double a);};
2962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2973 # Don't try gcc -ansi; that turns off useful extensions and
2974 # breaks some systems' header files.
2975 # AIX -qlanglvl=ansi
2976 # Ultrix and OSF/1 -std1
2977 # HP-UX 10.20 and later -Ae
2978 # HP-UX older versions -Aa -D_HPUX_SOURCE
2979 # SVR4 -Xc -D__EXTENSIONS__
2980 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2982 CC="$ac_save_CC $ac_arg"
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985 (eval $ac_compile) 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 ac_cv_prog_cc_stdc=$ac_arg
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f conftest.err conftest.$ac_objext
3013 rm -f conftest.$ac_ext conftest.$ac_objext
3018 case "x$ac_cv_prog_cc_stdc" in
3020 echo "$as_me:$LINENO: result: none needed" >&5
3021 echo "${ECHO_T}none needed" >&6 ;;
3023 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3024 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3025 CC="$CC $ac_cv_prog_cc_stdc" ;;
3028 # Some people use a C++ compiler to compile C. Since we use `exit',
3029 # in C++ we need to declare it. In case someone uses the same compiler
3030 # for both compiling C and C++ we need to have the C++ compiler decide
3031 # the declaration of exit, since it's the most demanding environment.
3032 cat >conftest.$ac_ext <<_ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3039 (eval $ac_compile) 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 for ac_declaration in \
3060 'extern "C" void std::exit (int) throw (); using std::exit;' \
3061 'extern "C" void std::exit (int); using std::exit;' \
3062 'extern "C" void exit (int) throw ();' \
3063 'extern "C" void exit (int);' \
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3082 rm -f conftest.$ac_objext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 if test -n "$ac_declaration"; then
3157 echo '#ifdef __cplusplus' >>confdefs.h
3158 echo $ac_declaration >>confdefs.h
3159 echo '#endif' >>confdefs.h
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175 ac_cpp='$CXXCPP $CPPFLAGS'
3176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3179 if test -n "$ac_tool_prefix"; then
3180 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184 echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3186 if test "${ac_cv_prog_CXX+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 if test -n "$CXX"; then
3190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test -n "$CXX"; then
3210 echo "$as_me:$LINENO: result: $CXX" >&5
3211 echo "${ECHO_T}$CXX" >&6
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3217 test -n "$CXX" && break
3220 if test -z "$CXX"; then
3222 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -n "$ac_ct_CXX"; then
3232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_CXX="$ac_prog"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3251 if test -n "$ac_ct_CXX"; then
3252 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3253 echo "${ECHO_T}$ac_ct_CXX" >&6
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3259 test -n "$ac_ct_CXX" && break
3261 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3267 # Provide some information about the compiler.
3268 echo "$as_me:$LINENO:" \
3269 "checking for C++ compiler version" >&5
3270 ac_compiler=`set X $ac_compile; echo $2`
3271 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3272 (eval $ac_compiler --version </dev/null >&5) 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3276 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3277 (eval $ac_compiler -v </dev/null >&5) 2>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3282 (eval $ac_compiler -V </dev/null >&5) 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3287 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3288 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3289 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3310 rm -f conftest.$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312 (eval $ac_compile) 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } &&
3319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; } &&
3325 { ac_try='test -s conftest.$ac_objext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3342 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3343 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3344 GXX=`test $ac_compiler_gnu = yes && echo yes`
3345 ac_test_CXXFLAGS=${CXXFLAGS+set}
3346 ac_save_CXXFLAGS=$CXXFLAGS
3348 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3349 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3350 if test "${ac_cv_prog_cxx_g+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 cat >conftest.$ac_ext <<_ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3368 rm -f conftest.$ac_objext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_cv_prog_cxx_g=yes
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3399 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3400 if test "$ac_test_CXXFLAGS" = set; then
3401 CXXFLAGS=$ac_save_CXXFLAGS
3402 elif test $ac_cv_prog_cxx_g = yes; then
3403 if test "$GXX" = yes; then
3409 if test "$GXX" = yes; then
3415 for ac_declaration in \
3417 'extern "C" void std::exit (int) throw (); using std::exit;' \
3418 'extern "C" void std::exit (int); using std::exit;' \
3419 'extern "C" void exit (int) throw ();' \
3420 'extern "C" void exit (int);' \
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } &&
3492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; } &&
3498 { ac_try='test -s conftest.$ac_objext'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; }; then
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 if test -n "$ac_declaration"; then
3514 echo '#ifdef __cplusplus' >>confdefs.h
3515 echo $ac_declaration >>confdefs.h
3516 echo '#endif' >>confdefs.h
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3532 # On Suns, sometimes $CPP names a directory.
3533 if test -n "$CPP" && test -d "$CPP"; then
3536 if test -z "$CPP"; then
3537 if test "${ac_cv_prog_CPP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 # Double quotes because CPP needs to be expanded
3541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3544 for ac_c_preproc_warn_flag in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3559 # include <limits.h>
3561 # include <assert.h>
3565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582 if test -z "$ac_cpp_err"; then
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 # Broken: fails on valid input.
3591 rm -f conftest.err conftest.$ac_ext
3593 # OK, works on sane cases. Now check whether non-existent headers
3594 # can be detected and how.
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3606 grep -v '^ *+' conftest.er1 >conftest.err
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } >/dev/null; then
3611 if test -s conftest.err; then
3612 ac_cpp_err=$ac_c_preproc_warn_flag
3613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3620 if test -z "$ac_cpp_err"; then
3621 # Broken: success on invalid input.
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 # Passes both tests.
3631 rm -f conftest.err conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3648 echo "$as_me:$LINENO: result: $CPP" >&5
3649 echo "${ECHO_T}$CPP" >&6
3651 for ac_c_preproc_warn_flag in '' yes
3653 # Use a header file that comes with gcc, so configuring glibc
3654 # with a fresh cross-compiler works.
3655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3656 # <limits.h> exists even on freestanding compilers.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp. "Syntax error" is here to catch this case.
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3666 # include <limits.h>
3668 # include <assert.h>
3672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } >/dev/null; then
3680 if test -s conftest.err; then
3681 ac_cpp_err=$ac_c_preproc_warn_flag
3682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3689 if test -z "$ac_cpp_err"; then
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 # Broken: fails on valid input.
3698 rm -f conftest.err conftest.$ac_ext
3700 # OK, works on sane cases. Now check whether non-existent headers
3701 # can be detected and how.
3702 cat >conftest.$ac_ext <<_ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #include <ac_nonexistent.h>
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1 >conftest.err
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3727 if test -z "$ac_cpp_err"; then
3728 # Broken: success on invalid input.
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 # Passes both tests.
3738 rm -f conftest.err conftest.$ac_ext
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then
3746 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&2;}
3750 { (exit 1); exit 1; }; }
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 ac_cpp='$CXXCPP $CPPFLAGS'
3761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3764 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3765 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3766 if test -z "$CXXCPP"; then
3767 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 # Double quotes because CXXCPP needs to be expanded
3771 for CXXCPP in "$CXX -E" "/lib/cpp"
3774 for ac_cxx_preproc_warn_flag in '' yes
3776 # Use a header file that comes with gcc, so configuring glibc
3777 # with a fresh cross-compiler works.
3778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3779 # <limits.h> exists even on freestanding compilers.
3780 # On the NeXT, cc -E runs the code through the compiler's parser,
3781 # not just through cpp. "Syntax error" is here to catch this case.
3782 cat >conftest.$ac_ext <<_ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3789 # include <limits.h>
3791 # include <assert.h>
3795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } >/dev/null; then
3803 if test -s conftest.err; then
3804 ac_cpp_err=$ac_cxx_preproc_warn_flag
3805 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3812 if test -z "$ac_cpp_err"; then
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 # Broken: fails on valid input.
3821 rm -f conftest.err conftest.$ac_ext
3823 # OK, works on sane cases. Now check whether non-existent headers
3824 # can be detected and how.
3825 cat >conftest.$ac_ext <<_ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3831 #include <ac_nonexistent.h>
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836 grep -v '^ *+' conftest.er1 >conftest.err
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null; then
3841 if test -s conftest.err; then
3842 ac_cpp_err=$ac_cxx_preproc_warn_flag
3843 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3850 if test -z "$ac_cpp_err"; then
3851 # Broken: success on invalid input.
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 # Passes both tests.
3861 rm -f conftest.err conftest.$ac_ext
3864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3865 rm -f conftest.err conftest.$ac_ext
3866 if $ac_preproc_ok; then
3871 ac_cv_prog_CXXCPP=$CXXCPP
3874 CXXCPP=$ac_cv_prog_CXXCPP
3876 ac_cv_prog_CXXCPP=$CXXCPP
3878 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3879 echo "${ECHO_T}$CXXCPP" >&6
3881 for ac_cxx_preproc_warn_flag in '' yes
3883 # Use a header file that comes with gcc, so configuring glibc
3884 # with a fresh cross-compiler works.
3885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3886 # <limits.h> exists even on freestanding compilers.
3887 # On the NeXT, cc -E runs the code through the compiler's parser,
3888 # not just through cpp. "Syntax error" is here to catch this case.
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 # include <limits.h>
3898 # include <assert.h>
3902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3905 grep -v '^ *+' conftest.er1 >conftest.err
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } >/dev/null; then
3910 if test -s conftest.err; then
3911 ac_cpp_err=$ac_cxx_preproc_warn_flag
3912 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3919 if test -z "$ac_cpp_err"; then
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 # Broken: fails on valid input.
3928 rm -f conftest.err conftest.$ac_ext
3930 # OK, works on sane cases. Now check whether non-existent headers
3931 # can be detected and how.
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 #include <ac_nonexistent.h>
3940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null; then
3948 if test -s conftest.err; then
3949 ac_cpp_err=$ac_cxx_preproc_warn_flag
3950 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3957 if test -z "$ac_cpp_err"; then
3958 # Broken: success on invalid input.
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 # Passes both tests.
3968 rm -f conftest.err conftest.$ac_ext
3971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3972 rm -f conftest.err conftest.$ac_ext
3973 if $ac_preproc_ok; then
3976 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3977 See \`config.log' for more details." >&5
3978 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3979 See \`config.log' for more details." >&2;}
3980 { (exit 1); exit 1; }; }
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 for ac_prog in gawk mawk nawk awk
3991 # Extract the first word of "$ac_prog", so it can be a program name with args.
3992 set dummy $ac_prog; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_AWK+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test -n "$AWK"; then
3999 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_prog_AWK="$ac_prog"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 if test -n "$AWK"; then
4019 echo "$as_me:$LINENO: result: $AWK" >&5
4020 echo "${ECHO_T}$AWK" >&6
4022 echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6
4026 test -n "$AWK" && break
4029 # Find a good install program. We prefer a C program (faster),
4030 # so one script is as good as another. But avoid the broken or
4031 # incompatible versions:
4032 # SysV /etc/install, /usr/sbin/install
4033 # SunOS /usr/etc/install
4034 # IRIX /sbin/install
4036 # AmigaOS /C/install, which installs bootblocks on floppy discs
4037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4040 # OS/2's system install, which has a completely different semantic
4041 # ./install, which can be erroneously created by make from ./install.sh.
4042 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4044 if test -z "$INSTALL"; then
4045 if test "${ac_cv_path_install+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 # Account for people who put trailing slashes in PATH elements.
4055 ./ | .// | /cC/* | \
4056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4060 # OSF1 and SCO ODT 3.0 have their own names for install.
4061 # Don't use installbsd from OSF since it installs stuff as root
4063 for ac_prog in ginstall scoinst install; do
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4066 if test $ac_prog = install &&
4067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4068 # AIX install. It has an incompatible calling convention.
4070 elif test $ac_prog = install &&
4071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4072 # program-specific install script used by HP pwplus--don't use.
4075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4087 if test "${ac_cv_path_install+set}" = set; then
4088 INSTALL=$ac_cv_path_install
4090 # As a last resort, use the slow shell script. We don't cache a
4091 # path for INSTALL within a source directory, because that will
4092 # break other packages using the cache if that directory is
4093 # removed, or if the path is relative.
4094 INSTALL=$ac_install_sh
4097 echo "$as_me:$LINENO: result: $INSTALL" >&5
4098 echo "${ECHO_T}$INSTALL" >&6
4100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4101 # It thinks the first close brace ends the variable substitution.
4102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4108 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4109 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4111 if test "$LN_S" = "ln -s"; then
4112 echo "$as_me:$LINENO: result: yes" >&5
4113 echo "${ECHO_T}yes" >&6
4115 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4116 echo "${ECHO_T}no, using $LN_S" >&6
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_RANLIB+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 if test -n "$RANLIB"; then
4128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 RANLIB=$ac_cv_prog_RANLIB
4147 if test -n "$RANLIB"; then
4148 echo "$as_me:$LINENO: result: $RANLIB" >&5
4149 echo "${ECHO_T}$RANLIB" >&6
4151 echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4156 if test -z "$ac_cv_prog_RANLIB"; then
4157 ac_ct_RANLIB=$RANLIB
4158 # Extract the first word of "ranlib", so it can be a program name with args.
4159 set dummy ranlib; ac_word=$2
4160 echo "$as_me:$LINENO: checking for $ac_word" >&5
4161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 if test -n "$ac_ct_RANLIB"; then
4166 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_prog_ac_ct_RANLIB="ranlib"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4185 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4186 if test -n "$ac_ct_RANLIB"; then
4187 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4188 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4190 echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4194 RANLIB=$ac_ct_RANLIB
4196 RANLIB="$ac_cv_prog_RANLIB"
4199 echo "$as_me:$LINENO: checking for GNU make" >&5
4200 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4201 if test "${GNU_MAKE+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 GNU_MAKE='Not Found' ;
4205 for a in make gmake gnumake ; do
4206 if test -z "$a" ; then continue ; fi ;
4207 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
4214 echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
4215 echo "${ECHO_T}$GNU_MAKE" >&6 ;
4216 if test "x$GNU_MAKE" = "xNot Found" ; then
4217 echo " *** Please install GNU make. It is required to build Asterisk!"
4223 # Extract the first word of "grep", so it can be a program name with args.
4224 set dummy grep; ac_word=$2
4225 echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_path_GREP+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
4253 GREP=$ac_cv_path_GREP
4255 if test -n "$GREP"; then
4256 echo "$as_me:$LINENO: result: $GREP" >&5
4257 echo "${ECHO_T}$GREP" >&6
4259 echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4263 # Extract the first word of "ar", so it can be a program name with args.
4264 set dummy ar; ac_word=$2
4265 echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267 if test "${ac_cv_path_AR+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
4295 if test -n "$AR"; then
4296 echo "$as_me:$LINENO: result: $AR" >&5
4297 echo "${ECHO_T}$AR" >&6
4299 echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4303 # Extract the first word of "find", so it can be a program name with args.
4304 set dummy find; ac_word=$2
4305 echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4307 if test "${ac_cv_path_FIND+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
4333 FIND=$ac_cv_path_FIND
4335 if test -n "$FIND"; then
4336 echo "$as_me:$LINENO: result: $FIND" >&5
4337 echo "${ECHO_T}$FIND" >&6
4339 echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4343 # Extract the first word of "compress", so it can be a program name with args.
4344 set dummy compress; ac_word=$2
4345 echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4347 if test "${ac_cv_path_COMPRESS+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
4373 COMPRESS=$ac_cv_path_COMPRESS
4375 if test -n "$COMPRESS"; then
4376 echo "$as_me:$LINENO: result: $COMPRESS" >&5
4377 echo "${ECHO_T}$COMPRESS" >&6
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4383 # Extract the first word of "basename", so it can be a program name with args.
4384 set dummy basename; ac_word=$2
4385 echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 if test "${ac_cv_path_BASENAME+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
4413 BASENAME=$ac_cv_path_BASENAME
4415 if test -n "$BASENAME"; then
4416 echo "$as_me:$LINENO: result: $BASENAME" >&5
4417 echo "${ECHO_T}$BASENAME" >&6
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4423 # Extract the first word of "dirname", so it can be a program name with args.
4424 set dummy dirname; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_path_DIRNAME+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
4453 DIRNAME=$ac_cv_path_DIRNAME
4455 if test -n "$DIRNAME"; then
4456 echo "$as_me:$LINENO: result: $DIRNAME" >&5
4457 echo "${ECHO_T}$DIRNAME" >&6
4459 echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6
4463 # Extract the first word of "sh", so it can be a program name with args.
4464 set dummy sh; ac_word=$2
4465 echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_path_SHELL+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
4493 SHELL=$ac_cv_path_SHELL
4495 if test -n "$SHELL"; then
4496 echo "$as_me:$LINENO: result: $SHELL" >&5
4497 echo "${ECHO_T}$SHELL" >&6
4499 echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4503 # Extract the first word of "ln", so it can be a program name with args.
4504 set dummy ln; ac_word=$2
4505 echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507 if test "${ac_cv_path_LN+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
4535 if test -n "$LN"; then
4536 echo "$as_me:$LINENO: result: $LN" >&5
4537 echo "${ECHO_T}$LN" >&6
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4543 # Extract the first word of "dot", so it can be a program name with args.
4544 set dummy dot; ac_word=$2
4545 echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_path_DOT+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
4575 if test -n "$DOT"; then
4576 echo "$as_me:$LINENO: result: $DOT" >&5
4577 echo "${ECHO_T}$DOT" >&6
4579 echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 # Check whether --enable-dev-mode or --disable-dev-mode was given.
4592 if test "${enable_dev_mode+set}" = set; then
4593 enableval="$enable_dev_mode"
4594 case "${enableval}" in
4595 y|ye|yes) AST_DEVMODE=yes ;;
4596 n|no) AST_DEVMODE=no ;;
4597 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
4598 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
4599 { (exit 1); exit 1; }; } ;;
4606 echo "$as_me:$LINENO: checking for egrep" >&5
4607 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4608 if test "${ac_cv_prog_egrep+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4612 then ac_cv_prog_egrep='grep -E'
4613 else ac_cv_prog_egrep='egrep'
4616 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4617 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4618 EGREP=$ac_cv_prog_egrep
4621 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4622 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4623 if test "${ac_cv_header_stdc+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err