2 # From configure.ac Revision: 25611 .
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 termcap_LIB termcap_INCLUDE PBX_LIBtermcap tinfo_LIB tinfo_INCLUDE PBX_LIBtinfo vorbis_LIB vorbis_INCLUDE PBX_LIBvorbis z_LIB z_INCLUDE PBX_LIBz EDITLINE_LIBS 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-termcap=PATH use Termcap files in PATH
886 --with-tinfo=PATH use Term Info files in PATH
887 --with-vorbis=PATH use Vorbis files in PATH
888 --with-z=PATH use zlib files in PATH
889 --with-ossaudio=PATH use Open Sound System files in PATH
890 --with-tonezone=PATH use Zaptel files in PATH
891 --with-gsm=PATH use libgsm files in PATH, or 'internal'
892 --with-pq=PATH use PostgreSQL files in PATH
893 --with-vpb=PATH use vpb files in PATH
894 --with-qt=PATH use Qt files in PATH
895 --with-kde=PATH use KDE files in PATH
896 --with-pwlib=PATH use PWLib files in PATH
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
905 CXX C++ compiler command
906 CXXFLAGS C++ compiler flags
908 CXXCPP C++ preprocessor
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
916 if test "$ac_init_help" = "recursive"; then
917 # If there are subdirs, report their specific --help.
919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920 test -d $ac_dir || continue
923 if test "$ac_dir" != .; then
924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925 # A "../" for each directory in $ac_dir_suffix.
926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 ac_dir_suffix= ac_top_builddir=
932 .) # No --srcdir option. We are building in place.
934 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 [\\/]* | ?:[\\/]* ) # Absolute path.
940 ac_srcdir=$srcdir$ac_dir_suffix;
941 ac_top_srcdir=$srcdir ;;
943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 # Do not use `cd foo && pwd` to compute absolute paths, because
948 # the directories may not exist.
950 .) ac_abs_builddir="$ac_dir";;
953 .) ac_abs_builddir=`pwd`;;
954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
955 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 case $ac_abs_builddir in
959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 case ${ac_top_builddir}. in
962 .) ac_abs_top_builddir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 case $ac_abs_builddir in
968 .) ac_abs_srcdir=$ac_srcdir;;
971 .) ac_abs_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 case $ac_abs_builddir in
977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 case $ac_top_srcdir in
980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 # Check for guested configure; otherwise get Cygnus style configure.
988 if test -f $ac_srcdir/configure.gnu; then
990 $SHELL $ac_srcdir/configure.gnu --help=recursive
991 elif test -f $ac_srcdir/configure; then
993 $SHELL $ac_srcdir/configure --help=recursive
994 elif test -f $ac_srcdir/configure.ac ||
995 test -f $ac_srcdir/configure.in; then
999 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 test -n "$ac_init_help" && exit 0
1006 if $ac_init_version; then
1009 Copyright (C) 2003 Free Software Foundation, Inc.
1010 This configure script is free software; the Free Software Foundation
1011 gives unlimited permission to copy, distribute and modify it.
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_must_keep_next=false
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 -* ) ac_must_keep_next=true ;;
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1140 # The following way of writing the cache mishandles newlines in values,
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1163 for ac_var in $ac_subst_vars
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -n "$ac_subst_files"; then
1177 for ac_var in $ac_subst_files
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1185 if test -s confdefs.h; then
1192 sed "/^$/d" confdefs.h | sort
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 # Predefined preprocessor variables.
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1275 # Check that the precious variables saved in the cache have kept the same
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1297 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1298 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1299 echo "$as_me: former value: $ac_old_val" >&2;}
1300 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1301 echo "$as_me: current value: $ac_new_val" >&2;}
1302 ac_cache_corrupted=:
1305 # Pass precious variables to config.status.
1306 if test "$ac_new_set" = set; then
1308 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310 *) ac_arg=$ac_var=$ac_new_val ;;
1312 case " $ac_configure_args " in
1313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1318 if $ac_cache_corrupted; then
1319 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323 { (exit 1); exit 1; }; }
1327 ac_cpp='$CPP $CPPFLAGS'
1328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1351 # cross-compile macros
1353 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1354 if test -f $ac_dir/install-sh; then
1356 ac_install_sh="$ac_aux_dir/install-sh -c"
1358 elif test -f $ac_dir/install.sh; then
1360 ac_install_sh="$ac_aux_dir/install.sh -c"
1362 elif test -f $ac_dir/shtool; then
1364 ac_install_sh="$ac_aux_dir/shtool install -c"
1368 if test -z "$ac_aux_dir"; then
1369 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1370 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1371 { (exit 1); exit 1; }; }
1373 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1374 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1375 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377 # Make sure we can run config.sub.
1378 $ac_config_sub sun4 >/dev/null 2>&1 ||
1379 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1380 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1381 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: checking build system type" >&5
1384 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1385 if test "${ac_cv_build+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 ac_cv_build_alias=$build_alias
1389 test -z "$ac_cv_build_alias" &&
1390 ac_cv_build_alias=`$ac_config_guess`
1391 test -z "$ac_cv_build_alias" &&
1392 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1393 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1394 { (exit 1); exit 1; }; }
1395 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1397 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1402 echo "${ECHO_T}$ac_cv_build" >&6
1404 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409 echo "$as_me:$LINENO: checking host system type" >&5
1410 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1411 if test "${ac_cv_host+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 ac_cv_host_alias=$host_alias
1415 test -z "$ac_cv_host_alias" &&
1416 ac_cv_host_alias=$ac_cv_build_alias
1417 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1424 echo "${ECHO_T}$ac_cv_host" >&6
1426 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:$LINENO: checking target system type" >&5
1432 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1433 if test "${ac_cv_target+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_target_alias=$target_alias
1437 test "x$ac_cv_target_alias" = "x" &&
1438 ac_cv_target_alias=$ac_cv_host_alias
1439 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1446 echo "${ECHO_T}$ac_cv_target" >&6
1447 target=$ac_cv_target
1448 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 # The aliases save the names the user supplied, while $host etc.
1454 # will get canonicalized.
1455 test -n "$target_alias" &&
1456 test "$program_prefix$program_suffix$program_transform_name" = \
1458 program_prefix=${target_alias}-
1460 # check existence of the package
1463 # specify output header file
1464 ac_config_headers="$ac_config_headers include/autoconfig.h"
1474 cat >>confdefs.h <<_ACEOF
1475 #define PBX_PLATFORM "${host}"
1479 cat >>confdefs.h <<_ACEOF
1480 #define PBX_CPU "${host_cpu}"
1484 cat >>confdefs.h <<_ACEOF
1485 #define PBX_VENDOR "${host_vendor}"
1489 cat >>confdefs.h <<_ACEOF
1490 #define PBX_OS "${host_os}"
1494 # export some useful defines
1495 PBX_PLATFORM=${host}
1497 PBX_VENDOR=${host_vendor}
1505 if test -n "$ac_tool_prefix"; then
1506 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
1507 set dummy ${ac_tool_prefix}uname; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_path_UNAME+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 UNAME=$ac_cv_path_UNAME
1537 if test -n "$UNAME"; then
1538 echo "$as_me:$LINENO: result: $UNAME" >&5
1539 echo "${ECHO_T}$UNAME" >&6
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1546 if test -z "$ac_cv_path_UNAME"; then
1548 # Extract the first word of "uname", so it can be a program name with args.
1549 set dummy uname; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 case $ac_pt_UNAME in
1557 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 test -z "$ac_cv_path_ac_pt_UNAME" && ac_cv_path_ac_pt_UNAME="No"
1578 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
1580 if test -n "$ac_pt_UNAME"; then
1581 echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
1582 echo "${ECHO_T}$ac_pt_UNAME" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1590 UNAME="$ac_cv_path_UNAME"
1593 if test ! x"${UNAME}" = xNo; then
1594 PBX_OSREV=$(${UNAME} -r)
1600 cygwin*|mingw*|windows*|winnt)
1602 cat >>confdefs.h <<\_ACEOF
1607 # this is ugly - KPF
1613 cat >>confdefs.h <<\_ACEOF
1621 cat >>confdefs.h <<\_ACEOF
1629 cat >>confdefs.h <<\_ACEOF
1633 PBX_OSTYPE="FreeBSD"
1637 cat >>confdefs.h <<\_ACEOF
1641 PBX_OSTYPE="OpenBSD"
1645 cat >>confdefs.h <<\_ACEOF
1653 cat >>confdefs.h <<\_ACEOF
1661 cat >>confdefs.h <<\_ACEOF
1670 # This needs to be before any macros that use the C compiler
1672 cat >>confdefs.h <<\_ACEOF
1673 #define _GNU_SOURCE 1
1681 # cross-compile checks
1682 if test x"${build}" != x"${host}";
1684 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1721 if test -z "$ac_cv_prog_CC"; then
1723 # Extract the first word of "gcc", so it can be a program name with args.
1724 set dummy gcc; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="gcc"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC=":"
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1764 if test -n "$ac_tool_prefix"; then
1765 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
1766 set dummy ${ac_tool_prefix}g++; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_CXX+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 if test -n "$CXX"; then
1773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_prog_CXX="${ac_tool_prefix}g++"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 if test -n "$CXX"; then
1793 echo "$as_me:$LINENO: result: $CXX" >&5
1794 echo "${ECHO_T}$CXX" >&6
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1801 if test -z "$ac_cv_prog_CXX"; then
1803 # Extract the first word of "g++", so it can be a program name with args.
1804 set dummy g++; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 if test -n "$ac_ct_CXX"; then
1811 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_ac_ct_CXX="g++"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX=":"
1830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1831 if test -n "$ac_ct_CXX"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1833 echo "${ECHO_T}$ac_ct_CXX" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1841 CXX="$ac_cv_prog_CXX"
1844 if test -n "$ac_tool_prefix"; then
1845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_RANLIB+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 if test -n "$RANLIB"; then
1853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 RANLIB=$ac_cv_prog_RANLIB
1872 if test -n "$RANLIB"; then
1873 echo "$as_me:$LINENO: result: $RANLIB" >&5
1874 echo "${ECHO_T}$RANLIB" >&6
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1881 if test -z "$ac_cv_prog_RANLIB"; then
1882 ac_ct_RANLIB=$RANLIB
1883 # Extract the first word of "ranlib", so it can be a program name with args.
1884 set dummy ranlib; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$ac_ct_RANLIB"; then
1891 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_ac_ct_RANLIB="ranlib"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1910 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1911 if test -n "$ac_ct_RANLIB"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1913 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1919 RANLIB=$ac_ct_RANLIB
1921 RANLIB="$ac_cv_prog_RANLIB"
1924 if test -n "$ac_tool_prefix"; then
1925 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1926 set dummy ${ac_tool_prefix}ar; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_AR+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 if test -n "$AR"; then
1933 ac_cv_prog_AR="$AR" # Let the user override the test.
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_AR="${ac_tool_prefix}ar"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 if test -n "$AR"; then
1953 echo "$as_me:$LINENO: result: $AR" >&5
1954 echo "${ECHO_T}$AR" >&6
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1961 if test -z "$ac_cv_prog_AR"; then
1963 # Extract the first word of "ar", so it can be a program name with args.
1964 set dummy ar; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$ac_ct_AR"; then
1971 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_ac_ct_AR="ar"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
1990 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1991 if test -n "$ac_ct_AR"; then
1992 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1993 echo "${ECHO_T}$ac_ct_AR" >&6
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
2005 if test x"${PBX_OSTYPE}" = xWin32;
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}nm; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_NM+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$NM"; then
2016 ac_cv_prog_NM="$NM" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_NM="${ac_tool_prefix}nm"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 if test -n "$NM"; then
2036 echo "$as_me:$LINENO: result: $NM" >&5
2037 echo "${ECHO_T}$NM" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$ac_cv_prog_NM"; then
2046 # Extract the first word of "nm", so it can be a program name with args.
2047 set dummy nm; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_NM"; then
2054 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_NM="nm"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
2073 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2074 if test -n "$ac_ct_NM"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2076 echo "${ECHO_T}$ac_ct_NM" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2087 if test -n "$ac_tool_prefix"; then
2088 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2089 set dummy ${ac_tool_prefix}windres; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_WINDRES+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$WINDRES"; then
2096 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 WINDRES=$ac_cv_prog_WINDRES
2115 if test -n "$WINDRES"; then
2116 echo "$as_me:$LINENO: result: $WINDRES" >&5
2117 echo "${ECHO_T}$WINDRES" >&6
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2124 if test -z "$ac_cv_prog_WINDRES"; then
2125 ac_ct_WINDRES=$WINDRES
2126 # Extract the first word of "windres", so it can be a program name with args.
2127 set dummy windres; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test -n "$ac_ct_WINDRES"; then
2134 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_prog_ac_ct_WINDRES="windres"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
2153 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2154 if test -n "$ac_ct_WINDRES"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2156 echo "${ECHO_T}$ac_ct_WINDRES" >&6
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2162 WINDRES=$ac_ct_WINDRES
2164 WINDRES="$ac_cv_prog_WINDRES"
2167 if test -n "$ac_tool_prefix"; then
2168 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$DLLWRAP"; then
2176 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 DLLWRAP=$ac_cv_prog_DLLWRAP
2195 if test -n "$DLLWRAP"; then
2196 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2197 echo "${ECHO_T}$DLLWRAP" >&6
2199 echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2204 if test -z "$ac_cv_prog_DLLWRAP"; then
2205 ac_ct_DLLWRAP=$DLLWRAP
2206 # Extract the first word of "dllwrap", so it can be a program name with args.
2207 set dummy dllwrap; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$ac_ct_DLLWRAP"; then
2214 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP=":"
2233 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2234 if test -n "$ac_ct_DLLWRAP"; then
2235 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2236 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
2238 echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2242 DLLWRAP=$ac_ct_DLLWRAP
2244 DLLWRAP="$ac_cv_prog_DLLWRAP"
2251 # Checks for programs.
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257 if test -n "$ac_tool_prefix"; then
2258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 if test -n "$CC"; then
2286 echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6
2289 echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2294 if test -z "$ac_cv_prog_CC"; then
2296 # Extract the first word of "gcc", so it can be a program name with args.
2297 set dummy gcc; ac_word=$2
2298 echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 if test -n "$ac_ct_CC"; then
2304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_ac_ct_CC="gcc"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323 if test -n "$ac_ct_CC"; then
2324 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2325 echo "${ECHO_T}$ac_ct_CC" >&6
2327 echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2336 if test -z "$CC"; then
2337 if test -n "$ac_tool_prefix"; then
2338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}cc; ac_word=$2
2340 echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_CC="${ac_tool_prefix}cc"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2374 if test -z "$ac_cv_prog_CC"; then
2376 # Extract the first word of "cc", so it can be a program name with args.
2377 set dummy cc; ac_word=$2
2378 echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 if test -n "$ac_ct_CC"; then
2384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_ac_ct_CC="cc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6
2407 echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2417 if test -z "$CC"; then
2418 # Extract the first word of "cc", so it can be a program name with args.
2419 set dummy cc; ac_word=$2
2420 echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422 if test "${ac_cv_prog_CC+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2437 ac_prog_rejected=yes
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 if test $ac_prog_rejected = yes; then
2448 # We found a bogon in the path, so make sure we never use it.
2449 set dummy $ac_cv_prog_CC
2451 if test $# != 0; then
2452 # We chose a different compiler from the bogus one.
2453 # However, it has the same basename, so the bogon will be chosen
2454 # first if we set CC to just the basename; use the full file name.
2456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2462 if test -n "$CC"; then
2463 echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2466 echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2471 if test -z "$CC"; then
2472 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2477 echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$CC"; then
2483 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 if test -n "$CC"; then
2503 echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6
2506 echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6
2510 test -n "$CC" && break
2513 if test -z "$CC"; then
2517 # Extract the first word of "$ac_prog", so it can be a program name with args.
2518 set dummy $ac_prog; ac_word=$2
2519 echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 if test -n "$ac_ct_CC"; then
2525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_ac_ct_CC="$ac_prog"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2544 if test -n "$ac_ct_CC"; then
2545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2546 echo "${ECHO_T}$ac_ct_CC" >&6
2548 echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2552 test -n "$ac_ct_CC" && break
2561 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; }
2567 # Provide some information about the compiler.
2568 echo "$as_me:$LINENO:" \
2569 "checking for C compiler version" >&5
2570 ac_compiler=`set X $ac_compile; echo $2`
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2572 (eval $ac_compiler --version </dev/null >&5) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2577 (eval $ac_compiler -v </dev/null >&5) 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }
2581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2582 (eval $ac_compiler -V </dev/null >&5) 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }
2587 cat >conftest.$ac_ext <<_ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h. */
2602 ac_clean_files_save=$ac_clean_files
2603 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2604 # Try to create an executable without -o first, disregard a.out.
2605 # It will help us diagnose broken compilers, and finding out an intuition
2607 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2608 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2609 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2610 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2611 (eval $ac_link_default) 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; then
2615 # Find the output, starting from the most likely. This scheme is
2616 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2619 # Be careful to initialize this variable, since it used to be cached.
2620 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2622 # b.out is created by i960 compilers.
2623 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2625 test -f "$ac_file" || continue
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2630 # This is the source file.
2633 # We found the default executable, but exeext='' is most
2637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2638 # FIXME: I believe we export ac_cv_exeext for Libtool,
2639 # but it would be cool to find out if it's true. Does anybody
2640 # maintain Libtool? --akim.
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: C compiler cannot create executables
2654 See \`config.log' for more details." >&2;}
2655 { (exit 77); exit 77; }; }
2658 ac_exeext=$ac_cv_exeext
2659 echo "$as_me:$LINENO: result: $ac_file" >&5
2660 echo "${ECHO_T}$ac_file" >&6
2662 # Check the compiler produces executables we can run. If not, either
2663 # the compiler is broken, or we cross compile.
2664 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2665 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2667 # If not cross compiling, check that we can run a simple program.
2668 if test "$cross_compiling" != yes; then
2669 if { ac_try='./$ac_file'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2677 if test "$cross_compiling" = maybe; then
2680 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2681 If you meant to cross compile, use \`--host'.
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: cannot run C compiled programs.
2684 If you meant to cross compile, use \`--host'.
2685 See \`config.log' for more details." >&2;}
2686 { (exit 1); exit 1; }; }
2690 echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2693 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2694 ac_clean_files=$ac_clean_files_save
2695 # Check the compiler produces executables we can run. If not, either
2696 # the compiler is broken, or we cross compile.
2697 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2698 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2699 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2700 echo "${ECHO_T}$cross_compiling" >&6
2702 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2703 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2705 (eval $ac_link) 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; then
2709 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2710 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2711 # work properly (i.e., refer to `conftest.exe'), while it won't with
2713 for ac_file in conftest.exe conftest conftest.*; do
2714 test -f "$ac_file" || continue
2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2717 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2724 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2725 See \`config.log' for more details." >&5
2726 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2727 See \`config.log' for more details." >&2;}
2728 { (exit 1); exit 1; }; }
2731 rm -f conftest$ac_cv_exeext
2732 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2733 echo "${ECHO_T}$ac_cv_exeext" >&6
2735 rm -f conftest.$ac_ext
2736 EXEEXT=$ac_cv_exeext
2738 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2739 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2740 if test "${ac_cv_objext+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2758 rm -f conftest.o conftest.obj
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; then
2764 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details." >&2;}
2779 { (exit 1); exit 1; }; }
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2784 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6
2786 OBJEXT=$ac_cv_objext
2788 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>conftest.er1
2815 grep -v '^ *+' conftest.er1 >conftest.err
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2843 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2844 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2845 GCC=`test $ac_compiler_gnu = yes && echo yes`
2846 ac_test_CFLAGS=${CFLAGS+set}
2847 ac_save_CFLAGS=$CFLAGS
2849 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2850 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2851 if test "${ac_cv_prog_cc_g+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2899 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2900 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2901 if test "$ac_test_CFLAGS" = set; then
2902 CFLAGS=$ac_save_CFLAGS
2903 elif test $ac_cv_prog_cc_g = yes; then
2904 if test "$GCC" = yes; then
2910 if test "$GCC" = yes; then
2916 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2917 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2918 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 ac_cv_prog_cc_stdc=no
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2931 #include <sys/types.h>
2932 #include <sys/stat.h>
2933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2934 struct buf { int x; };
2935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2936 static char *e (p, i)
2942 static char *f (char * (*g) (char **, int), char **p, ...)
2947 s = g (p, va_arg (v,int));
2952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2953 function prototypes and stuff, but not '\xHH' hex character constants.
2954 These don't provoke an error unfortunately, instead are silently treated
2955 as 'x'. The following induces an error, until -std1 is added to get
2956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2957 array size at least. It's necessary to write '\x00'==0 to get something
2958 that's true only with -std1. */
2959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2961 int test (int i, double x);
2962 struct s1 {int (*f) (int a);};
2963 struct s2 {int (*f) (double a);};
2964 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2970 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2975 # Don't try gcc -ansi; that turns off useful extensions and
2976 # breaks some systems' header files.
2977 # AIX -qlanglvl=ansi
2978 # Ultrix and OSF/1 -std1
2979 # HP-UX 10.20 and later -Ae
2980 # HP-UX older versions -Aa -D_HPUX_SOURCE
2981 # SVR4 -Xc -D__EXTENSIONS__
2982 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2984 CC="$ac_save_CC $ac_arg"
2985 rm -f conftest.$ac_objext
2986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2987 (eval $ac_compile) 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3006 ac_cv_prog_cc_stdc=$ac_arg
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3013 rm -f conftest.err conftest.$ac_objext
3015 rm -f conftest.$ac_ext conftest.$ac_objext
3020 case "x$ac_cv_prog_cc_stdc" in
3022 echo "$as_me:$LINENO: result: none needed" >&5
3023 echo "${ECHO_T}none needed" >&6 ;;
3025 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3026 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3027 CC="$CC $ac_cv_prog_cc_stdc" ;;
3030 # Some people use a C++ compiler to compile C. Since we use `exit',
3031 # in C++ we need to declare it. In case someone uses the same compiler
3032 # for both compiling C and C++ we need to have the C++ compiler decide
3033 # the declaration of exit, since it's the most demanding environment.
3034 cat >conftest.$ac_ext <<_ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 for ac_declaration in \
3062 'extern "C" void std::exit (int) throw (); using std::exit;' \
3063 'extern "C" void std::exit (int); using std::exit;' \
3064 'extern "C" void exit (int) throw ();' \
3065 'extern "C" void exit (int);' \
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3084 rm -f conftest.$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086 (eval $ac_compile) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130 (eval $ac_compile) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3158 if test -n "$ac_declaration"; then
3159 echo '#ifdef __cplusplus' >>confdefs.h
3160 echo $ac_declaration >>confdefs.h
3161 echo '#endif' >>confdefs.h
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 ac_cpp='$CXXCPP $CPPFLAGS'
3178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3181 if test -n "$ac_tool_prefix"; then
3182 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3186 echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188 if test "${ac_cv_prog_CXX+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 if test -n "$CXX"; then
3192 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test -n "$CXX"; then
3212 echo "$as_me:$LINENO: result: $CXX" >&5
3213 echo "${ECHO_T}$CXX" >&6
3215 echo "$as_me:$LINENO: result: no" >&5
3216 echo "${ECHO_T}no" >&6
3219 test -n "$CXX" && break
3222 if test -z "$CXX"; then
3224 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227 set dummy $ac_prog; ac_word=$2
3228 echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3230 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 if test -n "$ac_ct_CXX"; then
3234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_ac_ct_CXX="$ac_prog"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3253 if test -n "$ac_ct_CXX"; then
3254 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3255 echo "${ECHO_T}$ac_ct_CXX" >&6
3257 echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3261 test -n "$ac_ct_CXX" && break
3263 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3269 # Provide some information about the compiler.
3270 echo "$as_me:$LINENO:" \
3271 "checking for C++ compiler version" >&5
3272 ac_compiler=`set X $ac_compile; echo $2`
3273 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3274 (eval $ac_compiler --version </dev/null >&5) 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }
3278 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3279 (eval $ac_compiler -v </dev/null >&5) 2>&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }
3283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3284 (eval $ac_compiler -V </dev/null >&5) 2>&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }
3289 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3290 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3291 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3344 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3345 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3346 GXX=`test $ac_compiler_gnu = yes && echo yes`
3347 ac_test_CXXFLAGS=${CXXFLAGS+set}
3348 ac_save_CXXFLAGS=$CXXFLAGS
3350 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3351 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3352 if test "${ac_cv_prog_cxx_g+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_prog_cxx_g=yes
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3400 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3401 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3402 if test "$ac_test_CXXFLAGS" = set; then
3403 CXXFLAGS=$ac_save_CXXFLAGS
3404 elif test $ac_cv_prog_cxx_g = yes; then
3405 if test "$GXX" = yes; then
3411 if test "$GXX" = yes; then
3417 for ac_declaration in \
3419 'extern "C" void std::exit (int) throw (); using std::exit;' \
3420 'extern "C" void std::exit (int); using std::exit;' \
3421 'extern "C" void exit (int) throw ();' \
3422 'extern "C" void exit (int);' \
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; } &&
3456 { ac_try='test -s conftest.$ac_objext'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3485 rm -f conftest.$ac_objext
3486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515 if test -n "$ac_declaration"; then
3516 echo '#ifdef __cplusplus' >>confdefs.h
3517 echo $ac_declaration >>confdefs.h
3518 echo '#endif' >>confdefs.h
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3533 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3534 # On Suns, sometimes $CPP names a directory.
3535 if test -n "$CPP" && test -d "$CPP"; then
3538 if test -z "$CPP"; then
3539 if test "${ac_cv_prog_CPP+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 # Double quotes because CPP needs to be expanded
3543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3546 for ac_c_preproc_warn_flag in '' yes
3548 # Use a header file that comes with gcc, so configuring glibc
3549 # with a fresh cross-compiler works.
3550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551 # <limits.h> exists even on freestanding compilers.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error" is here to catch this case.
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 # include <limits.h>
3563 # include <assert.h>
3567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } >/dev/null; then
3575 if test -s conftest.err; then
3576 ac_cpp_err=$ac_c_preproc_warn_flag
3577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3584 if test -z "$ac_cpp_err"; then
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Broken: fails on valid input.
3593 rm -f conftest.err conftest.$ac_ext
3595 # OK, works on sane cases. Now check whether non-existent headers
3596 # can be detected and how.
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <ac_nonexistent.h>
3605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3622 if test -z "$ac_cpp_err"; then
3623 # Broken: success on invalid input.
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 # Passes both tests.
3633 rm -f conftest.err conftest.$ac_ext
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3650 echo "$as_me:$LINENO: result: $CPP" >&5
3651 echo "${ECHO_T}$CPP" >&6
3653 for ac_c_preproc_warn_flag in '' yes
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error" is here to catch this case.
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3668 # include <limits.h>
3670 # include <assert.h>
3674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } >/dev/null; then
3682 if test -s conftest.err; then
3683 ac_cpp_err=$ac_c_preproc_warn_flag
3684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3691 if test -z "$ac_cpp_err"; then
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 # Broken: fails on valid input.
3700 rm -f conftest.err conftest.$ac_ext
3702 # OK, works on sane cases. Now check whether non-existent headers
3703 # can be detected and how.
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #include <ac_nonexistent.h>
3712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3715 grep -v '^ *+' conftest.er1 >conftest.err
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev/null; then
3720 if test -s conftest.err; then
3721 ac_cpp_err=$ac_c_preproc_warn_flag
3722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3729 if test -z "$ac_cpp_err"; then
3730 # Broken: success on invalid input.
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 # Passes both tests.
3740 rm -f conftest.err conftest.$ac_ext
3743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744 rm -f conftest.err conftest.$ac_ext
3745 if $ac_preproc_ok; then
3748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&5
3750 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3751 See \`config.log' for more details." >&2;}
3752 { (exit 1); exit 1; }; }
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 ac_cpp='$CXXCPP $CPPFLAGS'
3763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3766 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3767 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3768 if test -z "$CXXCPP"; then
3769 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 # Double quotes because CXXCPP needs to be expanded
3773 for CXXCPP in "$CXX -E" "/lib/cpp"
3776 for ac_cxx_preproc_warn_flag in '' yes
3778 # Use a header file that comes with gcc, so configuring glibc
3779 # with a fresh cross-compiler works.
3780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781 # <limits.h> exists even on freestanding compilers.
3782 # On the NeXT, cc -E runs the code through the compiler's parser,
3783 # not just through cpp. "Syntax error" is here to catch this case.
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3791 # include <limits.h>
3793 # include <assert.h>
3797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } >/dev/null; then
3805 if test -s conftest.err; then
3806 ac_cpp_err=$ac_cxx_preproc_warn_flag
3807 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3814 if test -z "$ac_cpp_err"; then
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 # Broken: fails on valid input.
3823 rm -f conftest.err conftest.$ac_ext
3825 # OK, works on sane cases. Now check whether non-existent headers
3826 # can be detected and how.
3827 cat >conftest.$ac_ext <<_ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <ac_nonexistent.h>
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } >/dev/null; then
3843 if test -s conftest.err; then
3844 ac_cpp_err=$ac_cxx_preproc_warn_flag
3845 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3852 if test -z "$ac_cpp_err"; then
3853 # Broken: success on invalid input.
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 # Passes both tests.
3863 rm -f conftest.err conftest.$ac_ext
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then
3873 ac_cv_prog_CXXCPP=$CXXCPP
3876 CXXCPP=$ac_cv_prog_CXXCPP
3878 ac_cv_prog_CXXCPP=$CXXCPP
3880 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3881 echo "${ECHO_T}$CXXCPP" >&6
3883 for ac_cxx_preproc_warn_flag in '' yes
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error" is here to catch this case.
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3898 # include <limits.h>
3900 # include <assert.h>
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev/null; then
3912 if test -s conftest.err; then
3913 ac_cpp_err=$ac_cxx_preproc_warn_flag
3914 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3921 if test -z "$ac_cpp_err"; then
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 # Broken: fails on valid input.
3930 rm -f conftest.err conftest.$ac_ext
3932 # OK, works on sane cases. Now check whether non-existent headers
3933 # can be detected and how.
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <ac_nonexistent.h>
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3945 grep -v '^ *+' conftest.er1 >conftest.err
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } >/dev/null; then
3950 if test -s conftest.err; then
3951 ac_cpp_err=$ac_cxx_preproc_warn_flag
3952 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3959 if test -z "$ac_cpp_err"; then
3960 # Broken: success on invalid input.
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 # Passes both tests.
3970 rm -f conftest.err conftest.$ac_ext
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then
3978 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3979 See \`config.log' for more details." >&5
3980 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3981 See \`config.log' for more details." >&2;}
3982 { (exit 1); exit 1; }; }
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 for ac_prog in gawk mawk nawk awk
3993 # Extract the first word of "$ac_prog", so it can be a program name with args.
3994 set dummy $ac_prog; ac_word=$2
3995 echo "$as_me:$LINENO: checking for $ac_word" >&5
3996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997 if test "${ac_cv_prog_AWK+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 if test -n "$AWK"; then
4001 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_AWK="$ac_prog"
4011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 if test -n "$AWK"; then
4021 echo "$as_me:$LINENO: result: $AWK" >&5
4022 echo "${ECHO_T}$AWK" >&6
4024 echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4028 test -n "$AWK" && break
4031 # Find a good install program. We prefer a C program (faster),
4032 # so one script is as good as another. But avoid the broken or
4033 # incompatible versions:
4034 # SysV /etc/install, /usr/sbin/install
4035 # SunOS /usr/etc/install
4036 # IRIX /sbin/install
4038 # AmigaOS /C/install, which installs bootblocks on floppy discs
4039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4042 # OS/2's system install, which has a completely different semantic
4043 # ./install, which can be erroneously created by make from ./install.sh.
4044 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4045 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4046 if test -z "$INSTALL"; then
4047 if test "${ac_cv_path_install+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 test -z "$as_dir" && as_dir=.
4055 # Account for people who put trailing slashes in PATH elements.
4057 ./ | .// | /cC/* | \
4058 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4059 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4062 # OSF1 and SCO ODT 3.0 have their own names for install.
4063 # Don't use installbsd from OSF since it installs stuff as root
4065 for ac_prog in ginstall scoinst install; do
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4068 if test $ac_prog = install &&
4069 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4070 # AIX install. It has an incompatible calling convention.
4072 elif test $ac_prog = install &&
4073 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4074 # program-specific install script used by HP pwplus--don't use.
4077 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4089 if test "${ac_cv_path_install+set}" = set; then
4090 INSTALL=$ac_cv_path_install
4092 # As a last resort, use the slow shell script. We don't cache a
4093 # path for INSTALL within a source directory, because that will
4094 # break other packages using the cache if that directory is
4095 # removed, or if the path is relative.
4096 INSTALL=$ac_install_sh
4099 echo "$as_me:$LINENO: result: $INSTALL" >&5
4100 echo "${ECHO_T}$INSTALL" >&6
4102 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4103 # It thinks the first close brace ends the variable substitution.
4104 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4106 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4108 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4110 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4111 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4113 if test "$LN_S" = "ln -s"; then
4114 echo "$as_me:$LINENO: result: yes" >&5
4115 echo "${ECHO_T}yes" >&6
4117 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4118 echo "${ECHO_T}no, using $LN_S" >&6
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_RANLIB+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 if test -n "$RANLIB"; then
4130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 RANLIB=$ac_cv_prog_RANLIB
4149 if test -n "$RANLIB"; then
4150 echo "$as_me:$LINENO: result: $RANLIB" >&5
4151 echo "${ECHO_T}$RANLIB" >&6
4153 echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4158 if test -z "$ac_cv_prog_RANLIB"; then
4159 ac_ct_RANLIB=$RANLIB
4160 # Extract the first word of "ranlib", so it can be a program name with args.
4161 set dummy ranlib; ac_word=$2
4162 echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 if test -n "$ac_ct_RANLIB"; then
4168 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_ac_ct_RANLIB="ranlib"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4187 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4188 if test -n "$ac_ct_RANLIB"; then
4189 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4190 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4196 RANLIB=$ac_ct_RANLIB
4198 RANLIB="$ac_cv_prog_RANLIB"
4201 echo "$as_me:$LINENO: checking for GNU make" >&5
4202 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4203 if test "${GNU_MAKE+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 GNU_MAKE='Not Found' ;
4207 for a in make gmake gnumake ; do
4208 if test -z "$a" ; then continue ; fi ;
4209 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
4216 echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
4217 echo "${ECHO_T}$GNU_MAKE" >&6 ;
4218 if test "x$GNU_MAKE" = "xNot Found" ; then
4219 echo " *** Please install GNU make. It is required to build Asterisk!"
4225 # Extract the first word of "grep", so it can be a program name with args.
4226 set dummy grep; ac_word=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_path_GREP+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
4255 GREP=$ac_cv_path_GREP
4257 if test -n "$GREP"; then
4258 echo "$as_me:$LINENO: result: $GREP" >&5
4259 echo "${ECHO_T}$GREP" >&6
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4265 # Extract the first word of "ar", so it can be a program name with args.
4266 set dummy ar; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_path_AR+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
4297 if test -n "$AR"; then
4298 echo "$as_me:$LINENO: result: $AR" >&5
4299 echo "${ECHO_T}$AR" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 # Extract the first word of "find", so it can be a program name with args.
4306 set dummy find; ac_word=$2
4307 echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309 if test "${ac_cv_path_FIND+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
4335 FIND=$ac_cv_path_FIND
4337 if test -n "$FIND"; then
4338 echo "$as_me:$LINENO: result: $FIND" >&5
4339 echo "${ECHO_T}$FIND" >&6
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4345 # Extract the first word of "compress", so it can be a program name with args.
4346 set dummy compress; ac_word=$2
4347 echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349 if test "${ac_cv_path_COMPRESS+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
4365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
4375 COMPRESS=$ac_cv_path_COMPRESS
4377 if test -n "$COMPRESS"; then
4378 echo "$as_me:$LINENO: result: $COMPRESS" >&5
4379 echo "${ECHO_T}$COMPRESS" >&6
4381 echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6
4385 # Extract the first word of "basename", so it can be a program name with args.
4386 set dummy basename; ac_word=$2
4387 echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389 if test "${ac_cv_path_BASENAME+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
4415 BASENAME=$ac_cv_path_BASENAME
4417 if test -n "$BASENAME"; then
4418 echo "$as_me:$LINENO: result: $BASENAME" >&5
4419 echo "${ECHO_T}$BASENAME" >&6
4421 echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6
4425 # Extract the first word of "dirname", so it can be a program name with args.
4426 set dummy dirname; ac_word=$2
4427 echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 if test "${ac_cv_path_DIRNAME+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
4455 DIRNAME=$ac_cv_path_DIRNAME
4457 if test -n "$DIRNAME"; then
4458 echo "$as_me:$LINENO: result: $DIRNAME" >&5
4459 echo "${ECHO_T}$DIRNAME" >&6
4461 echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6
4465 # Extract the first word of "sh", so it can be a program name with args.
4466 set dummy sh; ac_word=$2
4467 echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_path_SHELL+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
4495 SHELL=$ac_cv_path_SHELL
4497 if test -n "$SHELL"; then
4498 echo "$as_me:$LINENO: result: $SHELL" >&5
4499 echo "${ECHO_T}$SHELL" >&6
4501 echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4505 # Extract the first word of "ln", so it can be a program name with args.
4506 set dummy ln; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_path_LN+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
4537 if test -n "$LN"; then
4538 echo "$as_me:$LINENO: result: $LN" >&5
4539 echo "${ECHO_T}$LN" >&6
4541 echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4545 # Extract the first word of "dot", so it can be a program name with args.
4546 set dummy dot; ac_word=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_path_DOT+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
4577 if test -n "$DOT"; then
4578 echo "$as_me:$LINENO: result: $DOT" >&5
4579 echo "${ECHO_T}$DOT" >&6
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593 # Check whether --enable-dev-mode or --disable-dev-mode was given.
4594 if test "${enable_dev_mode+set}" = set; then
4595 enableval="$enable_dev_mode"
4596 case "${enableval}" in
4597 y|ye|yes) AST_DEVMODE=yes ;;
4598 n|no) AST_DEVMODE=no ;;
4599 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
4600 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
4601 { (exit 1); exit 1; }; } ;;
4608 echo "$as_me:$LINENO: checking for egrep" >&5
4609 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4610 if test "${ac_cv_prog_egrep+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4614 then ac_cv_prog_egrep='grep -E'
4615 else ac_cv_prog_egrep='egrep'
4618 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4619 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4620 EGREP=$ac_cv_prog_egrep
4623 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4624 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4625 if test "${ac_cv_header_stdc+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>conftest.er1