commit the proper configure script
[asterisk/asterisk.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 25611 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
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.
9 #
10 # "Asterisk"
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
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
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
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 \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
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 ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
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
88
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
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
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
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
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
125     as_myself=$0
126   fi
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; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
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
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
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 |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
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; }; }
180
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).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >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
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
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'"
232
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'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
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`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
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}
269
270 # Identity of this package.
271 PACKAGE_NAME=
272 PACKAGE_TARNAME=
273 PACKAGE_VERSION=
274 PACKAGE_STRING=
275 PACKAGE_BUGREPORT=
276
277 ac_unique_file="asterisk"
278 ac_unique_file="asterisk.c"
279 ac_default_prefix=
280 # Factoring default headers for most tests.
281 ac_includes_default="\
282 #include <stdio.h>
283 #if HAVE_SYS_TYPES_H
284 # include <sys/types.h>
285 #endif
286 #if HAVE_SYS_STAT_H
287 # include <sys/stat.h>
288 #endif
289 #if STDC_HEADERS
290 # include <stdlib.h>
291 # include <stddef.h>
292 #else
293 # if HAVE_STDLIB_H
294 #  include <stdlib.h>
295 # endif
296 #endif
297 #if HAVE_STRING_H
298 # if !STDC_HEADERS && HAVE_MEMORY_H
299 #  include <memory.h>
300 # endif
301 # include <string.h>
302 #endif
303 #if HAVE_STRINGS_H
304 # include <strings.h>
305 #endif
306 #if HAVE_INTTYPES_H
307 # include <inttypes.h>
308 #else
309 # if HAVE_STDINT_H
310 #  include <stdint.h>
311 # endif
312 #endif
313 #if HAVE_UNISTD_H
314 # include <unistd.h>
315 #endif"
316
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'
318 ac_subst_files=''
319
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
339
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'
357
358 ac_prev=
359 for ac_option
360 do
361   # If the previous option needs an argument, assign it.
362   if test -n "$ac_prev"; then
363     eval "$ac_prev=\$ac_option"
364     ac_prev=
365     continue
366   fi
367
368   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370   # Accept the important Cygnus configure options, so we can diagnose typos.
371
372   case $ac_option in
373
374   -bindir | --bindir | --bindi | --bind | --bin | --bi)
375     ac_prev=bindir ;;
376   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377     bindir=$ac_optarg ;;
378
379   -build | --build | --buil | --bui | --bu)
380     ac_prev=build_alias ;;
381   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382     build_alias=$ac_optarg ;;
383
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 ;;
390
391   --config-cache | -C)
392     cache_file=config.cache ;;
393
394   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395     ac_prev=datadir ;;
396   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397   | --da=*)
398     datadir=$ac_optarg ;;
399
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" ;;
408
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'`
416     case $ac_option in
417       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418       *) ac_optarg=yes ;;
419     esac
420     eval "enable_$ac_feature='$ac_optarg'" ;;
421
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 ;;
430
431   -gas | --gas | --ga | --g)
432     # Obsolete; use --with-gas.
433     with_gas=yes ;;
434
435   -help | --help | --hel | --he | -h)
436     ac_init_help=long ;;
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 ;;
441
442   -host | --host | --hos | --ho)
443     ac_prev=host_alias ;;
444   -host=* | --host=* | --hos=* | --ho=*)
445     host_alias=$ac_optarg ;;
446
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 ;;
453
454   -infodir | --infodir | --infodi | --infod | --info | --inf)
455     ac_prev=infodir ;;
456   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457     infodir=$ac_optarg ;;
458
459   -libdir | --libdir | --libdi | --libd)
460     ac_prev=libdir ;;
461   -libdir=* | --libdir=* | --libdi=* | --libd=*)
462     libdir=$ac_optarg ;;
463
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 ;;
470
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 ;;
479
480   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481     ac_prev=mandir ;;
482   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483     mandir=$ac_optarg ;;
484
485   -nfp | --nfp | --nf)
486     # Obsolete; use --without-fp.
487     with_fp=no ;;
488
489   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490   | --no-cr | --no-c | -n)
491     no_create=yes ;;
492
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495     no_recursion=yes ;;
496
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 ;;
505
506   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507     ac_prev=prefix ;;
508   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509     prefix=$ac_optarg ;;
510
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 ;;
517
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 ;;
524
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 ;;
541
542   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543   | -silent | --silent | --silen | --sile | --sil)
544     silent=yes ;;
545
546   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547     ac_prev=sbindir ;;
548   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549   | --sbi=* | --sb=*)
550     sbindir=$ac_optarg ;;
551
552   -sharedstatedir | --sharedstatedir | --sharedstatedi \
553   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554   | --sharedst | --shareds | --shared | --share | --shar \
555   | --sha | --sh)
556     ac_prev=sharedstatedir ;;
557   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560   | --sha=* | --sh=*)
561     sharedstatedir=$ac_optarg ;;
562
563   -site | --site | --sit)
564     ac_prev=site ;;
565   -site=* | --site=* | --sit=*)
566     site=$ac_optarg ;;
567
568   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569     ac_prev=srcdir ;;
570   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571     srcdir=$ac_optarg ;;
572
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 ;;
579
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 ;;
584
585   -v | -verbose | --verbose | --verbos | --verbo | --verb)
586     verbose=yes ;;
587
588   -version | --version | --versio | --versi | --vers | -V)
589     ac_init_version=: ;;
590
591   -with-* | --with-*)
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'`
598     case $ac_option in
599       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600       *) ac_optarg=yes ;;
601     esac
602     eval "with_$ac_package='$ac_optarg'" ;;
603
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" ;;
612
613   --x)
614     # Obsolete; use --with-x.
615     with_x=yes ;;
616
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 ;;
623
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 ;;
630
631   -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633    { (exit 1); exit 1; }; }
634     ;;
635
636   *=*)
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'"
644     export $ac_envvar ;;
645
646   *)
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}
652     ;;
653
654   esac
655 done
656
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; }; }
661 fi
662
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
665 do
666   eval ac_val=$`echo $ac_var`
667   case $ac_val in
668     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670    { (exit 1); exit 1; }; };;
671   esac
672 done
673
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
677 do
678   eval ac_val=$`echo $ac_var`
679   case $ac_val in
680     [\\/$]* | ?:[\\/]* ) ;;
681     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682    { (exit 1); exit 1; }; };;
683   esac
684 done
685
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.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
692
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
700     cross_compiling=yes
701   fi
702 fi
703
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707 test "$silent" = yes && exec 6>/dev/null
708
709
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 ||
720 echo X"$0" |
721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723           /^X\(\/\/\)$/{ s//\1/; q; }
724           /^X\(\/\).*/{ s//\1/; q; }
725           s/.*/./; q'`
726   srcdir=$ac_confdir
727   if test ! -r $srcdir/$ac_unique_file; then
728     srcdir=..
729   fi
730 else
731   ac_srcdir_defaulted=no
732 fi
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; }; }
737   else
738     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739    { (exit 1); exit 1; }; }
740   fi
741 fi
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}
759 ac_env_CC_value=$CC
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
790
791 #
792 # Report the --help message.
793 #
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.
797   cat <<_ACEOF
798 \`configure' configures this package to adapt to many kinds of systems.
799
800 Usage: $0 [OPTION]... [VAR=VALUE]...
801
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.
804
805 Defaults for the options are specified in brackets.
806
807 Configuration:
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 \`..']
817
818 _ACEOF
819
820   cat <<_ACEOF
821 Installation directories:
822   --prefix=PREFIX         install architecture-independent files in PREFIX
823                           [$ac_default_prefix]
824   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
825                           [PREFIX]
826
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'.
831
832 For better control, use the options below.
833
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]
847 _ACEOF
848
849   cat <<\_ACEOF
850
851 System types:
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]
855 _ACEOF
856 fi
857
858 if test -n "$ac_init_help"; then
859
860   cat <<\_ACEOF
861
862 Optional Features:
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
867
868 Optional Packages:
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
897
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
907   CPP         C preprocessor
908   CXXCPP      C++ preprocessor
909
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.
912
913 _ACEOF
914 fi
915
916 if test "$ac_init_help" = "recursive"; then
917   # If there are subdirs, report their specific --help.
918   ac_popdir=`pwd`
919   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920     test -d $ac_dir || continue
921     ac_builddir=.
922
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'`
927 else
928   ac_dir_suffix= ac_top_builddir=
929 fi
930
931 case $srcdir in
932   .)  # No --srcdir option.  We are building in place.
933     ac_srcdir=.
934     if test -z "$ac_top_builddir"; then
935        ac_top_srcdir=.
936     else
937        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
938     fi ;;
939   [\\/]* | ?:[\\/]* )  # Absolute path.
940     ac_srcdir=$srcdir$ac_dir_suffix;
941     ac_top_srcdir=$srcdir ;;
942   *) # Relative path.
943     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944     ac_top_srcdir=$ac_top_builddir$srcdir ;;
945 esac
946
947 # Do not use `cd foo && pwd` to compute absolute paths, because
948 # the directories may not exist.
949 case `pwd` in
950 .) ac_abs_builddir="$ac_dir";;
951 *)
952   case "$ac_dir" in
953   .) ac_abs_builddir=`pwd`;;
954   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
955   *) ac_abs_builddir=`pwd`/"$ac_dir";;
956   esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
960 *)
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}.;;
965   esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_srcdir=$ac_srcdir;;
969 *)
970   case $ac_srcdir in
971   .) ac_abs_srcdir=$ac_abs_builddir;;
972   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
973   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
978 *)
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;;
983   esac;;
984 esac
985
986     cd $ac_dir
987     # Check for guested configure; otherwise get Cygnus style configure.
988     if test -f $ac_srcdir/configure.gnu; then
989       echo
990       $SHELL $ac_srcdir/configure.gnu  --help=recursive
991     elif test -f $ac_srcdir/configure; then
992       echo
993       $SHELL $ac_srcdir/configure  --help=recursive
994     elif test -f $ac_srcdir/configure.ac ||
995            test -f $ac_srcdir/configure.in; then
996       echo
997       $ac_configure --help
998     else
999       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000     fi
1001     cd "$ac_popdir"
1002   done
1003 fi
1004
1005 test -n "$ac_init_help" && exit 0
1006 if $ac_init_version; then
1007   cat <<\_ACEOF
1008
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.
1012
1013 "Asterisk"
1014 _ACEOF
1015   exit 0
1016 fi
1017 exec 5>config.log
1018 cat >&5 <<_ACEOF
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1021
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59.  Invocation command line was
1024
1025   $ $0 $@
1026
1027 _ACEOF
1028 {
1029 cat <<_ASUNAME
1030 ## --------- ##
1031 ## Platform. ##
1032 ## --------- ##
1033
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`
1039
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`
1042
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`
1050
1051 _ASUNAME
1052
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054 for as_dir in $PATH
1055 do
1056   IFS=$as_save_IFS
1057   test -z "$as_dir" && as_dir=.
1058   echo "PATH: $as_dir"
1059 done
1060
1061 } >&5
1062
1063 cat >&5 <<_ACEOF
1064
1065
1066 ## ----------- ##
1067 ## Core tests. ##
1068 ## ----------- ##
1069
1070 _ACEOF
1071
1072
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.
1078 ac_configure_args=
1079 ac_configure_args0=
1080 ac_configure_args1=
1081 ac_sep=
1082 ac_must_keep_next=false
1083 for ac_pass in 1 2
1084 do
1085   for ac_arg
1086   do
1087     case $ac_arg in
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)
1091       continue ;;
1092     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094     esac
1095     case $ac_pass in
1096     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097     2)
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.
1101       else
1102         case $ac_arg in
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 ;;
1109             esac
1110             ;;
1111           -* ) ac_must_keep_next=true ;;
1112         esac
1113       fi
1114       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115       # Get rid of the leading space.
1116       ac_sep=" "
1117       ;;
1118     esac
1119   done
1120 done
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; }
1123
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.
1131   {
1132     echo
1133
1134     cat <<\_ASBOX
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1138 _ASBOX
1139     echo
1140     # The following way of writing the cache mishandles newlines in values,
1141 {
1142   (set) 2>&1 |
1143     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144     *ac_space=\ *)
1145       sed -n \
1146         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148       ;;
1149     *)
1150       sed -n \
1151         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152       ;;
1153     esac;
1154 }
1155     echo
1156
1157     cat <<\_ASBOX
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1161 _ASBOX
1162     echo
1163     for ac_var in $ac_subst_vars
1164     do
1165       eval ac_val=$`echo $ac_var`
1166       echo "$ac_var='"'"'$ac_val'"'"'"
1167     done | sort
1168     echo
1169
1170     if test -n "$ac_subst_files"; then
1171       cat <<\_ASBOX
1172 ## ------------- ##
1173 ## Output files. ##
1174 ## ------------- ##
1175 _ASBOX
1176       echo
1177       for ac_var in $ac_subst_files
1178       do
1179         eval ac_val=$`echo $ac_var`
1180         echo "$ac_var='"'"'$ac_val'"'"'"
1181       done | sort
1182       echo
1183     fi
1184
1185     if test -s confdefs.h; then
1186       cat <<\_ASBOX
1187 ## ----------- ##
1188 ## confdefs.h. ##
1189 ## ----------- ##
1190 _ASBOX
1191       echo
1192       sed "/^$/d" confdefs.h | sort
1193       echo
1194     fi
1195     test "$ac_signal" != 0 &&
1196       echo "$as_me: caught signal $ac_signal"
1197     echo "$as_me: exit $exit_status"
1198   } >&5
1199   rm -f core *.core &&
1200   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201     exit $exit_status
1202      ' 0
1203 for ac_signal in 1 2 13 15; do
1204   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205 done
1206 ac_signal=0
1207
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.
1211 echo >confdefs.h
1212
1213 # Predefined preprocessor variables.
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237 _ACEOF
1238
1239
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"
1245   else
1246     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247   fi
1248 fi
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
1254     . "$ac_site_file"
1255   fi
1256 done
1257
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;}
1264     case $cache_file in
1265       [\\/]* | ?:[\\/]* ) . $cache_file;;
1266       *)                      . ./$cache_file;;
1267     esac
1268   fi
1269 else
1270   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1272   >$cache_file
1273 fi
1274
1275 # Check that the precious variables saved in the cache have kept the same
1276 # value.
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
1285     set,)
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=: ;;
1289     ,set)
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=: ;;
1293     ,);;
1294     *)
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=:
1303       fi;;
1304   esac
1305   # Pass precious variables to config.status.
1306   if test "$ac_new_set" = set; then
1307     case $ac_new_val in
1308     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310     *) ac_arg=$ac_var=$ac_new_val ;;
1311     esac
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'" ;;
1315     esac
1316   fi
1317 done
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; }; }
1324 fi
1325
1326 ac_ext=c
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
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351 # cross-compile macros
1352 ac_aux_dir=
1353 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1354   if test -f $ac_dir/install-sh; then
1355     ac_aux_dir=$ac_dir
1356     ac_install_sh="$ac_aux_dir/install-sh -c"
1357     break
1358   elif test -f $ac_dir/install.sh; then
1359     ac_aux_dir=$ac_dir
1360     ac_install_sh="$ac_aux_dir/install.sh -c"
1361     break
1362   elif test -f $ac_dir/shtool; then
1363     ac_aux_dir=$ac_dir
1364     ac_install_sh="$ac_aux_dir/shtool install -c"
1365     break
1366   fi
1367 done
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; }; }
1372 fi
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.
1376
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; }; }
1382
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
1387 else
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; }; }
1399
1400 fi
1401 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1402 echo "${ECHO_T}$ac_cv_build" >&6
1403 build=$ac_cv_build
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/'`
1407
1408
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
1413 else
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; }; }
1421
1422 fi
1423 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1424 echo "${ECHO_T}$ac_cv_host" >&6
1425 host=$ac_cv_host
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/'`
1429
1430
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
1435 else
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; }; }
1443
1444 fi
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/'`
1451
1452
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" = \
1457     NONENONEs,x,x, &&
1458   program_prefix=${target_alias}-
1459
1460 # check existence of the package
1461
1462
1463 # specify output header file
1464           ac_config_headers="$ac_config_headers include/autoconfig.h"
1465
1466
1467
1468
1469
1470
1471
1472 ### ** Platform.
1473
1474 cat >>confdefs.h <<_ACEOF
1475 #define PBX_PLATFORM "${host}"
1476 _ACEOF
1477
1478
1479 cat >>confdefs.h <<_ACEOF
1480 #define PBX_CPU "${host_cpu}"
1481 _ACEOF
1482
1483
1484 cat >>confdefs.h <<_ACEOF
1485 #define PBX_VENDOR "${host_vendor}"
1486 _ACEOF
1487
1488
1489 cat >>confdefs.h <<_ACEOF
1490 #define PBX_OS "${host_os}"
1491 _ACEOF
1492
1493
1494 # export some useful defines
1495 PBX_PLATFORM=${host}
1496 PBX_CPU=${host_cpu}
1497 PBX_VENDOR=${host_vendor}
1498 PBX_OS=${host_os}
1499
1500
1501
1502
1503
1504 #  check for uname
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
1512 else
1513   case $UNAME in
1514   [\\/]* | ?:[\\/]*)
1515   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
1516   ;;
1517   *)
1518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1520 do
1521   IFS=$as_save_IFS
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
1527     break 2
1528   fi
1529 done
1530 done
1531
1532   ;;
1533 esac
1534 fi
1535 UNAME=$ac_cv_path_UNAME
1536
1537 if test -n "$UNAME"; then
1538   echo "$as_me:$LINENO: result: $UNAME" >&5
1539 echo "${ECHO_T}$UNAME" >&6
1540 else
1541   echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1543 fi
1544
1545 fi
1546 if test -z "$ac_cv_path_UNAME"; then
1547   ac_pt_UNAME=$UNAME
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
1554 else
1555   case $ac_pt_UNAME in
1556   [\\/]* | ?:[\\/]*)
1557   ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
1558   ;;
1559   *)
1560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1562 do
1563   IFS=$as_save_IFS
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
1569     break 2
1570   fi
1571 done
1572 done
1573
1574   test -z "$ac_cv_path_ac_pt_UNAME" && ac_cv_path_ac_pt_UNAME="No"
1575   ;;
1576 esac
1577 fi
1578 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
1579
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
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588   UNAME=$ac_pt_UNAME
1589 else
1590   UNAME="$ac_cv_path_UNAME"
1591 fi
1592
1593 if test ! x"${UNAME}" = xNo; then
1594    PBX_OSREV=$(${UNAME} -r)
1595 fi
1596
1597
1598 # guest OS type
1599 case "${host}" in
1600   cygwin*|mingw*|windows*|winnt)
1601
1602 cat >>confdefs.h <<\_ACEOF
1603 #define Win32 1
1604 _ACEOF
1605
1606     PBX_OSTYPE="CYGWIN"
1607 # this is ugly - KPF
1608   OSISWIN32=1
1609
1610     ;;
1611   *linux*)
1612
1613 cat >>confdefs.h <<\_ACEOF
1614 #define Linux 1
1615 _ACEOF
1616
1617     PBX_OSTYPE="Linux"
1618     ;;
1619   *netbsd*)
1620
1621 cat >>confdefs.h <<\_ACEOF
1622 #define NetBSD 1
1623 _ACEOF
1624
1625     PBX_OSTYPE="NetBSD"
1626     ;;
1627   *freebsd*)
1628
1629 cat >>confdefs.h <<\_ACEOF
1630 #define FreeBSD 1
1631 _ACEOF
1632
1633     PBX_OSTYPE="FreeBSD"
1634     ;;
1635   *openbsd*)
1636
1637 cat >>confdefs.h <<\_ACEOF
1638 #define OpenBSD 1
1639 _ACEOF
1640
1641     PBX_OSTYPE="OpenBSD"
1642     ;;
1643   *sun*)
1644
1645 cat >>confdefs.h <<\_ACEOF
1646 #define SunOS 1
1647 _ACEOF
1648
1649     PBX_OSTYPE="SunOS"
1650     ;;
1651   *darwin*)
1652
1653 cat >>confdefs.h <<\_ACEOF
1654 #define Darwin 1
1655 _ACEOF
1656
1657     PBX_OSTYPE="Darwin"
1658     ;;
1659   *)
1660
1661 cat >>confdefs.h <<\_ACEOF
1662 #define Unix 1
1663 _ACEOF
1664
1665     PBX_OSTYPE="Unix"
1666    ;;
1667 esac
1668
1669
1670 # This needs to be before any macros that use the C compiler
1671
1672 cat >>confdefs.h <<\_ACEOF
1673 #define _GNU_SOURCE 1
1674 _ACEOF
1675
1676
1677
1678
1679
1680
1681 # cross-compile checks
1682 if test x"${build}" != x"${host}";
1683 then
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
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
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
1704     break 2
1705   fi
1706 done
1707 done
1708
1709 fi
1710 fi
1711 CC=$ac_cv_prog_CC
1712 if test -n "$CC"; then
1713   echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1715 else
1716   echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1718 fi
1719
1720 fi
1721 if test -z "$ac_cv_prog_CC"; then
1722   ac_ct_CC=$CC
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
1729 else
1730   if test -n "$ac_ct_CC"; then
1731   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736   IFS=$as_save_IFS
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
1742     break 2
1743   fi
1744 done
1745 done
1746
1747   test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC=":"
1748 fi
1749 fi
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
1754 else
1755   echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 fi
1758
1759   CC=$ac_ct_CC
1760 else
1761   CC="$ac_cv_prog_CC"
1762 fi
1763
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
1771 else
1772   if test -n "$CXX"; then
1773   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778   IFS=$as_save_IFS
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
1784     break 2
1785   fi
1786 done
1787 done
1788
1789 fi
1790 fi
1791 CXX=$ac_cv_prog_CXX
1792 if test -n "$CXX"; then
1793   echo "$as_me:$LINENO: result: $CXX" >&5
1794 echo "${ECHO_T}$CXX" >&6
1795 else
1796   echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1798 fi
1799
1800 fi
1801 if test -z "$ac_cv_prog_CXX"; then
1802   ac_ct_CXX=$CXX
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
1809 else
1810   if test -n "$ac_ct_CXX"; then
1811   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1815 do
1816   IFS=$as_save_IFS
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
1822     break 2
1823   fi
1824 done
1825 done
1826
1827   test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX=":"
1828 fi
1829 fi
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
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839   CXX=$ac_ct_CXX
1840 else
1841   CXX="$ac_cv_prog_CXX"
1842 fi
1843
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
1851 else
1852   if test -n "$RANLIB"; then
1853   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
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
1864     break 2
1865   fi
1866 done
1867 done
1868
1869 fi
1870 fi
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
1875 else
1876   echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 fi
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
1889 else
1890   if test -n "$ac_ct_RANLIB"; then
1891   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
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
1902     break 2
1903   fi
1904 done
1905 done
1906
1907   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1908 fi
1909 fi
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
1914 else
1915   echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919   RANLIB=$ac_ct_RANLIB
1920 else
1921   RANLIB="$ac_cv_prog_RANLIB"
1922 fi
1923
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
1931 else
1932   if test -n "$AR"; then
1933   ac_cv_prog_AR="$AR" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
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
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 AR=$ac_cv_prog_AR
1952 if test -n "$AR"; then
1953   echo "$as_me:$LINENO: result: $AR" >&5
1954 echo "${ECHO_T}$AR" >&6
1955 else
1956   echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960 fi
1961 if test -z "$ac_cv_prog_AR"; then
1962   ac_ct_AR=$AR
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
1969 else
1970   if test -n "$ac_ct_AR"; then
1971   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
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
1982     break 2
1983   fi
1984 done
1985 done
1986
1987   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
1988 fi
1989 fi
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
1994 else
1995   echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1997 fi
1998
1999   AR=$ac_ct_AR
2000 else
2001   AR="$ac_cv_prog_AR"
2002 fi
2003
2004
2005    if test x"${PBX_OSTYPE}" = xWin32;
2006    then
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
2014 else
2015   if test -n "$NM"; then
2016   ac_cv_prog_NM="$NM" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
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
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 NM=$ac_cv_prog_NM
2035 if test -n "$NM"; then
2036   echo "$as_me:$LINENO: result: $NM" >&5
2037 echo "${ECHO_T}$NM" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 fi
2044 if test -z "$ac_cv_prog_NM"; then
2045   ac_ct_NM=$NM
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
2052 else
2053   if test -n "$ac_ct_NM"; then
2054   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
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
2065     break 2
2066   fi
2067 done
2068 done
2069
2070   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
2071 fi
2072 fi
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
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   NM=$ac_ct_NM
2083 else
2084   NM="$ac_cv_prog_NM"
2085 fi
2086
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
2094 else
2095   if test -n "$WINDRES"; then
2096   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
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
2107     break 2
2108   fi
2109 done
2110 done
2111
2112 fi
2113 fi
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
2118 else
2119   echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2121 fi
2122
2123 fi
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
2132 else
2133   if test -n "$ac_ct_WINDRES"; then
2134   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
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
2145     break 2
2146   fi
2147 done
2148 done
2149
2150   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
2151 fi
2152 fi
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
2157 else
2158   echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2160 fi
2161
2162   WINDRES=$ac_ct_WINDRES
2163 else
2164   WINDRES="$ac_cv_prog_WINDRES"
2165 fi
2166
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
2174 else
2175   if test -n "$DLLWRAP"; then
2176   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
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
2187     break 2
2188   fi
2189 done
2190 done
2191
2192 fi
2193 fi
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
2198 else
2199   echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203 fi
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
2212 else
2213   if test -n "$ac_ct_DLLWRAP"; then
2214   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
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
2225     break 2
2226   fi
2227 done
2228 done
2229
2230   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP=":"
2231 fi
2232 fi
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
2237 else
2238   echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2240 fi
2241
2242   DLLWRAP=$ac_ct_DLLWRAP
2243 else
2244   DLLWRAP="$ac_cv_prog_DLLWRAP"
2245 fi
2246
2247    fi
2248    crossCompile="Yes"
2249 fi
2250
2251 # Checks for programs.
2252 ac_ext=c
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
2264 else
2265   if test -n "$CC"; then
2266   ac_cv_prog_CC="$CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
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
2277     break 2
2278   fi
2279 done
2280 done
2281
2282 fi
2283 fi
2284 CC=$ac_cv_prog_CC
2285 if test -n "$CC"; then
2286   echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6
2288 else
2289   echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292
2293 fi
2294 if test -z "$ac_cv_prog_CC"; then
2295   ac_ct_CC=$CC
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
2302 else
2303   if test -n "$ac_ct_CC"; then
2304   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
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
2315     break 2
2316   fi
2317 done
2318 done
2319
2320 fi
2321 fi
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
2326 else
2327   echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2329 fi
2330
2331   CC=$ac_ct_CC
2332 else
2333   CC="$ac_cv_prog_CC"
2334 fi
2335
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
2344 else
2345   if test -n "$CC"; then
2346   ac_cv_prog_CC="$CC" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351   IFS=$as_save_IFS
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
2357     break 2
2358   fi
2359 done
2360 done
2361
2362 fi
2363 fi
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366   echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6
2368 else
2369   echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2371 fi
2372
2373 fi
2374 if test -z "$ac_cv_prog_CC"; then
2375   ac_ct_CC=$CC
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
2382 else
2383   if test -n "$ac_ct_CC"; then
2384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
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
2395     break 2
2396   fi
2397 done
2398 done
2399
2400 fi
2401 fi
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
2406 else
2407   echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2409 fi
2410
2411   CC=$ac_ct_CC
2412 else
2413   CC="$ac_cv_prog_CC"
2414 fi
2415
2416 fi
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
2424 else
2425   if test -n "$CC"; then
2426   ac_cv_prog_CC="$CC" # Let the user override the test.
2427 else
2428   ac_prog_rejected=no
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432   IFS=$as_save_IFS
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
2438        continue
2439      fi
2440     ac_cv_prog_CC="cc"
2441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442     break 2
2443   fi
2444 done
2445 done
2446
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
2450   shift
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.
2455     shift
2456     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457   fi
2458 fi
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463   echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2465 else
2466   echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2468 fi
2469
2470 fi
2471 if test -z "$CC"; then
2472   if test -n "$ac_tool_prefix"; then
2473   for ac_prog in cl
2474   do
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
2481 else
2482   if test -n "$CC"; then
2483   ac_cv_prog_CC="$CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
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
2494     break 2
2495   fi
2496 done
2497 done
2498
2499 fi
2500 fi
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503   echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6
2505 else
2506   echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6
2508 fi
2509
2510     test -n "$CC" && break
2511   done
2512 fi
2513 if test -z "$CC"; then
2514   ac_ct_CC=$CC
2515   for ac_prog in cl
2516 do
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
2523 else
2524   if test -n "$ac_ct_CC"; then
2525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
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
2536     break 2
2537   fi
2538 done
2539 done
2540
2541 fi
2542 fi
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
2547 else
2548   echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2550 fi
2551
2552   test -n "$ac_ct_CC" && break
2553 done
2554
2555   CC=$ac_ct_CC
2556 fi
2557
2558 fi
2559
2560
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; }; }
2566
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
2573   ac_status=$?
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
2578   ac_status=$?
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
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }
2586
2587 cat >conftest.$ac_ext <<_ACEOF
2588 /* confdefs.h.  */
2589 _ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h.  */
2593
2594 int
2595 main ()
2596 {
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
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
2606 # of exeext.
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
2612   ac_status=$?
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
2617 # resort.
2618
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.
2621 ac_cv_exeext=
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
2624 do
2625   test -f "$ac_file" || continue
2626   case $ac_file in
2627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2628         ;;
2629     conftest.$ac_ext )
2630         # This is the source file.
2631         ;;
2632     [ab].out )
2633         # We found the default executable, but exeext='' is most
2634         # certainly right.
2635         break;;
2636     *.* )
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.
2641         export ac_cv_exeext
2642         break;;
2643     * )
2644         break;;
2645   esac
2646 done
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
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; }; }
2656 fi
2657
2658 ac_exeext=$ac_cv_exeext
2659 echo "$as_me:$LINENO: result: $ac_file" >&5
2660 echo "${ECHO_T}$ac_file" >&6
2661
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
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; }; then
2675     cross_compiling=no
2676   else
2677     if test "$cross_compiling" = maybe; then
2678         cross_compiling=yes
2679     else
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; }; }
2687     fi
2688   fi
2689 fi
2690 echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2692
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
2701
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
2706   ac_status=$?
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
2712 # `rm'.
2713 for ac_file in conftest.exe conftest conftest.*; do
2714   test -f "$ac_file" || continue
2715   case $ac_file in
2716     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2717     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718           export ac_cv_exeext
2719           break;;
2720     * ) break;;
2721   esac
2722 done
2723 else
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; }; }
2729 fi
2730
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
2734
2735 rm -f conftest.$ac_ext
2736 EXEEXT=$ac_cv_exeext
2737 ac_exeext=$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
2742 else
2743   cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749
2750 int
2751 main ()
2752 {
2753
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 rm -f conftest.o conftest.obj
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760   (eval $ac_compile) 2>&5
2761   ac_status=$?
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
2765   case $ac_file in
2766     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2767     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768        break;;
2769   esac
2770 done
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
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; }; }
2780 fi
2781
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783 fi
2784 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6
2786 OBJEXT=$ac_cv_objext
2787 ac_objext=$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
2792 else
2793   cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h.  */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h.  */
2799
2800 int
2801 main ()
2802 {
2803 #ifndef __GNUC__
2804        choke me
2805 #endif
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813   (eval $ac_compile) 2>conftest.er1
2814   ac_status=$?
2815   grep -v '^ *+' conftest.er1 >conftest.err
2816   rm -f conftest.er1
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
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
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
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; }; then
2832   ac_compiler_gnu=yes
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_compiler_gnu=no
2838 fi
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2841
2842 fi
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
2848 CFLAGS="-g"
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
2853 else
2854   cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860
2861 int
2862 main ()
2863 {
2864
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871   (eval $ac_compile) 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
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
2880   (eval $ac_try) 2>&5
2881   ac_status=$?
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
2886   (eval $ac_try) 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; }; then
2890   ac_cv_prog_cc_g=yes
2891 else
2892   echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 ac_cv_prog_cc_g=no
2896 fi
2897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 fi
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
2905     CFLAGS="-g -O2"
2906   else
2907     CFLAGS="-g"
2908   fi
2909 else
2910   if test "$GCC" = yes; then
2911     CFLAGS="-O2"
2912   else
2913     CFLAGS=
2914   fi
2915 fi
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
2920 else
2921   ac_cv_prog_cc_stdc=no
2922 ac_save_CC=$CC
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929 #include <stdarg.h>
2930 #include <stdio.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)
2937      char **p;
2938      int i;
2939 {
2940   return p[i];
2941 }
2942 static char *f (char * (*g) (char **, int), char **p, ...)
2943 {
2944   char *s;
2945   va_list v;
2946   va_start (v,p);
2947   s = g (p, va_arg (v,int));
2948   va_end (v);
2949   return s;
2950 }
2951
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];
2960
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);
2965 int argc;
2966 char **argv;
2967 int
2968 main ()
2969 {
2970 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
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__"
2983 do
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
2988   ac_status=$?
2989   grep -v '^ *+' conftest.er1 >conftest.err
2990   rm -f conftest.er1
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
2996   (eval $ac_try) 2>&5
2997   ac_status=$?
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
3002   (eval $ac_try) 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }; }; then
3006   ac_cv_prog_cc_stdc=$ac_arg
3007 break
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012 fi
3013 rm -f conftest.err conftest.$ac_objext
3014 done
3015 rm -f conftest.$ac_ext conftest.$ac_objext
3016 CC=$ac_save_CC
3017
3018 fi
3019
3020 case "x$ac_cv_prog_cc_stdc" in
3021   x|xno)
3022     echo "$as_me:$LINENO: result: none needed" >&5
3023 echo "${ECHO_T}none needed" >&6 ;;
3024   *)
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" ;;
3028 esac
3029
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
3035 #ifndef __cplusplus
3036   choke me
3037 #endif
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041   (eval $ac_compile) 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
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
3050   (eval $ac_try) 2>&5
3051   ac_status=$?
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
3056   (eval $ac_try) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; }; then
3060   for ac_declaration in \
3061    '' \
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);' \
3066    'void exit (int);'
3067 do
3068   cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074 $ac_declaration
3075 #include <stdlib.h>
3076 int
3077 main ()
3078 {
3079 exit (42);
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086   (eval $ac_compile) 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
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
3095   (eval $ac_try) 2>&5
3096   ac_status=$?
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
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; }; then
3105   :
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 continue
3111 fi
3112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3113   cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119 $ac_declaration
3120 int
3121 main ()
3122 {
3123 exit (42);
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130   (eval $ac_compile) 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
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
3139   (eval $ac_try) 2>&5
3140   ac_status=$?
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
3145   (eval $ac_try) 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; }; then
3149   break
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 fi
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 done
3157 rm -f conftest*
3158 if test -n "$ac_declaration"; then
3159   echo '#ifdef __cplusplus' >>confdefs.h
3160   echo $ac_declaration      >>confdefs.h
3161   echo '#endif'             >>confdefs.h
3162 fi
3163
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 fi
3169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_ext=c
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
3175
3176 ac_ext=cc
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
3183   do
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
3190 else
3191   if test -n "$CXX"; then
3192   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
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
3203     break 2
3204   fi
3205 done
3206 done
3207
3208 fi
3209 fi
3210 CXX=$ac_cv_prog_CXX
3211 if test -n "$CXX"; then
3212   echo "$as_me:$LINENO: result: $CXX" >&5
3213 echo "${ECHO_T}$CXX" >&6
3214 else
3215   echo "$as_me:$LINENO: result: no" >&5
3216 echo "${ECHO_T}no" >&6
3217 fi
3218
3219     test -n "$CXX" && break
3220   done
3221 fi
3222 if test -z "$CXX"; then
3223   ac_ct_CXX=$CXX
3224   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3225 do
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
3232 else
3233   if test -n "$ac_ct_CXX"; then
3234   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239   IFS=$as_save_IFS
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
3245     break 2
3246   fi
3247 done
3248 done
3249
3250 fi
3251 fi
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
3256 else
3257   echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3259 fi
3260
3261   test -n "$ac_ct_CXX" && break
3262 done
3263 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3264
3265   CXX=$ac_ct_CXX
3266 fi
3267
3268
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
3275   ac_status=$?
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
3280   ac_status=$?
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
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); }
3288
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
3293 else
3294   cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h.  */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h.  */
3300
3301 int
3302 main ()
3303 {
3304 #ifndef __GNUC__
3305        choke me
3306 #endif
3307
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314   (eval $ac_compile) 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
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
3323   (eval $ac_try) 2>&5
3324   ac_status=$?
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
3329   (eval $ac_try) 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); }; }; then
3333   ac_compiler_gnu=yes
3334 else
3335   echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 ac_compiler_gnu=no
3339 fi
3340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3342
3343 fi
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
3349 CXXFLAGS="-g"
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
3354 else
3355   cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361
3362 int
3363 main ()
3364 {
3365
3366   ;
3367   return 0;
3368 }
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372   (eval $ac_compile) 2>conftest.er1
3373   ac_status=$?
3374   grep -v '^ *+' conftest.er1 >conftest.err
3375   rm -f conftest.er1
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
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
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
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391   ac_cv_prog_cxx_g=yes
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 ac_cv_prog_cxx_g=no
3397 fi
3398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399 fi
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
3406     CXXFLAGS="-g -O2"
3407   else
3408     CXXFLAGS="-g"
3409   fi
3410 else
3411   if test "$GXX" = yes; then
3412     CXXFLAGS="-O2"
3413   else
3414     CXXFLAGS=
3415   fi
3416 fi
3417 for ac_declaration in \
3418    '' \
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);' \
3423    'void exit (int);'
3424 do
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 $ac_declaration
3432 #include <stdlib.h>
3433 int
3434 main ()
3435 {
3436 exit (42);
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
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
3452   (eval $ac_try) 2>&5
3453   ac_status=$?
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
3458   (eval $ac_try) 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); }; }; then
3462   :
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 continue
3468 fi
3469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3470   cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h.  */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h.  */
3476 $ac_declaration
3477 int
3478 main ()
3479 {
3480 exit (42);
3481   ;
3482   return 0;
3483 }
3484 _ACEOF
3485 rm -f conftest.$ac_objext
3486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487   (eval $ac_compile) 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
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
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
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
3502   (eval $ac_try) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); }; }; then
3506   break
3507 else
3508   echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511 fi
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 done
3514 rm -f conftest*
3515 if test -n "$ac_declaration"; then
3516   echo '#ifdef __cplusplus' >>confdefs.h
3517   echo $ac_declaration      >>confdefs.h
3518   echo '#endif'             >>confdefs.h
3519 fi
3520
3521 ac_ext=c
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
3526
3527 ac_ext=c
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
3536   CPP=
3537 fi
3538 if test -z "$CPP"; then
3539   if test "${ac_cv_prog_CPP+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542       # Double quotes because CPP needs to be expanded
3543     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3544     do
3545       ac_preproc_ok=false
3546 for ac_c_preproc_warn_flag in '' yes
3547 do
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
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560 #ifdef __STDC__
3561 # include <limits.h>
3562 #else
3563 # include <assert.h>
3564 #endif
3565                      Syntax error
3566 _ACEOF
3567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3569   ac_status=$?
3570   grep -v '^ *+' conftest.er1 >conftest.err
3571   rm -f conftest.er1
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
3578   else
3579     ac_cpp_err=
3580   fi
3581 else
3582   ac_cpp_err=yes
3583 fi
3584 if test -z "$ac_cpp_err"; then
3585   :
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590   # Broken: fails on valid input.
3591 continue
3592 fi
3593 rm -f conftest.err conftest.$ac_ext
3594
3595   # OK, works on sane cases.  Now check whether non-existent headers
3596   # can be detected and how.
3597   cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603 #include <ac_nonexistent.h>
3604 _ACEOF
3605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
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
3616   else
3617     ac_cpp_err=
3618   fi
3619 else
3620   ac_cpp_err=yes
3621 fi
3622 if test -z "$ac_cpp_err"; then
3623   # Broken: success on invalid input.
3624 continue
3625 else
3626   echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629   # Passes both tests.
3630 ac_preproc_ok=:
3631 break
3632 fi
3633 rm -f conftest.err conftest.$ac_ext
3634
3635 done
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
3639   break
3640 fi
3641
3642     done
3643     ac_cv_prog_CPP=$CPP
3644
3645 fi
3646   CPP=$ac_cv_prog_CPP
3647 else
3648   ac_cv_prog_CPP=$CPP
3649 fi
3650 echo "$as_me:$LINENO: result: $CPP" >&5
3651 echo "${ECHO_T}$CPP" >&6
3652 ac_preproc_ok=false
3653 for ac_c_preproc_warn_flag in '' yes
3654 do
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
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #ifdef __STDC__
3668 # include <limits.h>
3669 #else
3670 # include <assert.h>
3671 #endif
3672                      Syntax error
3673 _ACEOF
3674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
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
3685   else
3686     ac_cpp_err=
3687   fi
3688 else
3689   ac_cpp_err=yes
3690 fi
3691 if test -z "$ac_cpp_err"; then
3692   :
3693 else
3694   echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697   # Broken: fails on valid input.
3698 continue
3699 fi
3700 rm -f conftest.err conftest.$ac_ext
3701
3702   # OK, works on sane cases.  Now check whether non-existent headers
3703   # can be detected and how.
3704   cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710 #include <ac_nonexistent.h>
3711 _ACEOF
3712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3714   ac_status=$?
3715   grep -v '^ *+' conftest.er1 >conftest.err
3716   rm -f conftest.er1
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
3723   else
3724     ac_cpp_err=
3725   fi
3726 else
3727   ac_cpp_err=yes
3728 fi
3729 if test -z "$ac_cpp_err"; then
3730   # Broken: success on invalid input.
3731 continue
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736   # Passes both tests.
3737 ac_preproc_ok=:
3738 break
3739 fi
3740 rm -f conftest.err conftest.$ac_ext
3741
3742 done
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
3746   :
3747 else
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; }; }
3753 fi
3754
3755 ac_ext=c
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
3760
3761 ac_ext=cc
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
3771 else
3772       # Double quotes because CXXCPP needs to be expanded
3773     for CXXCPP in "$CXX -E" "/lib/cpp"
3774     do
3775       ac_preproc_ok=false
3776 for ac_cxx_preproc_warn_flag in '' yes
3777 do
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
3785 /* confdefs.h.  */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h.  */
3790 #ifdef __STDC__
3791 # include <limits.h>
3792 #else
3793 # include <assert.h>
3794 #endif
3795                      Syntax error
3796 _ACEOF
3797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3799   ac_status=$?
3800   grep -v '^ *+' conftest.er1 >conftest.err
3801   rm -f conftest.er1
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
3808   else
3809     ac_cpp_err=
3810   fi
3811 else
3812   ac_cpp_err=yes
3813 fi
3814 if test -z "$ac_cpp_err"; then
3815   :
3816 else
3817   echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820   # Broken: fails on valid input.
3821 continue
3822 fi
3823 rm -f conftest.err conftest.$ac_ext
3824
3825   # OK, works on sane cases.  Now check whether non-existent headers
3826   # can be detected and how.
3827   cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h.  */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h.  */
3833 #include <ac_nonexistent.h>
3834 _ACEOF
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3837   ac_status=$?
3838   grep -v '^ *+' conftest.er1 >conftest.err
3839   rm -f conftest.er1
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
3846   else
3847     ac_cpp_err=
3848   fi
3849 else
3850   ac_cpp_err=yes
3851 fi
3852 if test -z "$ac_cpp_err"; then
3853   # Broken: success on invalid input.
3854 continue
3855 else
3856   echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859   # Passes both tests.
3860 ac_preproc_ok=:
3861 break
3862 fi
3863 rm -f conftest.err conftest.$ac_ext
3864
3865 done
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
3869   break
3870 fi
3871
3872     done
3873     ac_cv_prog_CXXCPP=$CXXCPP
3874
3875 fi
3876   CXXCPP=$ac_cv_prog_CXXCPP
3877 else
3878   ac_cv_prog_CXXCPP=$CXXCPP
3879 fi
3880 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3881 echo "${ECHO_T}$CXXCPP" >&6
3882 ac_preproc_ok=false
3883 for ac_cxx_preproc_warn_flag in '' yes
3884 do
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
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 #ifdef __STDC__
3898 # include <limits.h>
3899 #else
3900 # include <assert.h>
3901 #endif
3902                      Syntax error
3903 _ACEOF
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3906   ac_status=$?
3907   grep -v '^ *+' conftest.er1 >conftest.err
3908   rm -f conftest.er1
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
3915   else
3916     ac_cpp_err=
3917   fi
3918 else
3919   ac_cpp_err=yes
3920 fi
3921 if test -z "$ac_cpp_err"; then
3922   :
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927   # Broken: fails on valid input.
3928 continue
3929 fi
3930 rm -f conftest.err conftest.$ac_ext
3931
3932   # OK, works on sane cases.  Now check whether non-existent headers
3933   # can be detected and how.
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940 #include <ac_nonexistent.h>
3941 _ACEOF
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
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
3953   else
3954     ac_cpp_err=
3955   fi
3956 else
3957   ac_cpp_err=yes
3958 fi
3959 if test -z "$ac_cpp_err"; then
3960   # Broken: success on invalid input.
3961 continue
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966   # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3969 fi
3970 rm -f conftest.err conftest.$ac_ext
3971
3972 done
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
3976   :
3977 else
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; }; }
3983 fi
3984
3985 ac_ext=c
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
3990
3991 for ac_prog in gawk mawk nawk awk
3992 do
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
3999 else
4000   if test -n "$AWK"; then
4001   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
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
4012     break 2
4013   fi
4014 done
4015 done
4016
4017 fi
4018 fi
4019 AWK=$ac_cv_prog_AWK
4020 if test -n "$AWK"; then
4021   echo "$as_me:$LINENO: result: $AWK" >&5
4022 echo "${ECHO_T}$AWK" >&6
4023 else
4024   echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4026 fi
4027
4028   test -n "$AWK" && break
4029 done
4030
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
4037 # AIX /bin/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
4049 else
4050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053   IFS=$as_save_IFS
4054   test -z "$as_dir" && as_dir=.
4055   # Account for people who put trailing slashes in PATH elements.
4056 case $as_dir/ in
4057   ./ | .// | /cC/* | \
4058   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4059   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4060   /usr/ucb/* ) ;;
4061   *)
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
4064     # by default.
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.
4071             :
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.
4075             :
4076           else
4077             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4078             break 3
4079           fi
4080         fi
4081       done
4082     done
4083     ;;
4084 esac
4085 done
4086
4087
4088 fi
4089   if test "${ac_cv_path_install+set}" = set; then
4090     INSTALL=$ac_cv_path_install
4091   else
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
4097   fi
4098 fi
4099 echo "$as_me:$LINENO: result: $INSTALL" >&5
4100 echo "${ECHO_T}$INSTALL" >&6
4101
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}'
4105
4106 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4107
4108 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4109
4110 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4111 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4112 LN_S=$as_ln_s
4113 if test "$LN_S" = "ln -s"; then
4114   echo "$as_me:$LINENO: result: yes" >&5
4115 echo "${ECHO_T}yes" >&6
4116 else
4117   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4118 echo "${ECHO_T}no, using $LN_S" >&6
4119 fi
4120
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
4128 else
4129   if test -n "$RANLIB"; then
4130   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
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
4141     break 2
4142   fi
4143 done
4144 done
4145
4146 fi
4147 fi
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
4152 else
4153   echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4155 fi
4156
4157 fi
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
4166 else
4167   if test -n "$ac_ct_RANLIB"; then
4168   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
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
4179     break 2
4180   fi
4181 done
4182 done
4183
4184   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4185 fi
4186 fi
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
4191 else
4192   echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196   RANLIB=$ac_ct_RANLIB
4197 else
4198   RANLIB="$ac_cv_prog_RANLIB"
4199 fi
4200
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
4205 else
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
4210          GNU_MAKE=$a ;
4211          break;
4212       fi
4213    done ;
4214
4215 fi
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!"
4220    exit 1
4221 fi
4222
4223
4224
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
4231 else
4232   case $GREP in
4233   [\\/]* | ?:[\\/]*)
4234   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4235   ;;
4236   *)
4237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
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
4246     break 2
4247   fi
4248 done
4249 done
4250
4251   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
4252   ;;
4253 esac
4254 fi
4255 GREP=$ac_cv_path_GREP
4256
4257 if test -n "$GREP"; then
4258   echo "$as_me:$LINENO: result: $GREP" >&5
4259 echo "${ECHO_T}$GREP" >&6
4260 else
4261   echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263 fi
4264
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
4271 else
4272   case $AR in
4273   [\\/]* | ?:[\\/]*)
4274   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4275   ;;
4276   *)
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280   IFS=$as_save_IFS
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
4286     break 2
4287   fi
4288 done
4289 done
4290
4291   test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
4292   ;;
4293 esac
4294 fi
4295 AR=$ac_cv_path_AR
4296
4297 if test -n "$AR"; then
4298   echo "$as_me:$LINENO: result: $AR" >&5
4299 echo "${ECHO_T}$AR" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
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
4311 else
4312   case $FIND in
4313   [\\/]* | ?:[\\/]*)
4314   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4315   ;;
4316   *)
4317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320   IFS=$as_save_IFS
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
4326     break 2
4327   fi
4328 done
4329 done
4330
4331   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
4332   ;;
4333 esac
4334 fi
4335 FIND=$ac_cv_path_FIND
4336
4337 if test -n "$FIND"; then
4338   echo "$as_me:$LINENO: result: $FIND" >&5
4339 echo "${ECHO_T}$FIND" >&6
4340 else
4341   echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4343 fi
4344
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
4351 else
4352   case $COMPRESS in
4353   [\\/]* | ?:[\\/]*)
4354   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
4355   ;;
4356   *)
4357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360   IFS=$as_save_IFS
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
4366     break 2
4367   fi
4368 done
4369 done
4370
4371   test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
4372   ;;
4373 esac
4374 fi
4375 COMPRESS=$ac_cv_path_COMPRESS
4376
4377 if test -n "$COMPRESS"; then
4378   echo "$as_me:$LINENO: result: $COMPRESS" >&5
4379 echo "${ECHO_T}$COMPRESS" >&6
4380 else
4381   echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6
4383 fi
4384
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
4391 else
4392   case $BASENAME in
4393   [\\/]* | ?:[\\/]*)
4394   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4395   ;;
4396   *)
4397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
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
4406     break 2
4407   fi
4408 done
4409 done
4410
4411   test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
4412   ;;
4413 esac
4414 fi
4415 BASENAME=$ac_cv_path_BASENAME
4416
4417 if test -n "$BASENAME"; then
4418   echo "$as_me:$LINENO: result: $BASENAME" >&5
4419 echo "${ECHO_T}$BASENAME" >&6
4420 else
4421   echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6
4423 fi
4424
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
4431 else
4432   case $DIRNAME in
4433   [\\/]* | ?:[\\/]*)
4434   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4435   ;;
4436   *)
4437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
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
4446     break 2
4447   fi
4448 done
4449 done
4450
4451   test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
4452   ;;
4453 esac
4454 fi
4455 DIRNAME=$ac_cv_path_DIRNAME
4456
4457 if test -n "$DIRNAME"; then
4458   echo "$as_me:$LINENO: result: $DIRNAME" >&5
4459 echo "${ECHO_T}$DIRNAME" >&6
4460 else
4461   echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6
4463 fi
4464
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
4471 else
4472   case $SHELL in
4473   [\\/]* | ?:[\\/]*)
4474   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
4475   ;;
4476   *)
4477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
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
4486     break 2
4487   fi
4488 done
4489 done
4490
4491   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
4492   ;;
4493 esac
4494 fi
4495 SHELL=$ac_cv_path_SHELL
4496
4497 if test -n "$SHELL"; then
4498   echo "$as_me:$LINENO: result: $SHELL" >&5
4499 echo "${ECHO_T}$SHELL" >&6
4500 else
4501   echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503 fi
4504
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
4511 else
4512   case $LN in
4513   [\\/]* | ?:[\\/]*)
4514   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4515   ;;
4516   *)
4517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
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
4526     break 2
4527   fi
4528 done
4529 done
4530
4531   test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
4532   ;;
4533 esac
4534 fi
4535 LN=$ac_cv_path_LN
4536
4537 if test -n "$LN"; then
4538   echo "$as_me:$LINENO: result: $LN" >&5
4539 echo "${ECHO_T}$LN" >&6
4540 else
4541   echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4543 fi
4544
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
4551 else
4552   case $DOT in
4553   [\\/]* | ?:[\\/]*)
4554   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
4555   ;;
4556   *)
4557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
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
4566     break 2
4567   fi
4568 done
4569 done
4570
4571   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
4572   ;;
4573 esac
4574 fi
4575 DOT=$ac_cv_path_DOT
4576
4577 if test -n "$DOT"; then
4578   echo "$as_me:$LINENO: result: $DOT" >&5
4579 echo "${ECHO_T}$DOT" >&6
4580 else
4581   echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4583 fi
4584
4585
4586 ac_ext=c
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
4591
4592
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; }; }  ;;
4602         esac
4603 fi;
4604
4605
4606
4607
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
4612 else
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'
4616     fi
4617 fi
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
4621
4622
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
4627 else
4628   cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <stdlib.h>
4635 #include <stdarg.h>
4636 #include <string.h>
4637 #include <float.h>
4638
4639 int
4640 main ()
4641 {
4642
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649   (eval $ac_compile) 2>conftest.er1
4650