blob: d9b73416d8f4ae5bacfbe695896daba9a0e93b5a [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.5.8.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000079# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
Benny Prijono7e0d75f2006-12-25 20:34:14 +000086# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
Benny Prijonoa9b372a2006-07-24 02:07:11 +000097fi
98
Benny Prijono7e0d75f2006-12-25 20:34:14 +000099
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +0000220else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000223fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000224
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000241$as_unset CDPATH
242
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000255ac_config_libobj_dir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000256cross_compiling=no
257subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000258MFLAGS=
259MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000267# Identity of this package.
268PACKAGE_NAME='pjproject'
269PACKAGE_TARNAME='pjproject'
270PACKAGE_VERSION='0.5.8'
271PACKAGE_STRING='pjproject 0.5.8'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_g711_plc ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS'
312ac_subst_files=''
313
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000484 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000670 localstatedir libdir includedir oldincludedir infodir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000682# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000683build=$build_alias
684host=$host_alias
685target=$target_alias
686
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000687# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000703
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000730 { (exit 1); exit 1; }; }
731 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000733 { (exit 1); exit 1; }; }
734 fi
735fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000768ac_env_CXX_set=${CXX+set}
769ac_env_CXX_value=$CXX
770ac_cv_env_CXX_set=${CXX+set}
771ac_cv_env_CXX_value=$CXX
772ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773ac_env_CXXFLAGS_value=$CXXFLAGS
774ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
780
781#
782# Report the --help message.
783#
784if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000787 cat <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000788\`configure' configures pjproject 0.5.8 to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000789
790Usage: $0 [OPTION]... [VAR=VALUE]...
791
792To assign environment variables (e.g., CC, CFLAGS...), specify them as
793VAR=VALUE. See below for descriptions of some of the useful variables.
794
795Defaults for the options are specified in brackets.
796
797Configuration:
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000808_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000809
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000810 cat <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000811Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000813 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000815 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000816
817By default, \`make install' will install all the files in
818\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820for instance \`--prefix=\$HOME'.
821
822For better control, use the options below.
823
824Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000837_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000838
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000839 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000840
841System types:
842 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000844 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000845_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000846fi
847
848if test -n "$ac_init_help"; then
849 case $ac_init_help in
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000850 short | recursive ) echo "Configuration of pjproject 0.5.8:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000851 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000852 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000853
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-floating-point
858 Disable floating point where possible
Benny Prijono1d971622006-09-10 22:27:40 +0000859 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000860 --disable-small-filter Exclude small filter in resampling
861 --disable-large-filter Exclude large filter in resampling
862 --disable-g711-plc Exclude G.711 Annex A PLC
863 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
864 --disable-g711-codec Exclude G.711 codecs from the build
865 --disable-l16-codec Exclude Linear/L16 codec family from the build
866 --disable-gsm-codec Exclude GSM codec in the build
867 --disable-speex-codec Exclude Speex codecs in the build
868 --disable-ilbc-codec Exclude iLBC codec in the build
869
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000870 --disable-ssl Exclude SSL support the build (default: autodetect)
871
872
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000880 CXX C++ compiler command
881 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000882 CPP C preprocessor
883
884Use these variables to override the choices made by `configure' or to help
885it to find libraries and programs with nonstandard names/locations.
886
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000887_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000888fi
889
890if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000896
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000897if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901else
902 ac_dir_suffix= ac_top_builddir=
903fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000904
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000905case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919esac
920
921# Do not use `cd foo && pwd` to compute absolute paths, because
922# the directories may not exist.
923case `pwd` in
924.) ac_abs_builddir="$ac_dir";;
925*)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_builddir=${ac_top_builddir}.;;
934*)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_srcdir=$ac_srcdir;;
943*)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_srcdir=$ac_top_srcdir;;
952*)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958esac
959
960 cd $ac_dir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000961 # Check for guested configure; otherwise get Cygnus style configure.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000962 if test -f $ac_srcdir/configure.gnu; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000963 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000966 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000970 echo
971 $ac_configure --help
972 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000974 fi
975 cd $ac_popdir
976 done
977fi
978
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000981 cat <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000982pjproject configure 0.5.8
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000983generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000984
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000985Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000988_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000989 exit 0
990fi
991exec 5>config.log
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000992cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
995
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000996It was created by pjproject $as_me 0.5.8, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000997generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000998
999 $ $0 $@
1000
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001001_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001002{
1003cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001004## --------- ##
1005## Platform. ##
1006## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
1034
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001035} >&5
1036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001037cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001038
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001039
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
1043
1044_ACEOF
1045
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001046
1047# Keep a trace of the command line.
1048# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001049# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001050# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001051# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001052ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001053ac_configure_args0=
1054ac_configure_args1=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001055ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001056ac_must_keep_next=false
1057for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001058do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001094done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001097
1098# When interrupted or exit'd, cleanup temporary files, and complete
1099# config.log. We remove comments because anyway the quotes in there
1100# would cause problems or look ugly.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001101# WARNING: Be sure not to use single quotes in there, as some shells,
1102# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001122 ;;
1123 *)
1124 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126 ;;
1127 esac;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
1181
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
1186
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001187# Predefined preprocessor variables.
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001226echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001227 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001228 . "$ac_site_file"
1229 fi
1230done
1231
1232if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for ac_var in `(set) 2>&1 |
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001273echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001276 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001277 fi;;
1278 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001279 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
Benny Prijono5b818b22006-09-17 22:58:51 +00001332
1333host_orig="$host"
1334
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001335ac_aux_dir=
1336for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1337 if test -f $ac_dir/install-sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 break
1341 elif test -f $ac_dir/install.sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 break
1345 elif test -f $ac_dir/shtool; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 break
1349 fi
1350done
1351if test -z "$ac_aux_dir"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001353echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1354 { (exit 1); exit 1; }; }
1355fi
1356ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359
1360# Make sure we can run config.sub.
1361$ac_config_sub sun4 >/dev/null 2>&1 ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001362 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001363echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1364 { (exit 1); exit 1; }; }
1365
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001366echo "$as_me:$LINENO: checking build system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001367echo $ECHO_N "checking build system type... $ECHO_C" >&6
1368if test "${ac_cv_build+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370else
1371 ac_cv_build_alias=$build_alias
1372test -z "$ac_cv_build_alias" &&
1373 ac_cv_build_alias=`$ac_config_guess`
1374test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001376echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1377 { (exit 1); exit 1; }; }
1378ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1380echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001381 { (exit 1); exit 1; }; }
1382
1383fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001384echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001385echo "${ECHO_T}$ac_cv_build" >&6
1386build=$ac_cv_build
1387build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001391
1392echo "$as_me:$LINENO: checking host system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001393echo $ECHO_N "checking host system type... $ECHO_C" >&6
1394if test "${ac_cv_host+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1396else
1397 ac_cv_host_alias=$host_alias
1398test -z "$ac_cv_host_alias" &&
1399 ac_cv_host_alias=$ac_cv_build_alias
1400ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001402echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001406echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001407echo "${ECHO_T}$ac_cv_host" >&6
1408host=$ac_cv_host
1409host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001413
1414echo "$as_me:$LINENO: checking target system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001415echo $ECHO_N "checking target system type... $ECHO_C" >&6
1416if test "${ac_cv_target+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 ac_cv_target_alias=$target_alias
1420test "x$ac_cv_target_alias" = "x" &&
1421 ac_cv_target_alias=$ac_cv_host_alias
1422ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001424echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001428echo "$as_me:$LINENO: result: $ac_cv_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001429echo "${ECHO_T}$ac_cv_target" >&6
1430target=$ac_cv_target
1431target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001435
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001436# The aliases save the names the user supplied, while $host etc.
1437# will get canonicalized.
1438test -n "$target_alias" &&
1439 test "$program_prefix$program_suffix$program_transform_name" = \
1440 NONENONEs,x,x, &&
1441 program_prefix=${target_alias}-
Benny Prijono06d1d0e2007-01-27 18:09:28 +00001442 ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001443
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001444 ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak"
1445
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001446
1447if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001448 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001449else
1450 CFLAGS="$CFLAGS"
1451fi
1452
1453CXXFLAGS="$CFLAGS $CXXFLAGS"
1454
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460if test -n "$ac_tool_prefix"; then
1461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1462set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001463echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467else
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1470else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472for as_dir in $PATH
1473do
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 break 2
1481 fi
1482done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001483done
1484
1485fi
1486fi
1487CC=$ac_cv_prog_CC
1488if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001489 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001490echo "${ECHO_T}$CC" >&6
1491else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001492 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001493echo "${ECHO_T}no" >&6
1494fi
1495
1496fi
1497if test -z "$ac_cv_prog_CC"; then
1498 ac_ct_CC=$CC
1499 # Extract the first word of "gcc", so it can be a program name with args.
1500set dummy gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001501echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
1506 if test -n "$ac_ct_CC"; then
1507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1508else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510for as_dir in $PATH
1511do
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_ac_ct_CC="gcc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 break 2
1519 fi
1520done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001521done
1522
1523fi
1524fi
1525ac_ct_CC=$ac_cv_prog_ac_ct_CC
1526if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001528echo "${ECHO_T}$ac_ct_CC" >&6
1529else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001530 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001531echo "${ECHO_T}no" >&6
1532fi
1533
1534 CC=$ac_ct_CC
1535else
1536 CC="$ac_cv_prog_CC"
1537fi
1538
1539if test -z "$CC"; then
1540 if test -n "$ac_tool_prefix"; then
1541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1542set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001543echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547else
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1550else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552for as_dir in $PATH
1553do
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="${ac_tool_prefix}cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001563done
1564
1565fi
1566fi
1567CC=$ac_cv_prog_CC
1568if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001569 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001570echo "${ECHO_T}$CC" >&6
1571else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001572 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001573echo "${ECHO_T}no" >&6
1574fi
1575
1576fi
1577if test -z "$ac_cv_prog_CC"; then
1578 ac_ct_CC=$CC
1579 # Extract the first word of "cc", so it can be a program name with args.
1580set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001581echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590for as_dir in $PATH
1591do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="cc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1599 fi
1600done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001601done
1602
1603fi
1604fi
1605ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001608echo "${ECHO_T}$ac_ct_CC" >&6
1609else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001610 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001611echo "${ECHO_T}no" >&6
1612fi
1613
1614 CC=$ac_ct_CC
1615else
1616 CC="$ac_cv_prog_CC"
1617fi
1618
1619fi
1620if test -z "$CC"; then
1621 # Extract the first word of "cc", so it can be a program name with args.
1622set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001623echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1630else
1631 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633for as_dir in $PATH
1634do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1640 ac_prog_rejected=yes
1641 continue
1642 fi
1643 ac_cv_prog_CC="cc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1646 fi
1647done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001648done
1649
1650if test $ac_prog_rejected = yes; then
1651 # We found a bogon in the path, so make sure we never use it.
1652 set dummy $ac_cv_prog_CC
1653 shift
1654 if test $# != 0; then
1655 # We chose a different compiler from the bogus one.
1656 # However, it has the same basename, so the bogon will be chosen
1657 # first if we set CC to just the basename; use the full file name.
1658 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001660 fi
1661fi
1662fi
1663fi
1664CC=$ac_cv_prog_CC
1665if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001666 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001667echo "${ECHO_T}$CC" >&6
1668else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001669 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001670echo "${ECHO_T}no" >&6
1671fi
1672
1673fi
1674if test -z "$CC"; then
1675 if test -n "$ac_tool_prefix"; then
1676 for ac_prog in cl
1677 do
1678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001680echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1687else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1698 fi
1699done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001700done
1701
1702fi
1703fi
1704CC=$ac_cv_prog_CC
1705if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001706 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001707echo "${ECHO_T}$CC" >&6
1708else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001709 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001710echo "${ECHO_T}no" >&6
1711fi
1712
1713 test -n "$CC" && break
1714 done
1715fi
1716if test -z "$CC"; then
1717 ac_ct_CC=$CC
1718 for ac_prog in cl
1719do
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001722echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1729else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_CC="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1740 fi
1741done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001742done
1743
1744fi
1745fi
1746ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001748 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001749echo "${ECHO_T}$ac_ct_CC" >&6
1750else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001751 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001752echo "${ECHO_T}no" >&6
1753fi
1754
1755 test -n "$ac_ct_CC" && break
1756done
1757
1758 CC=$ac_ct_CC
1759fi
1760
1761fi
1762
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001763
1764test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1765See \`config.log' for more details." >&5
1766echo "$as_me: error: no acceptable C compiler found in \$PATH
1767See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001768 { (exit 1); exit 1; }; }
1769
1770# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001771echo "$as_me:$LINENO:" \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001772 "checking for C compiler version" >&5
1773ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001774{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001775 (eval $ac_compiler --version </dev/null >&5) 2>&5
1776 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001778 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001779{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001780 (eval $ac_compiler -v </dev/null >&5) 2>&5
1781 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001783 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001784{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001785 (eval $ac_compiler -V </dev/null >&5) 2>&5
1786 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001788 (exit $ac_status); }
1789
1790cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001791/* confdefs.h. */
1792_ACEOF
1793cat confdefs.h >>conftest.$ac_ext
1794cat >>conftest.$ac_ext <<_ACEOF
1795/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001796
1797int
1798main ()
1799{
1800
1801 ;
1802 return 0;
1803}
1804_ACEOF
1805ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001806ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001807# Try to create an executable without -o first, disregard a.out.
1808# It will help us diagnose broken compilers, and finding out an intuition
1809# of exeext.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001810echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1811echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001812ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001813if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001814 (eval $ac_link_default) 2>&5
1815 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001817 (exit $ac_status); }; then
1818 # Find the output, starting from the most likely. This scheme is
1819# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1820# resort.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001821
1822# Be careful to initialize this variable, since it used to be cached.
1823# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1824ac_cv_exeext=
1825# b.out is created by i960 compilers.
1826for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1827do
1828 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001829 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1831 ;;
1832 conftest.$ac_ext )
1833 # This is the source file.
1834 ;;
1835 [ab].out )
1836 # We found the default executable, but exeext='' is most
1837 # certainly right.
1838 break;;
1839 *.* )
1840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 # FIXME: I believe we export ac_cv_exeext for Libtool,
1842 # but it would be cool to find out if it's true. Does anybody
1843 # maintain Libtool? --akim.
1844 export ac_cv_exeext
1845 break;;
1846 * )
1847 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001848 esac
1849done
1850else
1851 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1855See \`config.log' for more details." >&5
1856echo "$as_me: error: C compiler cannot create executables
1857See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001858 { (exit 77); exit 77; }; }
1859fi
1860
1861ac_exeext=$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001862echo "$as_me:$LINENO: result: $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001863echo "${ECHO_T}$ac_file" >&6
1864
1865# Check the compiler produces executables we can run. If not, either
1866# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001867echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001868echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1869# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1870# If not cross compiling, check that we can run a simple program.
1871if test "$cross_compiling" != yes; then
1872 if { ac_try='./$ac_file'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001874 (eval $ac_try) 2>&5
1875 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001877 (exit $ac_status); }; }; then
1878 cross_compiling=no
1879 else
1880 if test "$cross_compiling" = maybe; then
1881 cross_compiling=yes
1882 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1884If you meant to cross compile, use \`--host'.
1885See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001886echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001887If you meant to cross compile, use \`--host'.
1888See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001889 { (exit 1); exit 1; }; }
1890 fi
1891 fi
1892fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001893echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001894echo "${ECHO_T}yes" >&6
1895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001896rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001897ac_clean_files=$ac_clean_files_save
1898# Check the compiler produces executables we can run. If not, either
1899# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001900echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001901echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001902echo "$as_me:$LINENO: result: $cross_compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001903echo "${ECHO_T}$cross_compiling" >&6
1904
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001905echo "$as_me:$LINENO: checking for suffix of executables" >&5
1906echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001908 (eval $ac_link) 2>&5
1909 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001911 (exit $ac_status); }; then
1912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1913# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1914# work properly (i.e., refer to `conftest.exe'), while it won't with
1915# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001916for ac_file in conftest.exe conftest conftest.*; do
1917 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001918 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001921 export ac_cv_exeext
1922 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923 * ) break;;
1924 esac
1925done
1926else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001927 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1930See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001931 { (exit 1); exit 1; }; }
1932fi
1933
1934rm -f conftest$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001935echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001936echo "${ECHO_T}$ac_cv_exeext" >&6
1937
1938rm -f conftest.$ac_ext
1939EXEEXT=$ac_cv_exeext
1940ac_exeext=$EXEEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001941echo "$as_me:$LINENO: checking for suffix of object files" >&5
1942echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001943if test "${ac_cv_objext+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945else
1946 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001947/* confdefs.h. */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001952
1953int
1954main ()
1955{
1956
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961rm -f conftest.o conftest.obj
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001963 (eval $ac_compile) 2>&5
1964 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001966 (exit $ac_status); }; then
1967 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1968 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1971 break;;
1972 esac
1973done
1974else
1975 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1979See \`config.log' for more details." >&5
1980echo "$as_me: error: cannot compute suffix of object files: cannot compile
1981See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001982 { (exit 1); exit 1; }; }
1983fi
1984
1985rm -f conftest.$ac_cv_objext conftest.$ac_ext
1986fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001987echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001988echo "${ECHO_T}$ac_cv_objext" >&6
1989OBJEXT=$ac_cv_objext
1990ac_objext=$OBJEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001991echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001992echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1993if test "${ac_cv_c_compiler_gnu+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995else
1996 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001997/* confdefs.h. */
1998_ACEOF
1999cat confdefs.h >>conftest.$ac_ext
2000cat >>conftest.$ac_ext <<_ACEOF
2001/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002002
2003int
2004main ()
2005{
2006#ifndef __GNUC__
2007 choke me
2008#endif
2009
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002017 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002018 grep -v '^ *+' conftest.er1 >conftest.err
2019 rm -f conftest.er1
2020 cat conftest.err >&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002022 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002023 { ac_try='test -z "$ac_c_werror_flag"
2024 || test ! -s conftest.err'
2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002026 (eval $ac_try) 2>&5
2027 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; } &&
2030 { ac_try='test -s conftest.$ac_objext'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002035 (exit $ac_status); }; }; then
2036 ac_compiler_gnu=yes
2037else
2038 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002039sed 's/^/| /' conftest.$ac_ext >&5
2040
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002041ac_compiler_gnu=no
2042fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002044ac_cv_c_compiler_gnu=$ac_compiler_gnu
2045
2046fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002047echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002048echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2049GCC=`test $ac_compiler_gnu = yes && echo yes`
2050ac_test_CFLAGS=${CFLAGS+set}
2051ac_save_CFLAGS=$CFLAGS
2052CFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002053echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002054echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2055if test "${ac_cv_prog_cc_g+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002059/* confdefs.h. */
2060_ACEOF
2061cat confdefs.h >>conftest.$ac_ext
2062cat >>conftest.$ac_ext <<_ACEOF
2063/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002064
2065int
2066main ()
2067{
2068
2069 ;
2070 return 0;
2071}
2072_ACEOF
2073rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2075 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002076 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002077 grep -v '^ *+' conftest.er1 >conftest.err
2078 rm -f conftest.er1
2079 cat conftest.err >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002081 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002082 { ac_try='test -z "$ac_c_werror_flag"
2083 || test ! -s conftest.err'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002085 (eval $ac_try) 2>&5
2086 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; } &&
2089 { ac_try='test -s conftest.$ac_objext'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 (eval $ac_try) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002094 (exit $ac_status); }; }; then
2095 ac_cv_prog_cc_g=yes
2096else
2097 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002098sed 's/^/| /' conftest.$ac_ext >&5
2099
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002100ac_cv_prog_cc_g=no
2101fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002103fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002104echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002105echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2106if test "$ac_test_CFLAGS" = set; then
2107 CFLAGS=$ac_save_CFLAGS
2108elif test $ac_cv_prog_cc_g = yes; then
2109 if test "$GCC" = yes; then
2110 CFLAGS="-g -O2"
2111 else
2112 CFLAGS="-g"
2113 fi
2114else
2115 if test "$GCC" = yes; then
2116 CFLAGS="-O2"
2117 else
2118 CFLAGS=
2119 fi
2120fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002121echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2122echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2123if test "${ac_cv_prog_cc_stdc+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126 ac_cv_prog_cc_stdc=no
2127ac_save_CC=$CC
2128cat >conftest.$ac_ext <<_ACEOF
2129/* confdefs.h. */
2130_ACEOF
2131cat confdefs.h >>conftest.$ac_ext
2132cat >>conftest.$ac_ext <<_ACEOF
2133/* end confdefs.h. */
2134#include <stdarg.h>
2135#include <stdio.h>
2136#include <sys/types.h>
2137#include <sys/stat.h>
2138/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2139struct buf { int x; };
2140FILE * (*rcsopen) (struct buf *, struct stat *, int);
2141static char *e (p, i)
2142 char **p;
2143 int i;
2144{
2145 return p[i];
2146}
2147static char *f (char * (*g) (char **, int), char **p, ...)
2148{
2149 char *s;
2150 va_list v;
2151 va_start (v,p);
2152 s = g (p, va_arg (v,int));
2153 va_end (v);
2154 return s;
2155}
2156
2157/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2158 function prototypes and stuff, but not '\xHH' hex character constants.
2159 These don't provoke an error unfortunately, instead are silently treated
2160 as 'x'. The following induces an error, until -std1 is added to get
2161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2162 array size at least. It's necessary to write '\x00'==0 to get something
2163 that's true only with -std1. */
2164int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2165
2166int test (int i, double x);
2167struct s1 {int (*f) (int a);};
2168struct s2 {int (*f) (double a);};
2169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2170int argc;
2171char **argv;
2172int
2173main ()
2174{
2175return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180# Don't try gcc -ansi; that turns off useful extensions and
2181# breaks some systems' header files.
2182# AIX -qlanglvl=ansi
2183# Ultrix and OSF/1 -std1
2184# HP-UX 10.20 and later -Ae
2185# HP-UX older versions -Aa -D_HPUX_SOURCE
2186# SVR4 -Xc -D__EXTENSIONS__
2187for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2188do
2189 CC="$ac_save_CC $ac_arg"
2190 rm -f conftest.$ac_objext
2191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2193 ac_status=$?
2194 grep -v '^ *+' conftest.er1 >conftest.err
2195 rm -f conftest.er1
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 ac_cv_prog_cc_stdc=$ac_arg
2213break
2214else
2215 echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
2218fi
2219rm -f conftest.err conftest.$ac_objext
2220done
2221rm -f conftest.$ac_ext conftest.$ac_objext
2222CC=$ac_save_CC
2223
2224fi
2225
2226case "x$ac_cv_prog_cc_stdc" in
2227 x|xno)
2228 echo "$as_me:$LINENO: result: none needed" >&5
2229echo "${ECHO_T}none needed" >&6 ;;
2230 *)
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2232echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2233 CC="$CC $ac_cv_prog_cc_stdc" ;;
2234esac
2235
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002236# Some people use a C++ compiler to compile C. Since we use `exit',
2237# in C++ we need to declare it. In case someone uses the same compiler
2238# for both compiling C and C++ we need to have the C++ compiler decide
2239# the declaration of exit, since it's the most demanding environment.
2240cat >conftest.$ac_ext <<_ACEOF
2241#ifndef __cplusplus
2242 choke me
2243#endif
2244_ACEOF
2245rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002248 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002253 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002254 { ac_try='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002257 (eval $ac_try) 2>&5
2258 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002266 (exit $ac_status); }; }; then
2267 for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002268 '' \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002269 'extern "C" void std::exit (int) throw (); using std::exit;' \
2270 'extern "C" void std::exit (int); using std::exit;' \
2271 'extern "C" void exit (int) throw ();' \
2272 'extern "C" void exit (int);' \
2273 'void exit (int);'
2274do
2275 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002276/* confdefs.h. */
2277_ACEOF
2278cat confdefs.h >>conftest.$ac_ext
2279cat >>conftest.$ac_ext <<_ACEOF
2280/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002281$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002282#include <stdlib.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002283int
2284main ()
2285{
2286exit (42);
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002294 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002295 grep -v '^ *+' conftest.er1 >conftest.err
2296 rm -f conftest.er1
2297 cat conftest.err >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002299 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002300 { ac_try='test -z "$ac_c_werror_flag"
2301 || test ! -s conftest.err'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002303 (eval $ac_try) 2>&5
2304 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 (eval $ac_try) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002312 (exit $ac_status); }; }; then
2313 :
2314else
2315 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002316sed 's/^/| /' conftest.$ac_ext >&5
2317
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002318continue
2319fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002321 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002322/* confdefs.h. */
2323_ACEOF
2324cat confdefs.h >>conftest.$ac_ext
2325cat >>conftest.$ac_ext <<_ACEOF
2326/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002327$ac_declaration
2328int
2329main ()
2330{
2331exit (42);
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002339 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002340 grep -v '^ *+' conftest.er1 >conftest.err
2341 rm -f conftest.er1
2342 cat conftest.err >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002344 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002345 { ac_try='test -z "$ac_c_werror_flag"
2346 || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002348 (eval $ac_try) 2>&5
2349 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002357 (exit $ac_status); }; }; then
2358 break
2359else
2360 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002361sed 's/^/| /' conftest.$ac_ext >&5
2362
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002363fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002365done
2366rm -f conftest*
2367if test -n "$ac_declaration"; then
2368 echo '#ifdef __cplusplus' >>confdefs.h
2369 echo $ac_declaration >>confdefs.h
2370 echo '#endif' >>confdefs.h
2371fi
2372
2373else
2374 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002375sed 's/^/| /' conftest.$ac_ext >&5
2376
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002377fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002379ac_ext=c
2380ac_cpp='$CPP $CPPFLAGS'
2381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002385ac_ext=cc
2386ac_cpp='$CXXCPP $CPPFLAGS'
2387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2390if test -n "$ac_tool_prefix"; then
2391 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2392 do
2393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002395echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397if test "${ac_cv_prog_CXX+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400 if test -n "$CXX"; then
2401 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2402else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002415done
2416
2417fi
2418fi
2419CXX=$ac_cv_prog_CXX
2420if test -n "$CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002421 echo "$as_me:$LINENO: result: $CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002422echo "${ECHO_T}$CXX" >&6
2423else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002424 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002425echo "${ECHO_T}no" >&6
2426fi
2427
2428 test -n "$CXX" && break
2429 done
2430fi
2431if test -z "$CXX"; then
2432 ac_ct_CXX=$CXX
2433 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2434do
2435 # Extract the first word of "$ac_prog", so it can be a program name with args.
2436set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002437echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 if test -n "$ac_ct_CXX"; then
2443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2444else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_prog_ac_ct_CXX="$ac_prog"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002457done
2458
2459fi
2460fi
2461ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2462if test -n "$ac_ct_CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002463 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002464echo "${ECHO_T}$ac_ct_CXX" >&6
2465else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002466 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002467echo "${ECHO_T}no" >&6
2468fi
2469
2470 test -n "$ac_ct_CXX" && break
2471done
2472test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2473
2474 CXX=$ac_ct_CXX
2475fi
2476
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002477
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002478# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002479echo "$as_me:$LINENO:" \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002480 "checking for C++ compiler version" >&5
2481ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002482{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002483 (eval $ac_compiler --version </dev/null >&5) 2>&5
2484 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002486 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002487{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002488 (eval $ac_compiler -v </dev/null >&5) 2>&5
2489 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002491 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002492{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002493 (eval $ac_compiler -V </dev/null >&5) 2>&5
2494 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002496 (exit $ac_status); }
2497
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002498echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002499echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2500if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002509
2510int
2511main ()
2512{
2513#ifndef __GNUC__
2514 choke me
2515#endif
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
2521rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002524 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002529 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002530 { ac_try='test -z "$ac_cxx_werror_flag"
2531 || test ! -s conftest.err'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002533 (eval $ac_try) 2>&5
2534 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002542 (exit $ac_status); }; }; then
2543 ac_compiler_gnu=yes
2544else
2545 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002546sed 's/^/| /' conftest.$ac_ext >&5
2547
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002548ac_compiler_gnu=no
2549fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002551ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2552
2553fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002554echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002555echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2556GXX=`test $ac_compiler_gnu = yes && echo yes`
2557ac_test_CXXFLAGS=${CXXFLAGS+set}
2558ac_save_CXXFLAGS=$CXXFLAGS
2559CXXFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002560echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002561echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2562if test "${ac_cv_prog_cxx_g+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002566/* confdefs.h. */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002571
2572int
2573main ()
2574{
2575
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002583 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002584 grep -v '^ *+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002588 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002589 { ac_try='test -z "$ac_cxx_werror_flag"
2590 || test ! -s conftest.err'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002592 (eval $ac_try) 2>&5
2593 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002601 (exit $ac_status); }; }; then
2602 ac_cv_prog_cxx_g=yes
2603else
2604 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002605sed 's/^/| /' conftest.$ac_ext >&5
2606
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002607ac_cv_prog_cxx_g=no
2608fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002610fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002611echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002612echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2613if test "$ac_test_CXXFLAGS" = set; then
2614 CXXFLAGS=$ac_save_CXXFLAGS
2615elif test $ac_cv_prog_cxx_g = yes; then
2616 if test "$GXX" = yes; then
2617 CXXFLAGS="-g -O2"
2618 else
2619 CXXFLAGS="-g"
2620 fi
2621else
2622 if test "$GXX" = yes; then
2623 CXXFLAGS="-O2"
2624 else
2625 CXXFLAGS=
2626 fi
2627fi
2628for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002629 '' \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002630 'extern "C" void std::exit (int) throw (); using std::exit;' \
2631 'extern "C" void std::exit (int); using std::exit;' \
2632 'extern "C" void exit (int) throw ();' \
2633 'extern "C" void exit (int);' \
2634 'void exit (int);'
2635do
2636 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002642$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002643#include <stdlib.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002644int
2645main ()
2646{
2647exit (42);
2648 ;
2649 return 0;
2650}
2651_ACEOF
2652rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002655 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002660 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002661 { ac_try='test -z "$ac_cxx_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002664 (eval $ac_try) 2>&5
2665 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002673 (exit $ac_status); }; }; then
2674 :
2675else
2676 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002677sed 's/^/| /' conftest.$ac_ext >&5
2678
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002679continue
2680fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002682 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002683/* confdefs.h. */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
2687/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002688$ac_declaration
2689int
2690main ()
2691{
2692exit (42);
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002700 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002705 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002706 { ac_try='test -z "$ac_cxx_werror_flag"
2707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002709 (eval $ac_try) 2>&5
2710 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002718 (exit $ac_status); }; }; then
2719 break
2720else
2721 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002722sed 's/^/| /' conftest.$ac_ext >&5
2723
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002724fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002726done
2727rm -f conftest*
2728if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2732fi
2733
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002740ac_ext=c
2741ac_cpp='$CPP $CPPFLAGS'
2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002746
2747
2748
2749echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002750echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2751if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753else
2754 ac_check_lib_save_LIBS=$LIBS
2755LIBS="-lpthread $LIBS"
2756cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002757/* confdefs.h. */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002762
2763/* Override any gcc2 internal prototype to avoid an error. */
2764#ifdef __cplusplus
2765extern "C"
2766#endif
2767/* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2769char pthread_create ();
2770int
2771main ()
2772{
2773pthread_create ();
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002781 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002786 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002790 (eval $ac_try) 2>&5
2791 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest$ac_exeext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002799 (exit $ac_status); }; }; then
2800 ac_cv_lib_pthread_pthread_create=yes
2801else
2802 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002803sed 's/^/| /' conftest.$ac_ext >&5
2804
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002805ac_cv_lib_pthread_pthread_create=no
2806fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002807rm -f conftest.err conftest.$ac_objext \
2808 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002809LIBS=$ac_check_lib_save_LIBS
2810fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002811echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002812echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2813if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002814 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002815#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002816_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002817
2818 LIBS="-lpthread $LIBS"
2819
2820fi
2821
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002822
2823echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002824echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
2825if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828 ac_check_lib_save_LIBS=$LIBS
2829LIBS="-lwsock32 $LIBS"
2830cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002831/* confdefs.h. */
2832_ACEOF
2833cat confdefs.h >>conftest.$ac_ext
2834cat >>conftest.$ac_ext <<_ACEOF
2835/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002836
2837/* Override any gcc2 internal prototype to avoid an error. */
2838#ifdef __cplusplus
2839extern "C"
2840#endif
2841/* We use char because int might match the return type of a gcc2
2842 builtin and then its argument prototype would still apply. */
2843char puts ();
2844int
2845main ()
2846{
2847puts ();
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2854 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002855 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002860 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002864 (eval $ac_try) 2>&5
2865 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest$ac_exeext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002873 (exit $ac_status); }; }; then
2874 ac_cv_lib_wsock32_puts=yes
2875else
2876 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002877sed 's/^/| /' conftest.$ac_ext >&5
2878
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002879ac_cv_lib_wsock32_puts=no
2880fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002881rm -f conftest.err conftest.$ac_objext \
2882 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002883LIBS=$ac_check_lib_save_LIBS
2884fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002885echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002886echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
2887if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002888 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002889#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002890_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002891
2892 LIBS="-lwsock32 $LIBS"
2893
2894fi
2895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002896
2897echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002898echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
2899if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901else
2902 ac_check_lib_save_LIBS=$LIBS
2903LIBS="-lws2_32 $LIBS"
2904cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002910
2911/* Override any gcc2 internal prototype to avoid an error. */
2912#ifdef __cplusplus
2913extern "C"
2914#endif
2915/* We use char because int might match the return type of a gcc2
2916 builtin and then its argument prototype would still apply. */
2917char puts ();
2918int
2919main ()
2920{
2921puts ();
2922 ;
2923 return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002929 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002934 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002938 (eval $ac_try) 2>&5
2939 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002947 (exit $ac_status); }; }; then
2948 ac_cv_lib_ws2_32_puts=yes
2949else
2950 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002951sed 's/^/| /' conftest.$ac_ext >&5
2952
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002953ac_cv_lib_ws2_32_puts=no
2954fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002955rm -f conftest.err conftest.$ac_objext \
2956 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002957LIBS=$ac_check_lib_save_LIBS
2958fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002959echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002960echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
2961if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002962 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002963#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002964_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002965
2966 LIBS="-lws2_32 $LIBS"
2967
2968fi
2969
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002970
2971echo "$as_me:$LINENO: checking for puts in -lole32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002972echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
2973if test "${ac_cv_lib_ole32_puts+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975else
2976 ac_check_lib_save_LIBS=$LIBS
2977LIBS="-lole32 $LIBS"
2978cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002979/* confdefs.h. */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002984
2985/* Override any gcc2 internal prototype to avoid an error. */
2986#ifdef __cplusplus
2987extern "C"
2988#endif
2989/* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
2991char puts ();
2992int
2993main ()
2994{
2995puts ();
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003003 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003008 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003009 { ac_try='test -z "$ac_c_werror_flag"
3010 || test ! -s conftest.err'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003012 (eval $ac_try) 2>&5
3013 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; } &&
3016 { ac_try='test -s conftest$ac_exeext'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 (eval $ac_try) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003021 (exit $ac_status); }; }; then
3022 ac_cv_lib_ole32_puts=yes
3023else
3024 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003025sed 's/^/| /' conftest.$ac_ext >&5
3026
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003027ac_cv_lib_ole32_puts=no
3028fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003029rm -f conftest.err conftest.$ac_objext \
3030 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003031LIBS=$ac_check_lib_save_LIBS
3032fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003033echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003034echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
3035if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003036 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003037#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003038_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003039
3040 LIBS="-lole32 $LIBS"
3041
3042fi
3043
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003044
3045echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003046echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
3047if test "${ac_cv_lib_winmm_puts+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049else
3050 ac_check_lib_save_LIBS=$LIBS
3051LIBS="-lwinmm $LIBS"
3052cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003053/* confdefs.h. */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003058
3059/* Override any gcc2 internal prototype to avoid an error. */
3060#ifdef __cplusplus
3061extern "C"
3062#endif
3063/* We use char because int might match the return type of a gcc2
3064 builtin and then its argument prototype would still apply. */
3065char puts ();
3066int
3067main ()
3068{
3069puts ();
3070 ;
3071 return 0;
3072}
3073_ACEOF
3074rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3076 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003077 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003082 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003083 { ac_try='test -z "$ac_c_werror_flag"
3084 || test ! -s conftest.err'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003086 (eval $ac_try) 2>&5
3087 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest$ac_exeext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 (eval $ac_try) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003095 (exit $ac_status); }; }; then
3096 ac_cv_lib_winmm_puts=yes
3097else
3098 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003099sed 's/^/| /' conftest.$ac_ext >&5
3100
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003101ac_cv_lib_winmm_puts=no
3102fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003103rm -f conftest.err conftest.$ac_objext \
3104 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003105LIBS=$ac_check_lib_save_LIBS
3106fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003107echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003108echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
3109if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003110 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003111#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003113
3114 LIBS="-lwinmm $LIBS"
3115
3116fi
3117
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003118
3119echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003120echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
3121if test "${ac_cv_lib_socket_puts+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124 ac_check_lib_save_LIBS=$LIBS
3125LIBS="-lsocket $LIBS"
3126cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003132
3133/* Override any gcc2 internal prototype to avoid an error. */
3134#ifdef __cplusplus
3135extern "C"
3136#endif
3137/* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3139char puts ();
3140int
3141main ()
3142{
3143puts ();
3144 ;
3145 return 0;
3146}
3147_ACEOF
3148rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3150 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003151 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003156 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003157 { ac_try='test -z "$ac_c_werror_flag"
3158 || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003160 (eval $ac_try) 2>&5
3161 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try='test -s conftest$ac_exeext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003169 (exit $ac_status); }; }; then
3170 ac_cv_lib_socket_puts=yes
3171else
3172 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003173sed 's/^/| /' conftest.$ac_ext >&5
3174
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003175ac_cv_lib_socket_puts=no
3176fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003177rm -f conftest.err conftest.$ac_objext \
3178 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003179LIBS=$ac_check_lib_save_LIBS
3180fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003181echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003182echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
3183if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003184 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003185#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003186_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003187
3188 LIBS="-lsocket $LIBS"
3189
3190fi
3191
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192
3193echo "$as_me:$LINENO: checking for puts in -lrt" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003194echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
3195if test "${ac_cv_lib_rt_puts+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198 ac_check_lib_save_LIBS=$LIBS
3199LIBS="-lrt $LIBS"
3200cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003201/* confdefs.h. */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003206
3207/* Override any gcc2 internal prototype to avoid an error. */
3208#ifdef __cplusplus
3209extern "C"
3210#endif
3211/* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3213char puts ();
3214int
3215main ()
3216{
3217puts ();
3218 ;
3219 return 0;
3220}
3221_ACEOF
3222rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003225 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003230 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003231 { ac_try='test -z "$ac_c_werror_flag"
3232 || test ! -s conftest.err'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003234 (eval $ac_try) 2>&5
3235 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest$ac_exeext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003243 (exit $ac_status); }; }; then
3244 ac_cv_lib_rt_puts=yes
3245else
3246 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003247sed 's/^/| /' conftest.$ac_ext >&5
3248
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003249ac_cv_lib_rt_puts=no
3250fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003251rm -f conftest.err conftest.$ac_objext \
3252 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003253LIBS=$ac_check_lib_save_LIBS
3254fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003255echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003256echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
3257if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003258 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003259#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003260_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003261
3262 LIBS="-lrt $LIBS"
3263
3264fi
3265
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003266
3267echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003268echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
3269if test "${ac_cv_lib_nsl_puts+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272 ac_check_lib_save_LIBS=$LIBS
3273LIBS="-lnsl $LIBS"
3274cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003280
3281/* Override any gcc2 internal prototype to avoid an error. */
3282#ifdef __cplusplus
3283extern "C"
3284#endif
3285/* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3287char puts ();
3288int
3289main ()
3290{
3291puts ();
3292 ;
3293 return 0;
3294}
3295_ACEOF
3296rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003299 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003304 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003305 { ac_try='test -z "$ac_c_werror_flag"
3306 || test ! -s conftest.err'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003308 (eval $ac_try) 2>&5
3309 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; } &&
3312 { ac_try='test -s conftest$ac_exeext'
3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 (eval $ac_try) 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003317 (exit $ac_status); }; }; then
3318 ac_cv_lib_nsl_puts=yes
3319else
3320 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003321sed 's/^/| /' conftest.$ac_ext >&5
3322
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003323ac_cv_lib_nsl_puts=no
3324fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003325rm -f conftest.err conftest.$ac_objext \
3326 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003327LIBS=$ac_check_lib_save_LIBS
3328fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003329echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003330echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
3331if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003332 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003333#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003334_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003335
3336 LIBS="-lnsl $LIBS"
3337
3338fi
3339
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003340
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003341echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3342echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
3343cat >>confdefs.h <<_ACEOF
3344#define PJ_M_NAME "$target_cpu"
3345_ACEOF
3346
3347
3348echo "$as_me:$LINENO: checking memory alignment" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003349echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
3350case $target in
3351 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003352 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003353#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003354_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003355
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003356 echo "$as_me:$LINENO: result: 8 bytes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003357echo "${ECHO_T}8 bytes" >&6
3358 ;;
3359 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003360 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003361#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003362_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003363
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003364 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003365echo "${ECHO_T}4 bytes (default)" >&6
3366 ;;
3367esac
3368
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003369
3370echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003371echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3372if test "${ac_cv_c_bigendian+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003375 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003376cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003377/* confdefs.h. */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003382#include <sys/types.h>
3383#include <sys/param.h>
3384
3385int
3386main ()
3387{
3388#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3389 bogus endian macros
3390#endif
3391
3392 ;
3393 return 0;
3394}
3395_ACEOF
3396rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003399 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003404 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003405 { ac_try='test -z "$ac_c_werror_flag"
3406 || test ! -s conftest.err'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003408 (eval $ac_try) 2>&5
3409 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; } &&
3412 { ac_try='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003417 (exit $ac_status); }; }; then
3418 # It does; now see whether it defined to BIG_ENDIAN or not.
3419cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003425#include <sys/types.h>
3426#include <sys/param.h>
3427
3428int
3429main ()
3430{
3431#if BYTE_ORDER != BIG_ENDIAN
3432 not big endian
3433#endif
3434
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003442 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003447 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003448 { ac_try='test -z "$ac_c_werror_flag"
3449 || test ! -s conftest.err'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003451 (eval $ac_try) 2>&5
3452 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; } &&
3455 { ac_try='test -s conftest.$ac_objext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003460 (exit $ac_status); }; }; then
3461 ac_cv_c_bigendian=yes
3462else
3463 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003464sed 's/^/| /' conftest.$ac_ext >&5
3465
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003466ac_cv_c_bigendian=no
3467fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003469else
3470 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003474if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003475 # try to guess the endianness by grepping values into an object file
3476 ac_cv_c_bigendian=unknown
3477 cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h. */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h. */
3483short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3484short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3485void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3486short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3487short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3488void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3489int
3490main ()
3491{
3492 _ascii (); _ebcdic ();
3493 ;
3494 return 0;
3495}
3496_ACEOF
3497rm -f conftest.$ac_objext
3498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>conftest.er1
3500 ac_status=$?
3501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try='test -z "$ac_c_werror_flag"
3507 || test ! -s conftest.err'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; } &&
3513 { ac_try='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3520 ac_cv_c_bigendian=yes
3521fi
3522if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3523 if test "$ac_cv_c_bigendian" = unknown; then
3524 ac_cv_c_bigendian=no
3525 else
3526 # finding both strings is unlikely to happen, but who knows?
3527 ac_cv_c_bigendian=unknown
3528 fi
3529fi
3530else
3531 echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534fi
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003536else
3537 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003538/* confdefs.h. */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003543int
3544main ()
3545{
3546 /* Are we little or big endian? From Harbison&Steele. */
3547 union
3548 {
3549 long l;
3550 char c[sizeof (long)];
3551 } u;
3552 u.l = 1;
3553 exit (u.c[sizeof (long) - 1] == 1);
3554}
3555_ACEOF
3556rm -f conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003558 (eval $ac_link) 2>&5
3559 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003563 (eval $ac_try) 2>&5
3564 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003566 (exit $ac_status); }; }; then
3567 ac_cv_c_bigendian=no
3568else
3569 echo "$as_me: program exited with status $ac_status" >&5
3570echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003574ac_cv_c_bigendian=yes
3575fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003577fi
3578fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003580fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003581echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003582echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003583case $ac_cv_c_bigendian in
3584 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003585
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003586cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003587#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003588_ACEOF
3589 ;;
3590 no)
3591 ;;
3592 *)
3593 { { echo "$as_me:$LINENO: error: unknown endianness
3594presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3595echo "$as_me: error: unknown endianness
3596presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3597 { (exit 1); exit 1; }; } ;;
3598esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003599
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003600
3601case $target in
3602 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003603 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003604#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003605_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003606
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003607 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003608#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003609_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003610
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003611 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003612#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003613_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003614
3615 ;;
3616 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003617 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003618#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003619_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003620
3621 ;;
3622 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003623 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003624#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003625_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003626
3627 ;;
3628 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003629 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003630#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003631_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003632
3633 ;;
3634 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003635 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003636#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003637_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003638
3639 ;;
3640 *)
3641 ;;
3642esac
3643
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003644
3645
3646
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003647# Check whether --enable-floating-point or --disable-floating-point was given.
3648if test "${enable_floating_point+set}" = set; then
3649 enableval="$enable_floating_point"
3650 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003651 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003652#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003653_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003654
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003655 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003656echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
3657 fi
3658else
3659
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003660 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003661#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003662_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003663
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003664 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003665echo "${ECHO_T}Checking if floating point is disabled... no" >&6
3666
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003667echo "$as_me:$LINENO: checking for fmod in -lm" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003668echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
3669if test "${ac_cv_lib_m_fmod+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672 ac_check_lib_save_LIBS=$LIBS
3673LIBS="-lm $LIBS"
3674cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003675/* confdefs.h. */
3676_ACEOF
3677cat confdefs.h >>conftest.$ac_ext
3678cat >>conftest.$ac_ext <<_ACEOF
3679/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003680
3681/* Override any gcc2 internal prototype to avoid an error. */
3682#ifdef __cplusplus
3683extern "C"
3684#endif
3685/* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687char fmod ();
3688int
3689main ()
3690{
3691fmod ();
3692 ;
3693 return 0;
3694}
3695_ACEOF
3696rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003699 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003704 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003705 { ac_try='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003708 (eval $ac_try) 2>&5
3709 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003717 (exit $ac_status); }; }; then
3718 ac_cv_lib_m_fmod=yes
3719else
3720 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003721sed 's/^/| /' conftest.$ac_ext >&5
3722
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003723ac_cv_lib_m_fmod=no
3724fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003725rm -f conftest.err conftest.$ac_objext \
3726 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003727LIBS=$ac_check_lib_save_LIBS
3728fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003729echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003730echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
3731if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003732 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003733#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003734_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003735
3736 LIBS="-lm $LIBS"
3737
3738fi
3739
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003740
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003741fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003742
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003743
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003749echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003750echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3751# On Suns, sometimes $CPP names a directory.
3752if test -n "$CPP" && test -d "$CPP"; then
3753 CPP=
3754fi
3755if test -z "$CPP"; then
3756 if test "${ac_cv_prog_CPP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 # Double quotes because CPP needs to be expanded
3760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3761 do
3762 ac_preproc_ok=false
3763for ac_c_preproc_warn_flag in '' yes
3764do
3765 # Use a header file that comes with gcc, so configuring glibc
3766 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3768 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003769 # On the NeXT, cc -E runs the code through the compiler's parser,
3770 # not just through cpp. "Syntax error" is here to catch this case.
3771 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003772/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h. */
3777#ifdef __STDC__
3778# include <limits.h>
3779#else
3780# include <assert.h>
3781#endif
3782 Syntax error
3783_ACEOF
3784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3786 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003787 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003788 rm -f conftest.er1
3789 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003791 (exit $ac_status); } >/dev/null; then
3792 if test -s conftest.err; then
3793 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003795 else
3796 ac_cpp_err=
3797 fi
3798else
3799 ac_cpp_err=yes
3800fi
3801if test -z "$ac_cpp_err"; then
3802 :
3803else
3804 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003805sed 's/^/| /' conftest.$ac_ext >&5
3806
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003807 # Broken: fails on valid input.
3808continue
3809fi
3810rm -f conftest.err conftest.$ac_ext
3811
3812 # OK, works on sane cases. Now check whether non-existent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003820#include <ac_nonexistent.h>
3821_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003825 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003826 rm -f conftest.er1
3827 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003829 (exit $ac_status); } >/dev/null; then
3830 if test -s conftest.err; then
3831 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003833 else
3834 ac_cpp_err=
3835 fi
3836else
3837 ac_cpp_err=yes
3838fi
3839if test -z "$ac_cpp_err"; then
3840 # Broken: success on invalid input.
3841continue
3842else
3843 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003844sed 's/^/| /' conftest.$ac_ext >&5
3845
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003846 # Passes both tests.
3847ac_preproc_ok=:
3848break
3849fi
3850rm -f conftest.err conftest.$ac_ext
3851
3852done
3853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854rm -f conftest.err conftest.$ac_ext
3855if $ac_preproc_ok; then
3856 break
3857fi
3858
3859 done
3860 ac_cv_prog_CPP=$CPP
3861
3862fi
3863 CPP=$ac_cv_prog_CPP
3864else
3865 ac_cv_prog_CPP=$CPP
3866fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003867echo "$as_me:$LINENO: result: $CPP" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003868echo "${ECHO_T}$CPP" >&6
3869ac_preproc_ok=false
3870for ac_c_preproc_warn_flag in '' yes
3871do
3872 # Use a header file that comes with gcc, so configuring glibc
3873 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003876 # On the NeXT, cc -E runs the code through the compiler's parser,
3877 # not just through cpp. "Syntax error" is here to catch this case.
3878 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003879/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003880_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
3884#ifdef __STDC__
3885# include <limits.h>
3886#else
3887# include <assert.h>
3888#endif
3889 Syntax error
3890_ACEOF
3891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3893 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003894 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003895 rm -f conftest.er1
3896 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003898 (exit $ac_status); } >/dev/null; then
3899 if test -s conftest.err; then
3900 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003902 else
3903 ac_cpp_err=
3904 fi
3905else
3906 ac_cpp_err=yes
3907fi
3908if test -z "$ac_cpp_err"; then
3909 :
3910else
3911 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003912sed 's/^/| /' conftest.$ac_ext >&5
3913
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003914 # Broken: fails on valid input.
3915continue
3916fi
3917rm -f conftest.err conftest.$ac_ext
3918
3919 # OK, works on sane cases. Now check whether non-existent headers
3920 # can be detected and how.
3921 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003922/* confdefs.h. */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003927#include <ac_nonexistent.h>
3928_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3931 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003932 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003933 rm -f conftest.er1
3934 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003936 (exit $ac_status); } >/dev/null; then
3937 if test -s conftest.err; then
3938 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003940 else
3941 ac_cpp_err=
3942 fi
3943else
3944 ac_cpp_err=yes
3945fi
3946if test -z "$ac_cpp_err"; then
3947 # Broken: success on invalid input.
3948continue
3949else
3950 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003951sed 's/^/| /' conftest.$ac_ext >&5
3952
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003953 # Passes both tests.
3954ac_preproc_ok=:
3955break
3956fi
3957rm -f conftest.err conftest.$ac_ext
3958
3959done
3960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3961rm -f conftest.err conftest.$ac_ext
3962if $ac_preproc_ok; then
3963 :
3964else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003965 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3966See \`config.log' for more details." >&5
3967echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3968See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003969 { (exit 1); exit 1; }; }
3970fi
3971
3972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003978
3979echo "$as_me:$LINENO: checking for egrep" >&5
3980echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3981if test "${ac_cv_prog_egrep+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3985 then ac_cv_prog_egrep='grep -E'
3986 else ac_cv_prog_egrep='egrep'
3987 fi
3988fi
3989echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3990echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3991 EGREP=$ac_cv_prog_egrep
3992
3993
3994echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3995echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3996if test "${ac_cv_header_stdc+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
4005#include <stdlib.h>
4006#include <stdarg.h>
4007#include <string.h>
4008#include <float.h>
4009
4010int
4011main ()
4012{
4013
4014 ;
4015 return 0;
4016}
4017_ACEOF
4018rm -f conftest.$ac_objext
4019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } &&
4027 { ac_try='test -z "$ac_c_werror_flag"
4028 || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; } &&
4034 { ac_try='test -s conftest.$ac_objext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_header_stdc=yes
4041else
4042 echo "$as_me: failed program was:" >&5
4043sed 's/^/| /' conftest.$ac_ext >&5
4044
4045ac_cv_header_stdc=no
4046fi
4047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4048
4049if test $ac_cv_header_stdc = yes; then
4050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4051 cat >conftest.$ac_ext <<_ACEOF
4052/* confdefs.h. */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h. */
4057#include <string.h>
4058
4059_ACEOF
4060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4061 $EGREP "memchr" >/dev/null 2>&1; then
4062 :
4063else
4064 ac_cv_header_stdc=no
4065fi
4066rm -f conftest*
4067
4068fi
4069
4070if test $ac_cv_header_stdc = yes; then
4071 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4072 cat >conftest.$ac_ext <<_ACEOF
4073/* confdefs.h. */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h. */
4078#include <stdlib.h>
4079
4080_ACEOF
4081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4082 $EGREP "free" >/dev/null 2>&1; then
4083 :
4084else
4085 ac_cv_header_stdc=no
4086fi
4087rm -f conftest*
4088
4089fi
4090
4091if test $ac_cv_header_stdc = yes; then
4092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4093 if test "$cross_compiling" = yes; then
4094 :
4095else
4096 cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102#include <ctype.h>
4103#if ((' ' & 0x0FF) == 0x020)
4104# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4105# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4106#else
4107# define ISLOWER(c) \
4108 (('a' <= (c) && (c) <= 'i') \
4109 || ('j' <= (c) && (c) <= 'r') \
4110 || ('s' <= (c) && (c) <= 'z'))
4111# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4112#endif
4113
4114#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4115int
4116main ()
4117{
4118 int i;
4119 for (i = 0; i < 256; i++)
4120 if (XOR (islower (i), ISLOWER (i))
4121 || toupper (i) != TOUPPER (i))
4122 exit(2);
4123 exit (0);
4124}
4125_ACEOF
4126rm -f conftest$ac_exeext
4127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4128 (eval $ac_link) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 :
4138else
4139 echo "$as_me: program exited with status $ac_status" >&5
4140echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143( exit $ac_status )
4144ac_cv_header_stdc=no
4145fi
4146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4147fi
4148fi
4149fi
4150echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4151echo "${ECHO_T}$ac_cv_header_stdc" >&6
4152if test $ac_cv_header_stdc = yes; then
4153
4154cat >>confdefs.h <<\_ACEOF
4155#define STDC_HEADERS 1
4156_ACEOF
4157
4158fi
4159
4160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4171 inttypes.h stdint.h unistd.h
4172do
4173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4174echo "$as_me:$LINENO: checking for $ac_header" >&5
4175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4176if eval "test \"\${$as_ac_Header+set}\" = set"; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179 cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h. */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h. */
4185$ac_includes_default
4186
4187#include <$ac_header>
4188_ACEOF
4189rm -f conftest.$ac_objext
4190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_c_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 eval "$as_ac_Header=yes"
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216eval "$as_ac_Header=no"
4217fi
4218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219fi
4220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4222if test `eval echo '${'$as_ac_Header'}'` = yes; then
4223 cat >>confdefs.h <<_ACEOF
4224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4225_ACEOF
4226
4227fi
4228
4229done
4230
4231
4232if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4233 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4234echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4235if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237fi
4238echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4239echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4240else
4241 # Is the header compilable?
4242echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4243echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
4244cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h. */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h. */
4250$ac_includes_default
4251#include <arpa/inet.h>
4252_ACEOF
4253rm -f conftest.$ac_objext
4254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_header_compiler=yes
4276else
4277 echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280ac_header_compiler=no
4281fi
4282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4283echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4284echo "${ECHO_T}$ac_header_compiler" >&6
4285
4286# Is the header present?
4287echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4288echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
4289cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
4295#include <arpa/inet.h>
4296_ACEOF
4297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } >/dev/null; then
4305 if test -s conftest.err; then
4306 ac_cpp_err=$ac_c_preproc_warn_flag
4307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4308 else
4309 ac_cpp_err=
4310 fi
4311else
4312 ac_cpp_err=yes
4313fi
4314if test -z "$ac_cpp_err"; then
4315 ac_header_preproc=yes
4316else
4317 echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320 ac_header_preproc=no
4321fi
4322rm -f conftest.err conftest.$ac_ext
4323echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4324echo "${ECHO_T}$ac_header_preproc" >&6
4325
4326# So? What about this header?
4327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4328 yes:no: )
4329 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4330echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4331 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4332echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4333 ac_header_preproc=yes
4334 ;;
4335 no:yes:* )
4336 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4337echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4338 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4339echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4340 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4341echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4342 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4343echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4344 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4345echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4346 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4347echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
4348 (
4349 cat <<\_ASBOX
4350## ------------------------------------ ##
4351## Report this to the pjproject lists. ##
4352## ------------------------------------ ##
4353_ASBOX
4354 ) |
4355 sed "s/^/$as_me: WARNING: /" >&2
4356 ;;
4357esac
4358echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004359echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4360if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004362else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004363 ac_cv_header_arpa_inet_h=$ac_header_preproc
4364fi
4365echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4366echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4367
4368fi
4369if test $ac_cv_header_arpa_inet_h = yes; then
4370 cat >>confdefs.h <<\_ACEOF
4371#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004372_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004373
4374fi
4375
4376
4377if test "${ac_cv_header_assert_h+set}" = set; then
4378 echo "$as_me:$LINENO: checking for assert.h" >&5
4379echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4380if test "${ac_cv_header_assert_h+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382fi
4383echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4384echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4385else
4386 # Is the header compilable?
4387echo "$as_me:$LINENO: checking assert.h usability" >&5
4388echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
4389cat >conftest.$ac_ext <<_ACEOF
4390/* confdefs.h. */
4391_ACEOF
4392cat confdefs.h >>conftest.$ac_ext
4393cat >>conftest.$ac_ext <<_ACEOF
4394/* end confdefs.h. */
4395$ac_includes_default
4396#include <assert.h>
4397_ACEOF
4398rm -f conftest.$ac_objext
4399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004401 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004402 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004403 rm -f conftest.er1
4404 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag"
4408 || test ! -s conftest.err'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_header_compiler=yes
4421else
4422 echo "$as_me: failed program was:" >&5
4423sed 's/^/| /' conftest.$ac_ext >&5
4424
4425ac_header_compiler=no
4426fi
4427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4429echo "${ECHO_T}$ac_header_compiler" >&6
4430
4431# Is the header present?
4432echo "$as_me:$LINENO: checking assert.h presence" >&5
4433echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
4434cat >conftest.$ac_ext <<_ACEOF
4435/* confdefs.h. */
4436_ACEOF
4437cat confdefs.h >>conftest.$ac_ext
4438cat >>conftest.$ac_ext <<_ACEOF
4439/* end confdefs.h. */
4440#include <assert.h>
4441_ACEOF
4442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004449 (exit $ac_status); } >/dev/null; then
4450 if test -s conftest.err; then
4451 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004453 else
4454 ac_cpp_err=
4455 fi
4456else
4457 ac_cpp_err=yes
4458fi
4459if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004460 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004461else
4462 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004463sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004466fi
4467rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4469echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004470
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004471# So? What about this header?
4472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4473 yes:no: )
4474 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4475echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4476 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4477echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4478 ac_header_preproc=yes
4479 ;;
4480 no:yes:* )
4481 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4482echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4483 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4484echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4486echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4488echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4490echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4492echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
4493 (
4494 cat <<\_ASBOX
4495## ------------------------------------ ##
4496## Report this to the pjproject lists. ##
4497## ------------------------------------ ##
4498_ASBOX
4499 ) |
4500 sed "s/^/$as_me: WARNING: /" >&2
4501 ;;
4502esac
4503echo "$as_me:$LINENO: checking for assert.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004504echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4505if test "${ac_cv_header_assert_h+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004507else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004508 ac_cv_header_assert_h=$ac_header_preproc
4509fi
4510echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4511echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4512
4513fi
4514if test $ac_cv_header_assert_h = yes; then
4515 cat >>confdefs.h <<\_ACEOF
4516#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004517_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004518
4519fi
4520
4521
4522if test "${ac_cv_header_ctype_h+set}" = set; then
4523 echo "$as_me:$LINENO: checking for ctype.h" >&5
4524echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4525if test "${ac_cv_header_ctype_h+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527fi
4528echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4529echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4530else
4531 # Is the header compilable?
4532echo "$as_me:$LINENO: checking ctype.h usability" >&5
4533echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
4534cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h. */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h. */
4540$ac_includes_default
4541#include <ctype.h>
4542_ACEOF
4543rm -f conftest.$ac_objext
4544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004546 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004547 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004548 rm -f conftest.er1
4549 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_header_compiler=yes
4566else
4567 echo "$as_me: failed program was:" >&5
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
4570ac_header_compiler=no
4571fi
4572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4574echo "${ECHO_T}$ac_header_compiler" >&6
4575
4576# Is the header present?
4577echo "$as_me:$LINENO: checking ctype.h presence" >&5
4578echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
4579cat >conftest.$ac_ext <<_ACEOF
4580/* confdefs.h. */
4581_ACEOF
4582cat confdefs.h >>conftest.$ac_ext
4583cat >>conftest.$ac_ext <<_ACEOF
4584/* end confdefs.h. */
4585#include <ctype.h>
4586_ACEOF
4587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004594 (exit $ac_status); } >/dev/null; then
4595 if test -s conftest.err; then
4596 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004598 else
4599 ac_cpp_err=
4600 fi
4601else
4602 ac_cpp_err=yes
4603fi
4604if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004605 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004606else
4607 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004611fi
4612rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4614echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004615
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004616# So? What about this header?
4617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4618 yes:no: )
4619 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4620echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4621 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4622echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4623 ac_header_preproc=yes
4624 ;;
4625 no:yes:* )
4626 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4627echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4628 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4629echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4630 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4631echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4632 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4633echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4634 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4635echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4636 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4637echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
4638 (
4639 cat <<\_ASBOX
4640## ------------------------------------ ##
4641## Report this to the pjproject lists. ##
4642## ------------------------------------ ##
4643_ASBOX
4644 ) |
4645 sed "s/^/$as_me: WARNING: /" >&2
4646 ;;
4647esac
4648echo "$as_me:$LINENO: checking for ctype.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004649echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4650if test "${ac_cv_header_ctype_h+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004652else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004653 ac_cv_header_ctype_h=$ac_header_preproc
4654fi
4655echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4656echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4657
4658fi
4659if test $ac_cv_header_ctype_h = yes; then
4660 cat >>confdefs.h <<\_ACEOF
4661#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004662_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004663
4664fi
4665
4666
4667
4668case $target in
4669 *mingw* | *cygw* | *win32* | *w32* )
4670 cat >>confdefs.h <<\_ACEOF
4671#define PJ_HAS_ERRNO_H 0
4672_ACEOF
4673
4674 ;;
4675 *)
4676 if test "${ac_cv_header_errno_h+set}" = set; then
4677 echo "$as_me:$LINENO: checking for errno.h" >&5
4678echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4679if test "${ac_cv_header_errno_h+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681fi
4682echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4683echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4684else
4685 # Is the header compilable?
4686echo "$as_me:$LINENO: checking errno.h usability" >&5
4687echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4688cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h. */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h. */
4694$ac_includes_default
4695#include <errno.h>
4696_ACEOF
4697rm -f conftest.$ac_objext
4698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004700 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004701 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004702 rm -f conftest.er1
4703 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -z "$ac_c_werror_flag"
4707 || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 ac_header_compiler=yes
4720else
4721 echo "$as_me: failed program was:" >&5
4722sed 's/^/| /' conftest.$ac_ext >&5
4723
4724ac_header_compiler=no
4725fi
4726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4728echo "${ECHO_T}$ac_header_compiler" >&6
4729
4730# Is the header present?
4731echo "$as_me:$LINENO: checking errno.h presence" >&5
4732echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4733cat >conftest.$ac_ext <<_ACEOF
4734/* confdefs.h. */
4735_ACEOF
4736cat confdefs.h >>conftest.$ac_ext
4737cat >>conftest.$ac_ext <<_ACEOF
4738/* end confdefs.h. */
4739#include <errno.h>
4740_ACEOF
4741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004748 (exit $ac_status); } >/dev/null; then
4749 if test -s conftest.err; then
4750 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004752 else
4753 ac_cpp_err=
4754 fi
4755else
4756 ac_cpp_err=yes
4757fi
4758if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004759 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004760else
4761 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004765fi
4766rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4768echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004769
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004770# So? What about this header?
4771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4772 yes:no: )
4773 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4774echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4776echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4777 ac_header_preproc=yes
4778 ;;
4779 no:yes:* )
4780 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4781echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4782 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4783echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4784 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4785echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4787echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4789echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4791echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4792 (
4793 cat <<\_ASBOX
4794## ------------------------------------ ##
4795## Report this to the pjproject lists. ##
4796## ------------------------------------ ##
4797_ASBOX
4798 ) |
4799 sed "s/^/$as_me: WARNING: /" >&2
4800 ;;
4801esac
4802echo "$as_me:$LINENO: checking for errno.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004803echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4804if test "${ac_cv_header_errno_h+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004806else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004807 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004808fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004809echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004810echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004811
4812fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004813if test $ac_cv_header_errno_h = yes; then
4814 cat >>confdefs.h <<\_ACEOF
4815#define PJ_HAS_ERRNO_H 1
4816_ACEOF
4817
4818fi
4819
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004820
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004821 ;;
4822esac
4823
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004824if test "${ac_cv_header_linux_socket_h+set}" = set; then
4825 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4826echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4827if test "${ac_cv_header_linux_socket_h+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829fi
4830echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4831echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4832else
4833 # Is the header compilable?
4834echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
4835echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
4836cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h. */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h. */
4842$ac_includes_default
4843#include <linux/socket.h>
4844_ACEOF
4845rm -f conftest.$ac_objext
4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_c_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_header_compiler=yes
4868else
4869 echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
4872ac_header_compiler=no
4873fi
4874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4876echo "${ECHO_T}$ac_header_compiler" >&6
4877
4878# Is the header present?
4879echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
4880echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
4881cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887#include <linux/socket.h>
4888_ACEOF
4889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } >/dev/null; then
4897 if test -s conftest.err; then
4898 ac_cpp_err=$ac_c_preproc_warn_flag
4899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4900 else
4901 ac_cpp_err=
4902 fi
4903else
4904 ac_cpp_err=yes
4905fi
4906if test -z "$ac_cpp_err"; then
4907 ac_header_preproc=yes
4908else
4909 echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 ac_header_preproc=no
4913fi
4914rm -f conftest.err conftest.$ac_ext
4915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4916echo "${ECHO_T}$ac_header_preproc" >&6
4917
4918# So? What about this header?
4919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4920 yes:no: )
4921 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
4922echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4923 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
4924echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
4925 ac_header_preproc=yes
4926 ;;
4927 no:yes:* )
4928 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
4929echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
4930 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
4931echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
4933echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
4935echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
4936 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
4937echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
4939echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
4940 (
4941 cat <<\_ASBOX
4942## ------------------------------------ ##
4943## Report this to the pjproject lists. ##
4944## ------------------------------------ ##
4945_ASBOX
4946 ) |
4947 sed "s/^/$as_me: WARNING: /" >&2
4948 ;;
4949esac
4950echo "$as_me:$LINENO: checking for linux/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004951echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4952if test "${ac_cv_header_linux_socket_h+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004954else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004955 ac_cv_header_linux_socket_h=$ac_header_preproc
4956fi
4957echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4958echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4959
4960fi
4961if test $ac_cv_header_linux_socket_h = yes; then
4962 cat >>confdefs.h <<\_ACEOF
4963#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004964_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004965
4966fi
4967
4968
4969if test "${ac_cv_header_malloc_h+set}" = set; then
4970 echo "$as_me:$LINENO: checking for malloc.h" >&5
4971echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
4972if test "${ac_cv_header_malloc_h+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974fi
4975echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
4976echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
4977else
4978 # Is the header compilable?
4979echo "$as_me:$LINENO: checking malloc.h usability" >&5
4980echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
4981cat >conftest.$ac_ext <<_ACEOF
4982/* confdefs.h. */
4983_ACEOF
4984cat confdefs.h >>conftest.$ac_ext
4985cat >>conftest.$ac_ext <<_ACEOF
4986/* end confdefs.h. */
4987$ac_includes_default
4988#include <malloc.h>
4989_ACEOF
4990rm -f conftest.$ac_objext
4991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004993 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004994 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004995 rm -f conftest.er1
4996 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_c_werror_flag"
5000 || test ! -s conftest.err'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; } &&
5006 { ac_try='test -s conftest.$ac_objext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_header_compiler=yes
5013else
5014 echo "$as_me: failed program was:" >&5
5015sed 's/^/| /' conftest.$ac_ext >&5
5016
5017ac_header_compiler=no
5018fi
5019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5021echo "${ECHO_T}$ac_header_compiler" >&6
5022
5023# Is the header present?
5024echo "$as_me:$LINENO: checking malloc.h presence" >&5
5025echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
5026cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
5032#include <malloc.h>
5033_ACEOF
5034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005041 (exit $ac_status); } >/dev/null; then
5042 if test -s conftest.err; then
5043 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005045 else
5046 ac_cpp_err=
5047 fi
5048else
5049 ac_cpp_err=yes
5050fi
5051if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005052 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005053else
5054 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005058fi
5059rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5061echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005062
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005063# So? What about this header?
5064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5065 yes:no: )
5066 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5067echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5068 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5069echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5070 ac_header_preproc=yes
5071 ;;
5072 no:yes:* )
5073 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5074echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5076echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5078echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5080echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5081 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5082echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5084echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5085 (
5086 cat <<\_ASBOX
5087## ------------------------------------ ##
5088## Report this to the pjproject lists. ##
5089## ------------------------------------ ##
5090_ASBOX
5091 ) |
5092 sed "s/^/$as_me: WARNING: /" >&2
5093 ;;
5094esac
5095echo "$as_me:$LINENO: checking for malloc.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005096echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5097if test "${ac_cv_header_malloc_h+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005099else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005100 ac_cv_header_malloc_h=$ac_header_preproc
5101fi
5102echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5103echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5104
5105fi
5106if test $ac_cv_header_malloc_h = yes; then
5107 cat >>confdefs.h <<\_ACEOF
5108#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005109_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005110
5111fi
5112
5113
5114if test "${ac_cv_header_netdb_h+set}" = set; then
5115 echo "$as_me:$LINENO: checking for netdb.h" >&5
5116echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5117if test "${ac_cv_header_netdb_h+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119fi
5120echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5121echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5122else
5123 # Is the header compilable?
5124echo "$as_me:$LINENO: checking netdb.h usability" >&5
5125echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
5126cat >conftest.$ac_ext <<_ACEOF
5127/* confdefs.h. */
5128_ACEOF
5129cat confdefs.h >>conftest.$ac_ext
5130cat >>conftest.$ac_ext <<_ACEOF
5131/* end confdefs.h. */
5132$ac_includes_default
5133#include <netdb.h>
5134_ACEOF
5135rm -f conftest.$ac_objext
5136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005138 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005139 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005140 rm -f conftest.er1
5141 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -z "$ac_c_werror_flag"
5145 || test ! -s conftest.err'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; } &&
5151 { ac_try='test -s conftest.$ac_objext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5157 ac_header_compiler=yes
5158else
5159 echo "$as_me: failed program was:" >&5
5160sed 's/^/| /' conftest.$ac_ext >&5
5161
5162ac_header_compiler=no
5163fi
5164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5166echo "${ECHO_T}$ac_header_compiler" >&6
5167
5168# Is the header present?
5169echo "$as_me:$LINENO: checking netdb.h presence" >&5
5170echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
5177#include <netdb.h>
5178_ACEOF
5179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005186 (exit $ac_status); } >/dev/null; then
5187 if test -s conftest.err; then
5188 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005190 else
5191 ac_cpp_err=
5192 fi
5193else
5194 ac_cpp_err=yes
5195fi
5196if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005197 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005198else
5199 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005200sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005203fi
5204rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005207
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005208# So? What about this header?
5209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5210 yes:no: )
5211 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5212echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5214echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5215 ac_header_preproc=yes
5216 ;;
5217 no:yes:* )
5218 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5219echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5220 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5221echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5223echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5225echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5227echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5229echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
5230 (
5231 cat <<\_ASBOX
5232## ------------------------------------ ##
5233## Report this to the pjproject lists. ##
5234## ------------------------------------ ##
5235_ASBOX
5236 ) |
5237 sed "s/^/$as_me: WARNING: /" >&2
5238 ;;
5239esac
5240echo "$as_me:$LINENO: checking for netdb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005241echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5242if test "${ac_cv_header_netdb_h+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005244else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005245 ac_cv_header_netdb_h=$ac_header_preproc
5246fi
5247echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5248echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5249
5250fi
5251if test $ac_cv_header_netdb_h = yes; then
5252 cat >>confdefs.h <<\_ACEOF
5253#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005254_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005255
5256fi
5257
5258
5259if test "${ac_cv_header_netinet_in_h+set}" = set; then
5260 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5261echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5262if test "${ac_cv_header_netinet_in_h+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264fi
5265echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5266echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5267else
5268 # Is the header compilable?
5269echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5270echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5271cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h. */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h. */
5277$ac_includes_default
5278#include <netinet/in.h>
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005283 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005284 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005285 rm -f conftest.er1
5286 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -z "$ac_c_werror_flag"
5290 || test ! -s conftest.err'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 ac_header_compiler=yes
5303else
5304 echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307ac_header_compiler=no
5308fi
5309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5311echo "${ECHO_T}$ac_header_compiler" >&6
5312
5313# Is the header present?
5314echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5315echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5316cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
5322#include <netinet/in.h>
5323_ACEOF
5324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005331 (exit $ac_status); } >/dev/null; then
5332 if test -s conftest.err; then
5333 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005335 else
5336 ac_cpp_err=
5337 fi
5338else
5339 ac_cpp_err=yes
5340fi
5341if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005342 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005343else
5344 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005345sed 's/^/| /' conftest.$ac_ext >&5
5346
5347 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005348fi
5349rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5351echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005352
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005353# So? What about this header?
5354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5355 yes:no: )
5356 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5357echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5359echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5360 ac_header_preproc=yes
5361 ;;
5362 no:yes:* )
5363 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5364echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5365 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5366echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5367 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5368echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5370echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5372echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5374echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5375 (
5376 cat <<\_ASBOX
5377## ------------------------------------ ##
5378## Report this to the pjproject lists. ##
5379## ------------------------------------ ##
5380_ASBOX
5381 ) |
5382 sed "s/^/$as_me: WARNING: /" >&2
5383 ;;
5384esac
5385echo "$as_me:$LINENO: checking for netinet/in.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005386echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5387if test "${ac_cv_header_netinet_in_h+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005389else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005390 ac_cv_header_netinet_in_h=$ac_header_preproc
5391fi
5392echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5393echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5394
5395fi
5396if test $ac_cv_header_netinet_in_h = yes; then
5397 cat >>confdefs.h <<\_ACEOF
5398#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005399_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005400
5401fi
5402
5403
5404if test "${ac_cv_header_setjmp_h+set}" = set; then
5405 echo "$as_me:$LINENO: checking for setjmp.h" >&5
5406echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5407if test "${ac_cv_header_setjmp_h+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409fi
5410echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5411echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5412else
5413 # Is the header compilable?
5414echo "$as_me:$LINENO: checking setjmp.h usability" >&5
5415echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
5416cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h. */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h. */
5422$ac_includes_default
5423#include <setjmp.h>
5424_ACEOF
5425rm -f conftest.$ac_objext
5426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005428 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005429 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005430 rm -f conftest.er1
5431 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -z "$ac_c_werror_flag"
5435 || test ! -s conftest.err'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_header_compiler=yes
5448else
5449 echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452ac_header_compiler=no
5453fi
5454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5456echo "${ECHO_T}$ac_header_compiler" >&6
5457
5458# Is the header present?
5459echo "$as_me:$LINENO: checking setjmp.h presence" >&5
5460echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
5461cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h. */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h. */
5467#include <setjmp.h>
5468_ACEOF
5469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5471 ac_status=$?
5472 grep -v '^ *+' conftest.er1 >conftest.err
5473 rm -f conftest.er1
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005476 (exit $ac_status); } >/dev/null; then
5477 if test -s conftest.err; then
5478 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005480 else
5481 ac_cpp_err=
5482 fi
5483else
5484 ac_cpp_err=yes
5485fi
5486if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005487 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005488else
5489 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005490sed 's/^/| /' conftest.$ac_ext >&5
5491
5492 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005493fi
5494rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5496echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005497
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005498# So? What about this header?
5499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5500 yes:no: )
5501 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5502echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5503 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
5504echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
5505 ac_header_preproc=yes
5506 ;;
5507 no:yes:* )
5508 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
5509echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
5511echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
5513echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
5515echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
5517echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
5519echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
5520 (
5521 cat <<\_ASBOX
5522## ------------------------------------ ##
5523## Report this to the pjproject lists. ##
5524## ------------------------------------ ##
5525_ASBOX
5526 ) |
5527 sed "s/^/$as_me: WARNING: /" >&2
5528 ;;
5529esac
5530echo "$as_me:$LINENO: checking for setjmp.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005531echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5532if test "${ac_cv_header_setjmp_h+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005534else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005535 ac_cv_header_setjmp_h=$ac_header_preproc
5536fi
5537echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5538echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5539
5540fi
5541if test $ac_cv_header_setjmp_h = yes; then
5542 cat >>confdefs.h <<\_ACEOF
5543#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005544_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005545
5546fi
5547
5548
5549if test "${ac_cv_header_stdarg_h+set}" = set; then
5550 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5551echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5552if test "${ac_cv_header_stdarg_h+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554fi
5555echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5556echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5557else
5558 # Is the header compilable?
5559echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5560echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
5561cat >conftest.$ac_ext <<_ACEOF
5562/* confdefs.h. */
5563_ACEOF
5564cat confdefs.h >>conftest.$ac_ext
5565cat >>conftest.$ac_ext <<_ACEOF
5566/* end confdefs.h. */
5567$ac_includes_default
5568#include <stdarg.h>
5569_ACEOF
5570rm -f conftest.$ac_objext
5571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005573 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005574 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005575 rm -f conftest.er1
5576 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_c_werror_flag"
5580 || test ! -s conftest.err'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 (eval $ac_try) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; } &&
5586 { ac_try='test -s conftest.$ac_objext'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5592 ac_header_compiler=yes
5593else
5594 echo "$as_me: failed program was:" >&5
5595sed 's/^/| /' conftest.$ac_ext >&5
5596
5597ac_header_compiler=no
5598fi
5599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5601echo "${ECHO_T}$ac_header_compiler" >&6
5602
5603# Is the header present?
5604echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5605echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5606cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h. */
5612#include <stdarg.h>
5613_ACEOF
5614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005621 (exit $ac_status); } >/dev/null; then
5622 if test -s conftest.err; then
5623 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005625 else
5626 ac_cpp_err=
5627 fi
5628else
5629 ac_cpp_err=yes
5630fi
5631if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005632 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005633else
5634 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005635sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005638fi
5639rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005640echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5641echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005642
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005643# So? What about this header?
5644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5645 yes:no: )
5646 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5647echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5649echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5650 ac_header_preproc=yes
5651 ;;
5652 no:yes:* )
5653 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5654echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5655 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5656echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5658echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5660echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5661 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5662echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5664echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5665 (
5666 cat <<\_ASBOX
5667## ------------------------------------ ##
5668## Report this to the pjproject lists. ##
5669## ------------------------------------ ##
5670_ASBOX
5671 ) |
5672 sed "s/^/$as_me: WARNING: /" >&2
5673 ;;
5674esac
5675echo "$as_me:$LINENO: checking for stdarg.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005676echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5677if test "${ac_cv_header_stdarg_h+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005679else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005680 ac_cv_header_stdarg_h=$ac_header_preproc
5681fi
5682echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5683echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5684
5685fi
5686if test $ac_cv_header_stdarg_h = yes; then
5687 cat >>confdefs.h <<\_ACEOF
5688#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005689_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005690
5691fi
5692
5693
5694if test "${ac_cv_header_stddef_h+set}" = set; then
5695 echo "$as_me:$LINENO: checking for stddef.h" >&5
5696echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5697if test "${ac_cv_header_stddef_h+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699fi
5700echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5701echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5702else
5703 # Is the header compilable?
5704echo "$as_me:$LINENO: checking stddef.h usability" >&5
5705echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
5706cat >conftest.$ac_ext <<_ACEOF
5707/* confdefs.h. */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
5711/* end confdefs.h. */
5712$ac_includes_default
5713#include <stddef.h>
5714_ACEOF
5715rm -f conftest.$ac_objext
5716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005718 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005719 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005720 rm -f conftest.er1
5721 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest.$ac_objext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_header_compiler=yes
5738else
5739 echo "$as_me: failed program was:" >&5
5740sed 's/^/| /' conftest.$ac_ext >&5
5741
5742ac_header_compiler=no
5743fi
5744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5746echo "${ECHO_T}$ac_header_compiler" >&6
5747
5748# Is the header present?
5749echo "$as_me:$LINENO: checking stddef.h presence" >&5
5750echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
5751cat >conftest.$ac_ext <<_ACEOF
5752/* confdefs.h. */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
5756/* end confdefs.h. */
5757#include <stddef.h>
5758_ACEOF
5759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005766 (exit $ac_status); } >/dev/null; then
5767 if test -s conftest.err; then
5768 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005770 else
5771 ac_cpp_err=
5772 fi
5773else
5774 ac_cpp_err=yes
5775fi
5776if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005777 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005778else
5779 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005780sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005783fi
5784rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5786echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005787
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005788# So? What about this header?
5789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5790 yes:no: )
5791 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
5792echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5793 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
5794echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
5795 ac_header_preproc=yes
5796 ;;
5797 no:yes:* )
5798 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
5799echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
5800 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
5801echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
5802 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
5803echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
5804 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
5805echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
5806 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
5807echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
5808 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
5809echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
5810 (
5811 cat <<\_ASBOX
5812## ------------------------------------ ##
5813## Report this to the pjproject lists. ##
5814## ------------------------------------ ##
5815_ASBOX
5816 ) |
5817 sed "s/^/$as_me: WARNING: /" >&2
5818 ;;
5819esac
5820echo "$as_me:$LINENO: checking for stddef.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005821echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5822if test "${ac_cv_header_stddef_h+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005824else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005825 ac_cv_header_stddef_h=$ac_header_preproc
5826fi
5827echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5828echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5829
5830fi
5831if test $ac_cv_header_stddef_h = yes; then
5832 cat >>confdefs.h <<\_ACEOF
5833#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005834_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005835
5836fi
5837
5838
5839if test "${ac_cv_header_stdio_h+set}" = set; then
5840 echo "$as_me:$LINENO: checking for stdio.h" >&5
5841echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
5842if test "${ac_cv_header_stdio_h+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844fi
5845echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
5846echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
5847else
5848 # Is the header compilable?
5849echo "$as_me:$LINENO: checking stdio.h usability" >&5
5850echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
5851cat >conftest.$ac_ext <<_ACEOF
5852/* confdefs.h. */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
5856/* end confdefs.h. */
5857$ac_includes_default
5858#include <stdio.h>
5859_ACEOF
5860rm -f conftest.$ac_objext
5861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005863 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005864 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005865 rm -f conftest.er1
5866 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_header_compiler=yes
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887ac_header_compiler=no
5888fi
5889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5891echo "${ECHO_T}$ac_header_compiler" >&6
5892
5893# Is the header present?
5894echo "$as_me:$LINENO: checking stdio.h presence" >&5
5895echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
5896cat >conftest.$ac_ext <<_ACEOF
5897/* confdefs.h. */
5898_ACEOF
5899cat confdefs.h >>conftest.$ac_ext
5900cat >>conftest.$ac_ext <<_ACEOF
5901/* end confdefs.h. */
5902#include <stdio.h>
5903_ACEOF
5904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005911 (exit $ac_status); } >/dev/null; then
5912 if test -s conftest.err; then
5913 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005915 else
5916 ac_cpp_err=
5917 fi
5918else
5919 ac_cpp_err=yes
5920fi
5921if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005922 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005923else
5924 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005928fi
5929rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5931echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005932
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005933# So? What about this header?
5934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5935 yes:no: )
5936 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5937echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5938 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
5939echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
5940 ac_header_preproc=yes
5941 ;;
5942 no:yes:* )
5943 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
5944echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
5945 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
5946echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
5948echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
5950echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5951 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
5952echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
5954echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
5955 (
5956 cat <<\_ASBOX
5957## ------------------------------------ ##
5958## Report this to the pjproject lists. ##
5959## ------------------------------------ ##
5960_ASBOX
5961 ) |
5962 sed "s/^/$as_me: WARNING: /" >&2
5963 ;;
5964esac
5965echo "$as_me:$LINENO: checking for stdio.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005966echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
5967if test "${ac_cv_header_stdio_h+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005969else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005970 ac_cv_header_stdio_h=$ac_header_preproc
5971fi
5972echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
5973echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
5974
5975fi
5976if test $ac_cv_header_stdio_h = yes; then
5977 cat >>confdefs.h <<\_ACEOF
5978#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005979_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005980
5981fi
5982
5983
5984if test "${ac_cv_header_stdlib_h+set}" = set; then
5985 echo "$as_me:$LINENO: checking for stdlib.h" >&5
5986echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
5987if test "${ac_cv_header_stdlib_h+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989fi
5990echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5991echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
5992else
5993 # Is the header compilable?
5994echo "$as_me:$LINENO: checking stdlib.h usability" >&5
5995echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
5996cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002$ac_includes_default
6003#include <stdlib.h>
6004_ACEOF
6005rm -f conftest.$ac_objext
6006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006008 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006009 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006010 rm -f conftest.er1
6011 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag"
6015 || test ! -s conftest.err'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try='test -s conftest.$ac_objext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_header_compiler=yes
6028else
6029 echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032ac_header_compiler=no
6033fi
6034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6036echo "${ECHO_T}$ac_header_compiler" >&6
6037
6038# Is the header present?
6039echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6040echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
6041cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047#include <stdlib.h>
6048_ACEOF
6049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006056 (exit $ac_status); } >/dev/null; then
6057 if test -s conftest.err; then
6058 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006060 else
6061 ac_cpp_err=
6062 fi
6063else
6064 ac_cpp_err=yes
6065fi
6066if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006067 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006068else
6069 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006073fi
6074rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6076echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006077
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006078# So? What about this header?
6079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6080 yes:no: )
6081 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6082echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6083 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6084echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6085 ac_header_preproc=yes
6086 ;;
6087 no:yes:* )
6088 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6089echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6091echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6093echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6095echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6097echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6099echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
6100 (
6101 cat <<\_ASBOX
6102## ------------------------------------ ##
6103## Report this to the pjproject lists. ##
6104## ------------------------------------ ##
6105_ASBOX
6106 ) |
6107 sed "s/^/$as_me: WARNING: /" >&2
6108 ;;
6109esac
6110echo "$as_me:$LINENO: checking for stdlib.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006111echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6112if test "${ac_cv_header_stdlib_h+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006114else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006115 ac_cv_header_stdlib_h=$ac_header_preproc
6116fi
6117echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6118echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6119
6120fi
6121if test $ac_cv_header_stdlib_h = yes; then
6122 cat >>confdefs.h <<\_ACEOF
6123#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006124_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006125
6126fi
6127
6128
6129if test "${ac_cv_header_string_h+set}" = set; then
6130 echo "$as_me:$LINENO: checking for string.h" >&5
6131echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6132if test "${ac_cv_header_string_h+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134fi
6135echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6136echo "${ECHO_T}$ac_cv_header_string_h" >&6
6137else
6138 # Is the header compilable?
6139echo "$as_me:$LINENO: checking string.h usability" >&5
6140echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
6141cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h. */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h. */
6147$ac_includes_default
6148#include <string.h>
6149_ACEOF
6150rm -f conftest.$ac_objext
6151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006153 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006154 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006155 rm -f conftest.er1
6156 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag"
6160 || test ! -s conftest.err'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; } &&
6166 { ac_try='test -s conftest.$ac_objext'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 (eval $ac_try) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_header_compiler=yes
6173else
6174 echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
6177ac_header_compiler=no
6178fi
6179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6180echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6181echo "${ECHO_T}$ac_header_compiler" >&6
6182
6183# Is the header present?
6184echo "$as_me:$LINENO: checking string.h presence" >&5
6185echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
6186cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h. */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h. */
6192#include <string.h>
6193_ACEOF
6194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006201 (exit $ac_status); } >/dev/null; then
6202 if test -s conftest.err; then
6203 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006205 else
6206 ac_cpp_err=
6207 fi
6208else
6209 ac_cpp_err=yes
6210fi
6211if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006212 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006213else
6214 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006215sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006218fi
6219rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006220echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6221echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006222
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006223# So? What about this header?
6224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6225 yes:no: )
6226 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6227echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6229echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6230 ac_header_preproc=yes
6231 ;;
6232 no:yes:* )
6233 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6234echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6235 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6236echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6238echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6239 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6240echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6242echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6244echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6245 (
6246 cat <<\_ASBOX
6247## ------------------------------------ ##
6248## Report this to the pjproject lists. ##
6249## ------------------------------------ ##
6250_ASBOX
6251 ) |
6252 sed "s/^/$as_me: WARNING: /" >&2
6253 ;;
6254esac
6255echo "$as_me:$LINENO: checking for string.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006256echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6257if test "${ac_cv_header_string_h+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006259else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006260 ac_cv_header_string_h=$ac_header_preproc
6261fi
6262echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6263echo "${ECHO_T}$ac_cv_header_string_h" >&6
6264
6265fi
6266if test $ac_cv_header_string_h = yes; then
6267 cat >>confdefs.h <<\_ACEOF
6268#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006269_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006270
6271fi
6272
6273
6274if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6275 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
6276echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6277if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279fi
6280echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6281echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6282else
6283 # Is the header compilable?
6284echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
6285echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
6286cat >conftest.$ac_ext <<_ACEOF
6287/* confdefs.h. */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h. */
6292$ac_includes_default
6293#include <sys/ioctl.h>
6294_ACEOF
6295rm -f conftest.$ac_objext
6296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006298 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006299 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006300 rm -f conftest.er1
6301 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_header_compiler=yes
6318else
6319 echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322ac_header_compiler=no
6323fi
6324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6325echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6326echo "${ECHO_T}$ac_header_compiler" >&6
6327
6328# Is the header present?
6329echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
6330echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
6331cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h. */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h. */
6337#include <sys/ioctl.h>
6338_ACEOF
6339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006346 (exit $ac_status); } >/dev/null; then
6347 if test -s conftest.err; then
6348 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006350 else
6351 ac_cpp_err=
6352 fi
6353else
6354 ac_cpp_err=yes
6355fi
6356if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006357 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006358else
6359 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006360sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006363fi
6364rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006365echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6366echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006367
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006368# So? What about this header?
6369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6370 yes:no: )
6371 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6372echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
6374echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
6375 ac_header_preproc=yes
6376 ;;
6377 no:yes:* )
6378 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
6379echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
6381echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
6383echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
6385echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
6387echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
6389echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
6390 (
6391 cat <<\_ASBOX
6392## ------------------------------------ ##
6393## Report this to the pjproject lists. ##
6394## ------------------------------------ ##
6395_ASBOX
6396 ) |
6397 sed "s/^/$as_me: WARNING: /" >&2
6398 ;;
6399esac
6400echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006401echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6402if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006404else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006405 ac_cv_header_sys_ioctl_h=$ac_header_preproc
6406fi
6407echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6408echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6409
6410fi
6411if test $ac_cv_header_sys_ioctl_h = yes; then
6412 cat >>confdefs.h <<\_ACEOF
6413#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006414_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006415
6416fi
6417
6418
6419if test "${ac_cv_header_sys_select_h+set}" = set; then
6420 echo "$as_me:$LINENO: checking for sys/select.h" >&5
6421echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6422if test "${ac_cv_header_sys_select_h+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424fi
6425echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6426echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6427else
6428 # Is the header compilable?
6429echo "$as_me:$LINENO: checking sys/select.h usability" >&5
6430echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
6431cat >conftest.$ac_ext <<_ACEOF
6432/* confdefs.h. */
6433_ACEOF
6434cat confdefs.h >>conftest.$ac_ext
6435cat >>conftest.$ac_ext <<_ACEOF
6436/* end confdefs.h. */
6437$ac_includes_default
6438#include <sys/select.h>
6439_ACEOF
6440rm -f conftest.$ac_objext
6441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006443 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006444 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006445 rm -f conftest.er1
6446 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_header_compiler=yes
6463else
6464 echo "$as_me: failed program was:" >&5
6465sed 's/^/| /' conftest.$ac_ext >&5
6466
6467ac_header_compiler=no
6468fi
6469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6471echo "${ECHO_T}$ac_header_compiler" >&6
6472
6473# Is the header present?
6474echo "$as_me:$LINENO: checking sys/select.h presence" >&5
6475echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
6476cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
6482#include <sys/select.h>
6483_ACEOF
6484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006491 (exit $ac_status); } >/dev/null; then
6492 if test -s conftest.err; then
6493 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006495 else
6496 ac_cpp_err=
6497 fi
6498else
6499 ac_cpp_err=yes
6500fi
6501if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006502 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006503else
6504 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006505sed 's/^/| /' conftest.$ac_ext >&5
6506
6507 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006508fi
6509rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6511echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006512
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006513# So? What about this header?
6514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6515 yes:no: )
6516 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
6517echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
6519echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
6520 ac_header_preproc=yes
6521 ;;
6522 no:yes:* )
6523 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
6524echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
6526echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
6528echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
6530echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
6532echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
6534echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
6535 (
6536 cat <<\_ASBOX
6537## ------------------------------------ ##
6538## Report this to the pjproject lists. ##
6539## ------------------------------------ ##
6540_ASBOX
6541 ) |
6542 sed "s/^/$as_me: WARNING: /" >&2
6543 ;;
6544esac
6545echo "$as_me:$LINENO: checking for sys/select.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006546echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6547if test "${ac_cv_header_sys_select_h+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006549else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006550 ac_cv_header_sys_select_h=$ac_header_preproc
6551fi
6552echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6553echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6554
6555fi
6556if test $ac_cv_header_sys_select_h = yes; then
6557 cat >>confdefs.h <<\_ACEOF
6558#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006559_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006560
6561fi
6562
6563
6564if test "${ac_cv_header_sys_socket_h+set}" = set; then
6565 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6566echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6567if test "${ac_cv_header_sys_socket_h+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569fi
6570echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6571echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6572else
6573 # Is the header compilable?
6574echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
6575echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
6576cat >conftest.$ac_ext <<_ACEOF
6577/* confdefs.h. */
6578_ACEOF
6579cat confdefs.h >>conftest.$ac_ext
6580cat >>conftest.$ac_ext <<_ACEOF
6581/* end confdefs.h. */
6582$ac_includes_default
6583#include <sys/socket.h>
6584_ACEOF
6585rm -f conftest.$ac_objext
6586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006588 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006589 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006590 rm -f conftest.er1
6591 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -z "$ac_c_werror_flag"
6595 || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try='test -s conftest.$ac_objext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_header_compiler=yes
6608else
6609 echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612ac_header_compiler=no
6613fi
6614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6616echo "${ECHO_T}$ac_header_compiler" >&6
6617
6618# Is the header present?
6619echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
6620echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
6621cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h. */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h. */
6627#include <sys/socket.h>
6628_ACEOF
6629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006636 (exit $ac_status); } >/dev/null; then
6637 if test -s conftest.err; then
6638 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006640 else
6641 ac_cpp_err=
6642 fi
6643else
6644 ac_cpp_err=yes
6645fi
6646if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006647 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006648else
6649 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006653fi
6654rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6656echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006657
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006658# So? What about this header?
6659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6660 yes:no: )
6661 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6662echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6664echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6665 ac_header_preproc=yes
6666 ;;
6667 no:yes:* )
6668 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6669echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
6671echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6673echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
6675echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6677echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6679echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
6680 (
6681 cat <<\_ASBOX
6682## ------------------------------------ ##
6683## Report this to the pjproject lists. ##
6684## ------------------------------------ ##
6685_ASBOX
6686 ) |
6687 sed "s/^/$as_me: WARNING: /" >&2
6688 ;;
6689esac
6690echo "$as_me:$LINENO: checking for sys/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006691echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6692if test "${ac_cv_header_sys_socket_h+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006694else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006695 ac_cv_header_sys_socket_h=$ac_header_preproc
6696fi
6697echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6698echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6699
6700fi
6701if test $ac_cv_header_sys_socket_h = yes; then
6702 cat >>confdefs.h <<\_ACEOF
6703#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006704_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006705
6706fi
6707
6708
6709if test "${ac_cv_header_sys_time_h+set}" = set; then
6710 echo "$as_me:$LINENO: checking for sys/time.h" >&5
6711echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
6712if test "${ac_cv_header_sys_time_h+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714fi
6715echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
6716echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
6717else
6718 # Is the header compilable?
6719echo "$as_me:$LINENO: checking sys/time.h usability" >&5
6720echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
6721cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h. */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h. */
6727$ac_includes_default
6728#include <sys/time.h>
6729_ACEOF
6730rm -f conftest.$ac_objext
6731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006733 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006734 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006735 rm -f conftest.er1
6736 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -z "$ac_c_werror_flag"
6740 || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try='test -s conftest.$ac_objext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_header_compiler=yes
6753else
6754 echo "$as_me: failed program was:" >&5
6755sed 's/^/| /' conftest.$ac_ext >&5
6756
6757ac_header_compiler=no
6758fi
6759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6761echo "${ECHO_T}$ac_header_compiler" >&6
6762
6763# Is the header present?
6764echo "$as_me:$LINENO: checking sys/time.h presence" >&5
6765echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
6766cat >conftest.$ac_ext <<_ACEOF
6767/* confdefs.h. */
6768_ACEOF
6769cat confdefs.h >>conftest.$ac_ext
6770cat >>conftest.$ac_ext <<_ACEOF
6771/* end confdefs.h. */
6772#include <sys/time.h>
6773_ACEOF
6774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006781 (exit $ac_status); } >/dev/null; then
6782 if test -s conftest.err; then
6783 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006785 else
6786 ac_cpp_err=
6787 fi
6788else
6789 ac_cpp_err=yes
6790fi
6791if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006792 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006793else
6794 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006795sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006798fi
6799rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6801echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006802
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006803# So? What about this header?
6804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6805 yes:no: )
6806 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
6807echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6808 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
6809echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
6810 ac_header_preproc=yes
6811 ;;
6812 no:yes:* )
6813 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
6814echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
6816echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
6818echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
6820echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
6821 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
6822echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
6823 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
6824echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
6825 (
6826 cat <<\_ASBOX
6827## ------------------------------------ ##
6828## Report this to the pjproject lists. ##
6829## ------------------------------------ ##
6830_ASBOX
6831 ) |
6832 sed "s/^/$as_me: WARNING: /" >&2
6833 ;;
6834esac
6835echo "$as_me:$LINENO: checking for sys/time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006836echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
6837if test "${ac_cv_header_sys_time_h+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006839else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006840 ac_cv_header_sys_time_h=$ac_header_preproc
6841fi
6842echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
6843echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
6844
6845fi
6846if test $ac_cv_header_sys_time_h = yes; then
6847 cat >>confdefs.h <<\_ACEOF
6848#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006849_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006850
6851fi
6852
6853
6854if test "${ac_cv_header_sys_timeb_h+set}" = set; then
6855 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
6856echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
6857if test "${ac_cv_header_sys_timeb_h+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859fi
6860echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
6861echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
6862else
6863 # Is the header compilable?
6864echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
6865echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
6866cat >conftest.$ac_ext <<_ACEOF
6867/* confdefs.h. */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h. */
6872$ac_includes_default
6873#include <sys/timeb.h>
6874_ACEOF
6875rm -f conftest.$ac_objext
6876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006878 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006879 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006880 rm -f conftest.er1
6881 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_header_compiler=yes
6898else
6899 echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902ac_header_compiler=no
6903fi
6904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6905echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6906echo "${ECHO_T}$ac_header_compiler" >&6
6907
6908# Is the header present?
6909echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
6910echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
6911cat >conftest.$ac_ext <<_ACEOF
6912/* confdefs.h. */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
6916/* end confdefs.h. */
6917#include <sys/timeb.h>
6918_ACEOF
6919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006926 (exit $ac_status); } >/dev/null; then
6927 if test -s conftest.err; then
6928 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006930 else
6931 ac_cpp_err=
6932 fi
6933else
6934 ac_cpp_err=yes
6935fi
6936if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006937 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006938else
6939 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006940sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006943fi
6944rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006945echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6946echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006947
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006948# So? What about this header?
6949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6950 yes:no: )
6951 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6952echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
6954echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
6955 ac_header_preproc=yes
6956 ;;
6957 no:yes:* )
6958 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
6959echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
6961echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
6963echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
6965echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6966 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
6967echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
6969echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
6970 (
6971 cat <<\_ASBOX
6972## ------------------------------------ ##
6973## Report this to the pjproject lists. ##
6974## ------------------------------------ ##
6975_ASBOX
6976 ) |
6977 sed "s/^/$as_me: WARNING: /" >&2
6978 ;;
6979esac
6980echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006981echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
6982if test "${ac_cv_header_sys_timeb_h+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006984else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006985 ac_cv_header_sys_timeb_h=$ac_header_preproc
6986fi
6987echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
6988echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
6989
6990fi
6991if test $ac_cv_header_sys_timeb_h = yes; then
6992 cat >>confdefs.h <<\_ACEOF
6993#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006994_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006995
6996fi
6997
6998
6999if test "${ac_cv_header_sys_types_h+set}" = set; then
7000 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7001echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7002if test "${ac_cv_header_sys_types_h+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004fi
7005echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7006echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7007else
7008 # Is the header compilable?
7009echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7010echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
7011cat >conftest.$ac_ext <<_ACEOF
7012/* confdefs.h. */
7013_ACEOF
7014cat confdefs.h >>conftest.$ac_ext
7015cat >>conftest.$ac_ext <<_ACEOF
7016/* end confdefs.h. */
7017$ac_includes_default
7018#include <sys/types.h>
7019_ACEOF
7020rm -f conftest.$ac_objext
7021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007023 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007024 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007025 rm -f conftest.er1
7026 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag"
7030 || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try='test -s conftest.$ac_objext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_header_compiler=yes
7043else
7044 echo "$as_me: failed program was:" >&5
7045sed 's/^/| /' conftest.$ac_ext >&5
7046
7047ac_header_compiler=no
7048fi
7049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7050echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7051echo "${ECHO_T}$ac_header_compiler" >&6
7052
7053# Is the header present?
7054echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7055echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
7056cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h. */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h. */
7062#include <sys/types.h>
7063_ACEOF
7064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007071 (exit $ac_status); } >/dev/null; then
7072 if test -s conftest.err; then
7073 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007075 else
7076 ac_cpp_err=
7077 fi
7078else
7079 ac_cpp_err=yes
7080fi
7081if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007082 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007083else
7084 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007085sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007088fi
7089rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007090echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7091echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007092
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007093# So? What about this header?
7094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7095 yes:no: )
7096 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7097echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7098 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7099echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7100 ac_header_preproc=yes
7101 ;;
7102 no:yes:* )
7103 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7104echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7105 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7106echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7108echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7110echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7112echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7114echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
7115 (
7116 cat <<\_ASBOX
7117## ------------------------------------ ##
7118## Report this to the pjproject lists. ##
7119## ------------------------------------ ##
7120_ASBOX
7121 ) |
7122 sed "s/^/$as_me: WARNING: /" >&2
7123 ;;
7124esac
7125echo "$as_me:$LINENO: checking for sys/types.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007126echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7127if test "${ac_cv_header_sys_types_h+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007129else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007130 ac_cv_header_sys_types_h=$ac_header_preproc
7131fi
7132echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7133echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7134
7135fi
7136if test $ac_cv_header_sys_types_h = yes; then
7137 cat >>confdefs.h <<\_ACEOF
7138#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007139_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007140
7141fi
7142
7143
7144if test "${ac_cv_header_time_h+set}" = set; then
7145 echo "$as_me:$LINENO: checking for time.h" >&5
7146echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7147if test "${ac_cv_header_time_h+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149fi
7150echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7151echo "${ECHO_T}$ac_cv_header_time_h" >&6
7152else
7153 # Is the header compilable?
7154echo "$as_me:$LINENO: checking time.h usability" >&5
7155echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
7156cat >conftest.$ac_ext <<_ACEOF
7157/* confdefs.h. */
7158_ACEOF
7159cat confdefs.h >>conftest.$ac_ext
7160cat >>conftest.$ac_ext <<_ACEOF
7161/* end confdefs.h. */
7162$ac_includes_default
7163#include <time.h>
7164_ACEOF
7165rm -f conftest.$ac_objext
7166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007168 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007169 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007170 rm -f conftest.er1
7171 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } &&
7174 { ac_try='test -z "$ac_c_werror_flag"
7175 || test ! -s conftest.err'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 (eval $ac_try) 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; } &&
7181 { ac_try='test -s conftest.$ac_objext'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; }; then
7187 ac_header_compiler=yes
7188else
7189 echo "$as_me: failed program was:" >&5
7190sed 's/^/| /' conftest.$ac_ext >&5
7191
7192ac_header_compiler=no
7193fi
7194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7196echo "${ECHO_T}$ac_header_compiler" >&6
7197
7198# Is the header present?
7199echo "$as_me:$LINENO: checking time.h presence" >&5
7200echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
7201cat >conftest.$ac_ext <<_ACEOF
7202/* confdefs.h. */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h. */
7207#include <time.h>
7208_ACEOF
7209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007216 (exit $ac_status); } >/dev/null; then
7217 if test -s conftest.err; then
7218 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007220 else
7221 ac_cpp_err=
7222 fi
7223else
7224 ac_cpp_err=yes
7225fi
7226if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007227 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007228else
7229 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007230sed 's/^/| /' conftest.$ac_ext >&5
7231
7232 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007233fi
7234rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7236echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007237
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007238# So? What about this header?
7239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7240 yes:no: )
7241 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7242echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7243 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
7244echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
7245 ac_header_preproc=yes
7246 ;;
7247 no:yes:* )
7248 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
7249echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
7251echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
7253echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
7255echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
7257echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
7259echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
7260 (
7261 cat <<\_ASBOX
7262## ------------------------------------ ##
7263## Report this to the pjproject lists. ##
7264## ------------------------------------ ##
7265_ASBOX
7266 ) |
7267 sed "s/^/$as_me: WARNING: /" >&2
7268 ;;
7269esac
7270echo "$as_me:$LINENO: checking for time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007271echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7272if test "${ac_cv_header_time_h+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007274else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007275 ac_cv_header_time_h=$ac_header_preproc
7276fi
7277echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7278echo "${ECHO_T}$ac_cv_header_time_h" >&6
7279
7280fi
7281if test $ac_cv_header_time_h = yes; then
7282 cat >>confdefs.h <<\_ACEOF
7283#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007284_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007285
7286fi
7287
7288
7289if test "${ac_cv_header_unistd_h+set}" = set; then
7290 echo "$as_me:$LINENO: checking for unistd.h" >&5
7291echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7292if test "${ac_cv_header_unistd_h+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294fi
7295echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7296echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7297else
7298 # Is the header compilable?
7299echo "$as_me:$LINENO: checking unistd.h usability" >&5
7300echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
7301cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h. */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h. */
7307$ac_includes_default
7308#include <unistd.h>
7309_ACEOF
7310rm -f conftest.$ac_objext
7311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007313 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007314 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007315 rm -f conftest.er1
7316 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -z "$ac_c_werror_flag"
7320 || test ! -s conftest.err'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; } &&
7326 { ac_try='test -s conftest.$ac_objext'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 (eval $ac_try) 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7332 ac_header_compiler=yes
7333else
7334 echo "$as_me: failed program was:" >&5
7335sed 's/^/| /' conftest.$ac_ext >&5
7336
7337ac_header_compiler=no
7338fi
7339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7341echo "${ECHO_T}$ac_header_compiler" >&6
7342
7343# Is the header present?
7344echo "$as_me:$LINENO: checking unistd.h presence" >&5
7345echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
7346cat >conftest.$ac_ext <<_ACEOF
7347/* confdefs.h. */
7348_ACEOF
7349cat confdefs.h >>conftest.$ac_ext
7350cat >>conftest.$ac_ext <<_ACEOF
7351/* end confdefs.h. */
7352#include <unistd.h>
7353_ACEOF
7354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007361 (exit $ac_status); } >/dev/null; then
7362 if test -s conftest.err; then
7363 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007365 else
7366 ac_cpp_err=
7367 fi
7368else
7369 ac_cpp_err=yes
7370fi
7371if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007372 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007373else
7374 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007378fi
7379rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7381echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007382
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007383# So? What about this header?
7384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7385 yes:no: )
7386 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
7387echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7388 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
7389echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
7390 ac_header_preproc=yes
7391 ;;
7392 no:yes:* )
7393 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
7394echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
7396echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
7398echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
7400echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
7401 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
7402echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
7403 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
7404echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
7405 (
7406 cat <<\_ASBOX
7407## ------------------------------------ ##
7408## Report this to the pjproject lists. ##
7409## ------------------------------------ ##
7410_ASBOX
7411 ) |
7412 sed "s/^/$as_me: WARNING: /" >&2
7413 ;;
7414esac
7415echo "$as_me:$LINENO: checking for unistd.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007416echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7417if test "${ac_cv_header_unistd_h+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007419else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007420 ac_cv_header_unistd_h=$ac_header_preproc
7421fi
7422echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7423echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7424
7425fi
7426if test $ac_cv_header_unistd_h = yes; then
7427 cat >>confdefs.h <<\_ACEOF
7428#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007429_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007430
7431fi
7432
7433
7434if test "${ac_cv_header_mswsock_h+set}" = set; then
7435 echo "$as_me:$LINENO: checking for mswsock.h" >&5
7436echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7437if test "${ac_cv_header_mswsock_h+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439fi
7440echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7441echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7442else
7443 # Is the header compilable?
7444echo "$as_me:$LINENO: checking mswsock.h usability" >&5
7445echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
7446cat >conftest.$ac_ext <<_ACEOF
7447/* confdefs.h. */
7448_ACEOF
7449cat confdefs.h >>conftest.$ac_ext
7450cat >>conftest.$ac_ext <<_ACEOF
7451/* end confdefs.h. */
7452$ac_includes_default
7453#include <mswsock.h>
7454_ACEOF
7455rm -f conftest.$ac_objext
7456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7457 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007458 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007459 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007460 rm -f conftest.er1
7461 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -z "$ac_c_werror_flag"
7465 || test ! -s conftest.err'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try='test -s conftest.$ac_objext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7477 ac_header_compiler=yes
7478else
7479 echo "$as_me: failed program was:" >&5
7480sed 's/^/| /' conftest.$ac_ext >&5
7481
7482ac_header_compiler=no
7483fi
7484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7486echo "${ECHO_T}$ac_header_compiler" >&6
7487
7488# Is the header present?
7489echo "$as_me:$LINENO: checking mswsock.h presence" >&5
7490echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
7491cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497#include <mswsock.h>
7498_ACEOF
7499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007506 (exit $ac_status); } >/dev/null; then
7507 if test -s conftest.err; then
7508 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007510 else
7511 ac_cpp_err=
7512 fi
7513else
7514 ac_cpp_err=yes
7515fi
7516if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007517 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007518else
7519 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007523fi
7524rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7526echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007527
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007528# So? What about this header?
7529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7530 yes:no: )
7531 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7532echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
7534echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
7535 ac_header_preproc=yes
7536 ;;
7537 no:yes:* )
7538 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
7539echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
7540 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
7541echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
7543echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
7545echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
7547echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
7549echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
7550 (
7551 cat <<\_ASBOX
7552## ------------------------------------ ##
7553## Report this to the pjproject lists. ##
7554## ------------------------------------ ##
7555_ASBOX
7556 ) |
7557 sed "s/^/$as_me: WARNING: /" >&2
7558 ;;
7559esac
7560echo "$as_me:$LINENO: checking for mswsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007561echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7562if test "${ac_cv_header_mswsock_h+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007564else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007565 ac_cv_header_mswsock_h=$ac_header_preproc
7566fi
7567echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7568echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7569
7570fi
7571if test $ac_cv_header_mswsock_h = yes; then
7572 cat >>confdefs.h <<\_ACEOF
7573#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007574_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007575
7576fi
7577
7578
7579if test "${ac_cv_header_winsock_h+set}" = set; then
7580 echo "$as_me:$LINENO: checking for winsock.h" >&5
7581echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7582if test "${ac_cv_header_winsock_h+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584fi
7585echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7586echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7587else
7588 # Is the header compilable?
7589echo "$as_me:$LINENO: checking winsock.h usability" >&5
7590echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
7591cat >conftest.$ac_ext <<_ACEOF
7592/* confdefs.h. */
7593_ACEOF
7594cat confdefs.h >>conftest.$ac_ext
7595cat >>conftest.$ac_ext <<_ACEOF
7596/* end confdefs.h. */
7597$ac_includes_default
7598#include <winsock.h>
7599_ACEOF
7600rm -f conftest.$ac_objext
7601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007603 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007604 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007605 rm -f conftest.er1
7606 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -z "$ac_c_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_header_compiler=yes
7623else
7624 echo "$as_me: failed program was:" >&5
7625sed 's/^/| /' conftest.$ac_ext >&5
7626
7627ac_header_compiler=no
7628fi
7629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7631echo "${ECHO_T}$ac_header_compiler" >&6
7632
7633# Is the header present?
7634echo "$as_me:$LINENO: checking winsock.h presence" >&5
7635echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
7636cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h. */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h. */
7642#include <winsock.h>
7643_ACEOF
7644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007651 (exit $ac_status); } >/dev/null; then
7652 if test -s conftest.err; then
7653 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007655 else
7656 ac_cpp_err=
7657 fi
7658else
7659 ac_cpp_err=yes
7660fi
7661if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007662 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007663else
7664 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007665sed 's/^/| /' conftest.$ac_ext >&5
7666
7667 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007668fi
7669rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7671echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007672
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007673# So? What about this header?
7674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7675 yes:no: )
7676 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7677echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
7679echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
7680 ac_header_preproc=yes
7681 ;;
7682 no:yes:* )
7683 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
7684echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
7686echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
7688echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
7690echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
7692echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
7694echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
7695 (
7696 cat <<\_ASBOX
7697## ------------------------------------ ##
7698## Report this to the pjproject lists. ##
7699## ------------------------------------ ##
7700_ASBOX
7701 ) |
7702 sed "s/^/$as_me: WARNING: /" >&2
7703 ;;
7704esac
7705echo "$as_me:$LINENO: checking for winsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007706echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7707if test "${ac_cv_header_winsock_h+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007709else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007710 ac_cv_header_winsock_h=$ac_header_preproc
7711fi
7712echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7713echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7714
7715fi
7716if test $ac_cv_header_winsock_h = yes; then
7717 cat >>confdefs.h <<\_ACEOF
7718#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007719_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007720
7721fi
7722
7723
7724if test "${ac_cv_header_winsock2_h+set}" = set; then
7725 echo "$as_me:$LINENO: checking for winsock2.h" >&5
7726echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
7727if test "${ac_cv_header_winsock2_h+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729fi
7730echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
7731echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
7732else
7733 # Is the header compilable?
7734echo "$as_me:$LINENO: checking winsock2.h usability" >&5
7735echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
7736cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h. */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h. */
7742$ac_includes_default
7743#include <winsock2.h>
7744_ACEOF
7745rm -f conftest.$ac_objext
7746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7747 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007748 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007749 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007750 rm -f conftest.er1
7751 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_c_werror_flag"
7755 || test ! -s conftest.err'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; } &&
7761 { ac_try='test -s conftest.$ac_objext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 ac_header_compiler=yes
7768else
7769 echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772ac_header_compiler=no
7773fi
7774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7776echo "${ECHO_T}$ac_header_compiler" >&6
7777
7778# Is the header present?
7779echo "$as_me:$LINENO: checking winsock2.h presence" >&5
7780echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
7781cat >conftest.$ac_ext <<_ACEOF
7782/* confdefs.h. */
7783_ACEOF
7784cat confdefs.h >>conftest.$ac_ext
7785cat >>conftest.$ac_ext <<_ACEOF
7786/* end confdefs.h. */
7787#include <winsock2.h>
7788_ACEOF
7789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007796 (exit $ac_status); } >/dev/null; then
7797 if test -s conftest.err; then
7798 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007800 else
7801 ac_cpp_err=
7802 fi
7803else
7804 ac_cpp_err=yes
7805fi
7806if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007807 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007808else
7809 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007810sed 's/^/| /' conftest.$ac_ext >&5
7811
7812 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007813fi
7814rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7816echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007817
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007818# So? What about this header?
7819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7820 yes:no: )
7821 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7822echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
7824echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
7825 ac_header_preproc=yes
7826 ;;
7827 no:yes:* )
7828 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
7829echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
7831echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
7833echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
7834 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
7835echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
7837echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
7839echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
7840 (
7841 cat <<\_ASBOX
7842## ------------------------------------ ##
7843## Report this to the pjproject lists. ##
7844## ------------------------------------ ##
7845_ASBOX
7846 ) |
7847 sed "s/^/$as_me: WARNING: /" >&2
7848 ;;
7849esac
7850echo "$as_me:$LINENO: checking for winsock2.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007851echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
7852if test "${ac_cv_header_winsock2_h+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007854else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007855 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007856fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007857echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007858echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007859
7860fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007861if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007862 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007863#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007864_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007865
7866fi
7867
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007868
7869
7870echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007871echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007872cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007873#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007874_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007875
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007876
7877echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007878echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007879cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007880#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007881_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007882
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007883
7884echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007885echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007886cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007887#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007888_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007889
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007890
7891echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007892echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007893cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007894#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007895_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007896
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007897
7898echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007899echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007900cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007901#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007902_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007903
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007904
7905echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007906echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007907cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007908#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007909_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007910
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007911
7912echo "$as_me:$LINENO: checking if inet_aton is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007913echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
7914cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007915/* confdefs.h. */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00007920#include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007921int
7922main ()
7923{
7924inet_aton(0, 0);
7925 ;
7926 return 0;
7927}
7928_ACEOF
7929rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7931 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007932 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007937 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007938 { ac_try='test -z "$ac_c_werror_flag"
7939 || test ! -s conftest.err'
7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00007941 (eval $ac_try) 2>&5
7942 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; } &&
7945 { ac_try='test -s conftest.$ac_objext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007950 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007951 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007952#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007953_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007954
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007955 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007956echo "${ECHO_T}yes" >&6
7957else
7958 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007962echo "${ECHO_T}no" >&6
7963fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007965
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007966echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007967echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
7968cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00007974#include <sys/types.h>
7975 #include <sys/socket.h>
7976 #include <netinet/in.h>
7977 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007978int
7979main ()
7980{
7981struct sockaddr_in a; a.sin_len=0;
7982 ;
7983 return 0;
7984}
7985_ACEOF
7986rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007989 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007994 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00007998 (eval $ac_try) 2>&5
7999 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008007 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008008 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008009#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008010_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008011
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008012 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008013echo "${ECHO_T}yes" >&6
8014else
8015 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008016sed 's/^/| /' conftest.$ac_ext >&5
8017
8018echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008019echo "${ECHO_T}no" >&6
8020fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008022
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008023echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008024echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8025cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008026/* confdefs.h. */
8027_ACEOF
8028cat confdefs.h >>conftest.$ac_ext
8029cat >>conftest.$ac_ext <<_ACEOF
8030/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008031#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008032int
8033main ()
8034{
8035socklen_t xxx = 0;
8036 ;
8037 return 0;
8038}
8039_ACEOF
8040rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008043 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008048 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008052 (eval $ac_try) 2>&5
8053 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008061 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008062 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008063#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008064_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008065
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008066 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008067echo "${ECHO_T}yes" >&6
8068else
8069 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008070sed 's/^/| /' conftest.$ac_ext >&5
8071
8072echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008073echo "${ECHO_T}no" >&6
8074fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008076
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008077echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008078echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008079case $target in
8080 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008081 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008082#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008083_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008084
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008085 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008086echo "${ECHO_T}yes" >&6
8087 ;;
8088 *)
8089 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008090/* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008095#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008096 #include <sys/socket.h>
8097 #include <netinet/in.h>
8098 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008099int
8100main ()
8101{
8102int i=SO_ERROR;
8103 ;
8104 return 0;
8105}
8106_ACEOF
8107rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008110 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008115 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008116 { ac_try='test -z "$ac_c_werror_flag"
8117 || test ! -s conftest.err'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008119 (eval $ac_try) 2>&5
8120 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; } &&
8123 { ac_try='test -s conftest.$ac_objext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008128 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008129 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008130#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008131_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008132
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008133 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008134echo "${ECHO_T}yes" >&6
8135else
8136 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008137sed 's/^/| /' conftest.$ac_ext >&5
8138
8139echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008140echo "${ECHO_T}no" >&6
8141fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008143 ;;
8144esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008145
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008146
8147echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008148echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
8149cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008155#include <pthread.h>
8156int
8157main ()
8158{
8159pthread_rwlock_t *x;
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8166 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008167 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008172 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008173 { ac_try='test -z "$ac_c_werror_flag"
8174 || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008176 (eval $ac_try) 2>&5
8177 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008185 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008186 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008187#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008188_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008189
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008190 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008191echo "${ECHO_T}yes" >&6
8192else
8193 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008194sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008195
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008196cat >>confdefs.h <<\_ACEOF
8197#define PJ_EMULATE_RWMUTEX 1
8198_ACEOF
8199
8200 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008201echo "${ECHO_T}no" >&6
8202fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8204
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008205
8206case $target in
8207 *mingw* | *cygw* | *win32* | *w32* )
8208 ac_os_objs="os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o"
8209 ;;
8210 *)
8211 ac_os_objs="os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o guid_simple.o ioqueue_select.o"
8212 ;;
8213esac
8214
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008215
8216
8217
Benny Prijono1d971622006-09-10 22:27:40 +00008218# Check whether --enable-sound or --disable-sound was given.
8219if test "${enable_sound+set}" = set; then
8220 enableval="$enable_sound"
8221 if test "$enable_sound" = "no"; then
8222 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008223 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00008224echo "${ECHO_T}Checking if sound is disabled... yes" >&6
8225 fi
8226
8227fi;
8228
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008229
Benny Prijono1d971622006-09-10 22:27:40 +00008230if test "$enable_sound" = "no"; then
8231 true;
8232else
8233 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00008234 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00008235 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
8236 if test "`uname -r`" = "6.8"; then
8237 #ac_pa_cflags="-DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
8238 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
8239 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008240 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00008241echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
8242 else
8243 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008244 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00008245echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00008246 fi
Benny Prijonob466e232006-09-10 08:53:59 +00008247 ;;
8248 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008249 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008250 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008251echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
8252 ;;
8253 *rtems*)
8254 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008255 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008256echo "${ECHO_T}Checking sound device backend... null sound" >&6
8257 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008258 *)
8259 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008260 if test "${ac_cv_header_alsa_version_h+set}" = set; then
8261 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008262echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
8263if test "${ac_cv_header_alsa_version_h+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008265fi
8266echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
8267echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008268else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008269 # Is the header compilable?
8270echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
8271echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
8272cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h. */
8278$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008279#include <alsa/version.h>
8280_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008281rm -f conftest.$ac_objext
8282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8283 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008284 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008285 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008286 rm -f conftest.er1
8287 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag"
8291 || test ! -s conftest.err'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest.$ac_objext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_header_compiler=yes
8304else
8305 echo "$as_me: failed program was:" >&5
8306sed 's/^/| /' conftest.$ac_ext >&5
8307
8308ac_header_compiler=no
8309fi
8310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8311echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8312echo "${ECHO_T}$ac_header_compiler" >&6
8313
8314# Is the header present?
8315echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
8316echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
8317cat >conftest.$ac_ext <<_ACEOF
8318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h. */
8323#include <alsa/version.h>
8324_ACEOF
8325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008332 (exit $ac_status); } >/dev/null; then
8333 if test -s conftest.err; then
8334 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008336 else
8337 ac_cpp_err=
8338 fi
8339else
8340 ac_cpp_err=yes
8341fi
8342if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008343 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008344else
8345 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008349fi
8350rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008351echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8352echo "${ECHO_T}$ac_header_preproc" >&6
8353
8354# So? What about this header?
8355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8356 yes:no: )
8357 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8358echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
8360echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
8361 ac_header_preproc=yes
8362 ;;
8363 no:yes:* )
8364 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
8365echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
8367echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
8369echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
8371echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
8373echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
8375echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
8376 (
8377 cat <<\_ASBOX
8378## ------------------------------------ ##
8379## Report this to the pjproject lists. ##
8380## ------------------------------------ ##
8381_ASBOX
8382 ) |
8383 sed "s/^/$as_me: WARNING: /" >&2
8384 ;;
8385esac
8386echo "$as_me:$LINENO: checking for alsa/version.h" >&5
8387echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
8388if test "${ac_cv_header_alsa_version_h+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390else
8391 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008392fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008393echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008394echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008395
8396fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008397if test $ac_cv_header_alsa_version_h = yes; then
8398 ac_pa_use_alsa=1
8399
8400 LIBS="$LIBS -lasound"
8401
8402else
8403 ac_pa_use_alsa=0
8404
8405fi
8406
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008407
8408 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008409echo "${ECHO_T}Checking sound device backend... unix" >&6
8410 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00008411 esac
8412fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008413
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008414
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008415# Check whether --enable-small-filter or --disable-small-filter was given.
8416if test "${enable_small_filter+set}" = set; then
8417 enableval="$enable_small_filter"
8418 if test "$enable_small_filter" = "no"; then
8419 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008420 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008421echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
8422 fi
8423else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008424 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008425echo "${ECHO_T}Checking if small filter is disabled... no" >&6
8426fi;
8427
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008428
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008429# Check whether --enable-large-filter or --disable-large-filter was given.
8430if test "${enable_large_filter+set}" = set; then
8431 enableval="$enable_large_filter"
8432 if test "$enable_large_filter" = "no"; then
8433 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008434 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008435echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
8436 fi
8437else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008438 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008439echo "${ECHO_T}Checking if large filter is disabled... no" >&6
8440fi;
8441
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008442
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008443# Check whether --enable-g711-plc or --disable-g711-plc was given.
8444if test "${enable_g711_plc+set}" = set; then
8445 enableval="$enable_g711_plc"
8446 if test "$enable_g711_plc" = "no"; then
8447 ac_no_g711_plc='-DPJMEDIA_HAS_G711_PLC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008448 echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008449echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...yes" >&6
8450 fi
8451else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008452 echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008453echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...no" >&6
8454fi;
8455
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008456
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008457# Check whether --enable-speex-aec or --disable-speex-aec was given.
8458if test "${enable_speex_aec+set}" = set; then
8459 enableval="$enable_speex_aec"
8460 if test "$enable_speex_aec" = "no"; then
8461 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008462 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008463echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
8464 fi
8465else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008466 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008467echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
8468fi;
8469
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008470
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008471# Check whether --enable-g711-codec or --disable-g711-codec was given.
8472if test "${enable_g711_codec+set}" = set; then
8473 enableval="$enable_g711_codec"
8474 if test "$enable_g711_codec" = "no"; then
8475 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008476 cat >>confdefs.h <<\_ACEOF
8477#define PJMEDIA_HAS_G711_CODEC 0
8478_ACEOF
8479
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008480 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008481echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
8482 fi
8483else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008484 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008485echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
8486fi;
8487
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008488
8489
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008490# Check whether --enable-l16-codec or --disable-l16-codec was given.
8491if test "${enable_l16_codec+set}" = set; then
8492 enableval="$enable_l16_codec"
8493 if test "$enable_l16_codec" = "no"; then
8494 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008495 cat >>confdefs.h <<\_ACEOF
8496#define PJMEDIA_HAS_L16_CODEC 0
8497_ACEOF
8498
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008499 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008500echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
8501 fi
8502else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008503 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00008504echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008505fi;
8506
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008507
8508
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008509# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
8510if test "${enable_gsm_codec+set}" = set; then
8511 enableval="$enable_gsm_codec"
8512 if test "$enable_gsm_codec" = "no"; then
8513 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008514 cat >>confdefs.h <<\_ACEOF
8515#define PJMEDIA_HAS_GSM_CODEC 0
8516_ACEOF
8517
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008518 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008519echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
8520 fi
8521else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008522 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008523echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
8524fi;
8525
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008526
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008527# Check whether --enable-speex-codec or --disable-speex-codec was given.
8528if test "${enable_speex_codec+set}" = set; then
8529 enableval="$enable_speex_codec"
8530 if test "$enable_speex_codec" = "no"; then
8531 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008532 cat >>confdefs.h <<\_ACEOF
8533#define PJMEDIA_HAS_SPEEX_CODEC 0
8534_ACEOF
8535
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008536 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008537echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
8538 fi
8539else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008540 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008541echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
8542fi;
8543
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008544
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008545# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
8546if test "${enable_ilbc_codec+set}" = set; then
8547 enableval="$enable_ilbc_codec"
8548 if test "$enable_ilbc_codec" = "no"; then
8549 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008550 cat >>confdefs.h <<\_ACEOF
8551#define PJMEDIA_HAS_ILBC_CODEC 0
8552_ACEOF
8553
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008554 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008555echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
8556 fi
8557else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008558 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008559echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
8560fi;
8561
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008562
8563
8564
8565
8566# Check whether --enable-ssl or --disable-ssl was given.
8567if test "${enable_ssl+set}" = set; then
8568 enableval="$enable_ssl"
8569
8570 if test "$enable_ssl" = "no"; then
8571 ac_no_ssl=1
8572 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
8573echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
8574 fi
8575
8576else
8577
8578 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
8579echo "${ECHO_T}checking for OpenSSL installations.." >&6
8580
8581
8582
8583 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8584 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8585echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8586if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588fi
8589echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8590echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8591else
8592 # Is the header compilable?
8593echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8594echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8595cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h. */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h. */
8601$ac_includes_default
8602#include <openssl/ssl.h>
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_header_compiler=yes
8627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631ac_header_compiler=no
8632fi
8633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8635echo "${ECHO_T}$ac_header_compiler" >&6
8636
8637# Is the header present?
8638echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8639echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8640cat >conftest.$ac_ext <<_ACEOF
8641/* confdefs.h. */
8642_ACEOF
8643cat confdefs.h >>conftest.$ac_ext
8644cat >>conftest.$ac_ext <<_ACEOF
8645/* end confdefs.h. */
8646#include <openssl/ssl.h>
8647_ACEOF
8648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } >/dev/null; then
8656 if test -s conftest.err; then
8657 ac_cpp_err=$ac_c_preproc_warn_flag
8658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8659 else
8660 ac_cpp_err=
8661 fi
8662else
8663 ac_cpp_err=yes
8664fi
8665if test -z "$ac_cpp_err"; then
8666 ac_header_preproc=yes
8667else
8668 echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_header_preproc=no
8672fi
8673rm -f conftest.err conftest.$ac_ext
8674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8675echo "${ECHO_T}$ac_header_preproc" >&6
8676
8677# So? What about this header?
8678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8679 yes:no: )
8680 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8681echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
8683echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
8684 ac_header_preproc=yes
8685 ;;
8686 no:yes:* )
8687 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8688echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8690echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
8692echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
8694echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8695 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8696echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
8698echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
8699 (
8700 cat <<\_ASBOX
8701## ------------------------------------ ##
8702## Report this to the pjproject lists. ##
8703## ------------------------------------ ##
8704_ASBOX
8705 ) |
8706 sed "s/^/$as_me: WARNING: /" >&2
8707 ;;
8708esac
8709echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8710echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8711if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8715fi
8716echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8717echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8718
8719fi
8720if test $ac_cv_header_openssl_ssl_h = yes; then
8721 openssl_h_present=1
8722fi
8723
8724
8725 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8726echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
8727if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729else
8730 ac_check_lib_save_LIBS=$LIBS
8731LIBS="-lssl $LIBS"
8732cat >conftest.$ac_ext <<_ACEOF
8733/* confdefs.h. */
8734_ACEOF
8735cat confdefs.h >>conftest.$ac_ext
8736cat >>conftest.$ac_ext <<_ACEOF
8737/* end confdefs.h. */
8738
8739/* Override any gcc2 internal prototype to avoid an error. */
8740#ifdef __cplusplus
8741extern "C"
8742#endif
8743/* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
8745char SSL_library_init ();
8746int
8747main ()
8748{
8749SSL_library_init ();
8750 ;
8751 return 0;
8752}
8753_ACEOF
8754rm -f conftest.$ac_objext conftest$ac_exeext
8755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -z "$ac_c_werror_flag"
8764 || test ! -s conftest.err'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest$ac_exeext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_cv_lib_ssl_SSL_library_init=yes
8777else
8778 echo "$as_me: failed program was:" >&5
8779sed 's/^/| /' conftest.$ac_ext >&5
8780
8781ac_cv_lib_ssl_SSL_library_init=no
8782fi
8783rm -f conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785LIBS=$ac_check_lib_save_LIBS
8786fi
8787echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8788echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
8789if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8790 libssl_present=1 && LIBS="$LIBS -lssl"
8791fi
8792
8793 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
8794echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
8795if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798 ac_check_lib_save_LIBS=$LIBS
8799LIBS="-lcrypto $LIBS"
8800cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
8806
8807/* Override any gcc2 internal prototype to avoid an error. */
8808#ifdef __cplusplus
8809extern "C"
8810#endif
8811/* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813char ERR_load_BIO_strings ();
8814int
8815main ()
8816{
8817ERR_load_BIO_strings ();
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext conftest$ac_exeext
8823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
8845else
8846 echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849ac_cv_lib_crypto_ERR_load_BIO_strings=no
8850fi
8851rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853LIBS=$ac_check_lib_save_LIBS
8854fi
8855echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
8856echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
8857if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
8858 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
8859fi
8860
8861 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
8862 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
8863echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
8864 cat >>confdefs.h <<\_ACEOF
8865#define PJSIP_HAS_TLS_TRANSPORT 1
8866_ACEOF
8867
8868 else
8869 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
8870echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
8871 fi
8872
8873fi;
8874
8875
8876
8877
8878echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008879echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008880case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008881 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008882#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008883_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008884
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008885 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008886echo "${ECHO_T}yes" >&6
8887 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008888 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008889#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008890_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008891
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008892 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008893echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008894 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008895echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
8896 ;;
8897esac
8898
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008899echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008900echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
8901case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008902 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008903#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008904_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008905
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008906 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008907echo "${ECHO_T}yes" >&6
8908 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008909 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008910#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008911_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008912
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008913 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008914echo "${ECHO_T}no (default)" >&6
8915 ;;
8916esac
8917
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008918echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008919echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
8920case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008921 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008922#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008923_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008924
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008925 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008926echo "${ECHO_T}yes" >&6
8927 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008928 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008929#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008930_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008931
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008932 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008933echo "${ECHO_T}no (default)" >&6
8934 ;;
8935esac
8936
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008937case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008938 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008939 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008940#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008941_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008942
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008943 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008944 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008945#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008946_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008947
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008948 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008949echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
8950 ;;
8951esac
8952
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008953case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008954 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008955 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008956#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008957_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008958
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008959 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008960 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008961#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008962_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008963
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008964 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008965echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
8966 ;;
8967esac
8968
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008969
8970
8971
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008972if test "$build" = "$host"; then
8973 ac_cross_compile=
8974else
Benny Prijono5b818b22006-09-17 22:58:51 +00008975 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008976fi
8977ac_linux_poll=select
8978
8979ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008980
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008981
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008982case $target in
8983 *rtems*)
8984 ac_main_obj=main_rtems.o
8985 ;;
8986 *)
8987 ac_main_obj=main.o
8988 ;;
8989esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008990
8991cat >confcache <<\_ACEOF
8992# This file is a shell script that caches the results of configure
8993# tests run on this system so they can be shared between configure
8994# scripts and configure runs, see configure's option --config-cache.
8995# It is not useful on other systems. If it contains results you don't
8996# want to keep, you may remove or edit it.
8997#
8998# config.status only pays attention to the cache file if you give it
8999# the --recheck option to rerun configure.
9000#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009001# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009002# loading this file, other *unset* `ac_cv_foo' will be assigned the
9003# following values.
9004
9005_ACEOF
9006
9007# The following way of writing the cache mishandles newlines in values,
9008# but we know of no workaround that is simple, portable, and efficient.
9009# So, don't put newlines in cache variables' values.
9010# Ultrix sh set writes to stderr and can't be redirected directly,
9011# and sets the high bit in the cache file unless we assign to the vars.
9012{
9013 (set) 2>&1 |
9014 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9015 *ac_space=\ *)
9016 # `set' does not quote correctly, so add quotes (double-quote
9017 # substitution turns \\\\ into \\, and sed turns \\ into \).
9018 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009019 "s/'/'\\\\''/g;
9020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009021 ;;
9022 *)
9023 # `set' quotes correctly as required by POSIX, so do not add quotes.
9024 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009025 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009026 ;;
9027 esac;
9028} |
9029 sed '
9030 t clear
9031 : clear
9032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9033 t end
9034 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9035 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009036if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009037 if test -w $cache_file; then
9038 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9039 cat confcache >$cache_file
9040 else
9041 echo "not updating unwritable cache $cache_file"
9042 fi
9043fi
9044rm -f confcache
9045
9046test "x$prefix" = xNONE && prefix=$ac_default_prefix
9047# Let make expand exec_prefix.
9048test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9049
9050# VPATH may cause trouble with some makes, so we remove $(srcdir),
9051# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9052# trailing colons and then remove the whole line if VPATH becomes empty
9053# (actually we leave an empty line to preserve line numbers).
9054if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009055 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009056s/:*\$(srcdir):*/:/;
9057s/:*\${srcdir}:*/:/;
9058s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009059s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009060s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009061s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009062}'
9063fi
9064
9065DEFS=-DHAVE_CONFIG_H
9066
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009067ac_libobjs=
9068ac_ltlibobjs=
9069for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9070 # 1. Remove the extension, and $U if already installed.
9071 ac_i=`echo "$ac_i" |
9072 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9073 # 2. Add them.
9074 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9075 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9076done
9077LIBOBJS=$ac_libobjs
9078
9079LTLIBOBJS=$ac_ltlibobjs
9080
9081
9082
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009083: ${CONFIG_STATUS=./config.status}
9084ac_clean_files_save=$ac_clean_files
9085ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009086{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009087echo "$as_me: creating $CONFIG_STATUS" >&6;}
9088cat >$CONFIG_STATUS <<_ACEOF
9089#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009090# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009091# Run this file to recreate the current configuration.
9092# Compiler output produced by configure, useful for debugging
9093# configure, is in config.log if it exists.
9094
9095debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009096ac_cs_recheck=false
9097ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009098SHELL=\${CONFIG_SHELL-$SHELL}
9099_ACEOF
9100
9101cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009102## --------------------- ##
9103## M4sh Initialization. ##
9104## --------------------- ##
9105
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009106# Be Bourne compatible
9107if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9108 emulate sh
9109 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009110 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9111 # is contrary to our usage. Disable this feature.
9112 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009113elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9114 set -o posix
9115fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009116DUALCASE=1; export DUALCASE # for MKS sh
9117
9118# Support unset when possible.
9119if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9120 as_unset=unset
9121else
9122 as_unset=false
9123fi
9124
9125
9126# Work around bugs in pre-3.0 UWIN ksh.
9127$as_unset ENV MAIL MAILPATH
9128PS1='$ '
9129PS2='> '
9130PS4='+ '
9131
9132# NLS nuisances.
9133for as_var in \
9134 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9135 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9136 LC_TELEPHONE LC_TIME
9137do
9138 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9139 eval $as_var=C; export $as_var
9140 else
9141 $as_unset $as_var
9142 fi
9143done
9144
9145# Required to use basename.
9146if expr a : '\(a\)' >/dev/null 2>&1; then
9147 as_expr=expr
9148else
9149 as_expr=false
9150fi
9151
9152if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9153 as_basename=basename
9154else
9155 as_basename=false
9156fi
9157
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009158
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009159# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009160as_me=`$as_basename "$0" ||
9161$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9162 X"$0" : 'X\(//\)$' \| \
9163 X"$0" : 'X\(/\)$' \| \
9164 . : '\(.\)' 2>/dev/null ||
9165echo X/"$0" |
9166 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9167 /^X\/\(\/\/\)$/{ s//\1/; q; }
9168 /^X\/\(\/\).*/{ s//\1/; q; }
9169 s/.*/./; q'`
9170
9171
9172# PATH needs CR, and LINENO needs CR and PATH.
9173# Avoid depending upon Character Ranges.
9174as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9175as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9176as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9177as_cr_digits='0123456789'
9178as_cr_alnum=$as_cr_Letters$as_cr_digits
9179
9180# The user is always right.
9181if test "${PATH_SEPARATOR+set}" != set; then
9182 echo "#! /bin/sh" >conf$$.sh
9183 echo "exit 0" >>conf$$.sh
9184 chmod +x conf$$.sh
9185 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9186 PATH_SEPARATOR=';'
9187 else
9188 PATH_SEPARATOR=:
9189 fi
9190 rm -f conf$$.sh
9191fi
9192
9193
9194 as_lineno_1=$LINENO
9195 as_lineno_2=$LINENO
9196 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9197 test "x$as_lineno_1" != "x$as_lineno_2" &&
9198 test "x$as_lineno_3" = "x$as_lineno_2" || {
9199 # Find who we are. Look in the path if we contain no path at all
9200 # relative or not.
9201 case $0 in
9202 *[\\/]* ) as_myself=$0 ;;
9203 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9209done
9210
9211 ;;
9212 esac
9213 # We did not find ourselves, most probably we were run as `sh COMMAND'
9214 # in which case we are not to be found in the path.
9215 if test "x$as_myself" = x; then
9216 as_myself=$0
9217 fi
9218 if test ! -f "$as_myself"; then
9219 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9220echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9221 { (exit 1); exit 1; }; }
9222 fi
9223 case $CONFIG_SHELL in
9224 '')
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9227do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for as_base in sh bash ksh sh5; do
9231 case $as_dir in
9232 /*)
9233 if ("$as_dir/$as_base" -c '
9234 as_lineno_1=$LINENO
9235 as_lineno_2=$LINENO
9236 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9237 test "x$as_lineno_1" != "x$as_lineno_2" &&
9238 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9239 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9240 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9241 CONFIG_SHELL=$as_dir/$as_base
9242 export CONFIG_SHELL
9243 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9244 fi;;
9245 esac
9246 done
9247done
9248;;
9249 esac
9250
9251 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9252 # uniformly replaced by the line number. The first 'sed' inserts a
9253 # line-number line before each line; the second 'sed' does the real
9254 # work. The second script uses 'N' to pair each line-number line
9255 # with the numbered line, and appends trailing '-' during
9256 # substitution so that $LINENO is not a special case at line end.
9257 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9258 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9259 sed '=' <$as_myself |
9260 sed '
9261 N
9262 s,$,-,
9263 : loop
9264 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9265 t loop
9266 s,-$,,
9267 s,^['$as_cr_digits']*\n,,
9268 ' >$as_me.lineno &&
9269 chmod +x $as_me.lineno ||
9270 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9271echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9272 { (exit 1); exit 1; }; }
9273
9274 # Don't try to exec as it changes $[0], causing all sort of problems
9275 # (the dirname of $[0] is not the place where we might find the
9276 # original and so on. Autoconf is especially sensible to this).
9277 . ./$as_me.lineno
9278 # Exit status is that of the last command.
9279 exit
9280}
9281
9282
9283case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9284 *c*,-n*) ECHO_N= ECHO_C='
9285' ECHO_T=' ' ;;
9286 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9287 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9288esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009289
9290if expr a : '\(a\)' >/dev/null 2>&1; then
9291 as_expr=expr
9292else
9293 as_expr=false
9294fi
9295
9296rm -f conf$$ conf$$.exe conf$$.file
9297echo >conf$$.file
9298if ln -s conf$$.file conf$$ 2>/dev/null; then
9299 # We could just check for DJGPP; but this test a) works b) is more generic
9300 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9301 if test -f conf$$.exe; then
9302 # Don't use ln at all; we don't have any links
9303 as_ln_s='cp -p'
9304 else
9305 as_ln_s='ln -s'
9306 fi
9307elif ln conf$$.file conf$$ 2>/dev/null; then
9308 as_ln_s=ln
9309else
9310 as_ln_s='cp -p'
9311fi
9312rm -f conf$$ conf$$.exe conf$$.file
9313
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009314if mkdir -p . 2>/dev/null; then
9315 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +00009316else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009317 test -d ./-p && rmdir ./-p
9318 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00009319fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009320
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009321as_executable_p="test -f"
9322
9323# Sed expression to map a string onto a valid CPP name.
9324as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9325
9326# Sed expression to map a string onto a valid variable name.
9327as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9328
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009329
9330# IFS
9331# We need space, tab and new line, in precisely that order.
9332as_nl='
9333'
9334IFS=" $as_nl"
9335
9336# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009337$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009338
9339exec 6>&1
9340
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009341# Open the log real soon, to keep \$[0] and so on meaningful, and to
9342# report actual input values of CONFIG_FILES etc. instead of their
9343# values after options handling. Logging --version etc. is OK.
9344exec 5>>config.log
9345{
9346 echo
9347 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9348## Running $as_me. ##
9349_ASBOX
9350} >&5
9351cat >&5 <<_CSEOF
9352
9353This file was extended by pjproject $as_me 0.5.8, which was
9354generated by GNU Autoconf 2.59. Invocation command line was
9355
9356 CONFIG_FILES = $CONFIG_FILES
9357 CONFIG_HEADERS = $CONFIG_HEADERS
9358 CONFIG_LINKS = $CONFIG_LINKS
9359 CONFIG_COMMANDS = $CONFIG_COMMANDS
9360 $ $0 $@
9361
9362_CSEOF
9363echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9364echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009365_ACEOF
9366
9367# Files that config.status was made for.
9368if test -n "$ac_config_files"; then
9369 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9370fi
9371
9372if test -n "$ac_config_headers"; then
9373 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9374fi
9375
9376if test -n "$ac_config_links"; then
9377 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9378fi
9379
9380if test -n "$ac_config_commands"; then
9381 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9382fi
9383
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009384cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009385
9386ac_cs_usage="\
9387\`$as_me' instantiates files from templates according to the
9388current configuration.
9389
9390Usage: $0 [OPTIONS] [FILE]...
9391
9392 -h, --help print this help, then exit
9393 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009394 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009395 -d, --debug don't remove temporary files
9396 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009397 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009398 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009399 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009400 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009401
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009402Configuration files:
9403$config_files
9404
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009405Configuration headers:
9406$config_headers
9407
9408Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009409_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009410
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009411cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009412ac_cs_version="\\
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009413pjproject config.status 0.5.8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009414configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009415 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9416
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009417Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009418This config.status script is free software; the Free Software Foundation
9419gives unlimited permission to copy, distribute and modify it."
9420srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009421_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009422
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009423cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009424# If no file are specified by the user, then we need to provide default
9425# value. By we need to know if files were specified by the user.
9426ac_need_defaults=:
9427while test $# != 0
9428do
9429 case $1 in
9430 --*=*)
9431 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9432 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009433 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009434 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009435 -*)
9436 ac_option=$1
9437 ac_optarg=$2
9438 ac_shift=shift
9439 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009440 *) # This is not an option, so the user has probably given explicit
9441 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009442 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009443 ac_need_defaults=false;;
9444 esac
9445
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009446 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009447 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009448_ACEOF
9449cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009451 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009452 --version | --vers* | -V )
9453 echo "$ac_cs_version"; exit 0 ;;
9454 --he | --h)
9455 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009456 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009457Try \`$0 --help' for more information." >&5
9458echo "$as_me: error: ambiguous option: $1
9459Try \`$0 --help' for more information." >&2;}
9460 { (exit 1); exit 1; }; };;
9461 --help | --hel | -h )
9462 echo "$ac_cs_usage"; exit 0 ;;
9463 --debug | --d* | -d )
9464 debug=: ;;
9465 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009466 $ac_shift
9467 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009468 ac_need_defaults=false;;
9469 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009470 $ac_shift
9471 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009472 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9474 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9475 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009476
9477 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009478 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009479Try \`$0 --help' for more information." >&5
9480echo "$as_me: error: unrecognized option: $1
9481Try \`$0 --help' for more information." >&2;}
9482 { (exit 1); exit 1; }; } ;;
9483
9484 *) ac_config_targets="$ac_config_targets $1" ;;
9485
9486 esac
9487 shift
9488done
9489
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009490ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009491
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009492if $ac_cs_silent; then
9493 exec 6>/dev/null
9494 ac_configure_extra_args="$ac_configure_extra_args --silent"
9495fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009496
9497_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009498cat >>$CONFIG_STATUS <<_ACEOF
9499if \$ac_cs_recheck; then
9500 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9501 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9502fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009503
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009504_ACEOF
9505
9506
9507
9508
9509
9510cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009511for ac_config_target in $ac_config_targets
9512do
9513 case "$ac_config_target" in
9514 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009515 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
9516 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
9517 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
9518 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
9519 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
9520 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009521 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009522 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009523 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
9524 "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009525 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
9526 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009527echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9528 { (exit 1); exit 1; }; };;
9529 esac
9530done
9531
9532# If the user did not use the arguments to specify the items to instantiate,
9533# then the envvar interface is used. Set only those that are not.
9534# We use the long form for the default assignment because of an extremely
9535# bizarre bug on SunOS 4.1.3.
9536if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009537 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009538 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9539fi
9540
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009541# Have a temporary directory for convenience. Make it in the build tree
9542# simply because there is no reason to put it here, and in addition,
9543# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009544# Create a temporary directory, and hook for its removal unless debugging.
9545$debug ||
9546{
9547 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9548 trap '{ (exit 1); exit 1; }' 1 2 13 15
9549}
9550
9551# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009552
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009553{
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009554 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009555 test -n "$tmp" && test -d "$tmp"
9556} ||
9557{
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009558 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009559 (umask 077 && mkdir $tmp)
9560} ||
9561{
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009562 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009563 { (exit 1); exit 1; }
9564}
9565
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009566_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009567
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009568cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009569
9570#
9571# CONFIG_FILES section.
9572#
9573
9574# No need to generate the scripts if there are no CONFIG_FILES.
9575# This happens for instance when ./config.status config.h
9576if test -n "\$CONFIG_FILES"; then
9577 # Protect against being on the right side of a sed subst in config.status.
9578 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9579 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9580s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009581s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9582s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9583s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9584s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9585s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9586s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009587s,@exec_prefix@,$exec_prefix,;t t
9588s,@prefix@,$prefix,;t t
9589s,@program_transform_name@,$program_transform_name,;t t
9590s,@bindir@,$bindir,;t t
9591s,@sbindir@,$sbindir,;t t
9592s,@libexecdir@,$libexecdir,;t t
9593s,@datadir@,$datadir,;t t
9594s,@sysconfdir@,$sysconfdir,;t t
9595s,@sharedstatedir@,$sharedstatedir,;t t
9596s,@localstatedir@,$localstatedir,;t t
9597s,@libdir@,$libdir,;t t
9598s,@includedir@,$includedir,;t t
9599s,@oldincludedir@,$oldincludedir,;t t
9600s,@infodir@,$infodir,;t t
9601s,@mandir@,$mandir,;t t
9602s,@build_alias@,$build_alias,;t t
9603s,@host_alias@,$host_alias,;t t
9604s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009605s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009606s,@ECHO_C@,$ECHO_C,;t t
9607s,@ECHO_N@,$ECHO_N,;t t
9608s,@ECHO_T@,$ECHO_T,;t t
9609s,@LIBS@,$LIBS,;t t
9610s,@build@,$build,;t t
9611s,@build_cpu@,$build_cpu,;t t
9612s,@build_vendor@,$build_vendor,;t t
9613s,@build_os@,$build_os,;t t
9614s,@host@,$host,;t t
9615s,@host_cpu@,$host_cpu,;t t
9616s,@host_vendor@,$host_vendor,;t t
9617s,@host_os@,$host_os,;t t
9618s,@target@,$target,;t t
9619s,@target_cpu@,$target_cpu,;t t
9620s,@target_vendor@,$target_vendor,;t t
9621s,@target_os@,$target_os,;t t
9622s,@CC@,$CC,;t t
9623s,@CFLAGS@,$CFLAGS,;t t
9624s,@LDFLAGS@,$LDFLAGS,;t t
9625s,@CPPFLAGS@,$CPPFLAGS,;t t
9626s,@ac_ct_CC@,$ac_ct_CC,;t t
9627s,@EXEEXT@,$EXEEXT,;t t
9628s,@OBJEXT@,$OBJEXT,;t t
9629s,@CXX@,$CXX,;t t
9630s,@CXXFLAGS@,$CXXFLAGS,;t t
9631s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009632s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009633s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009634s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009635s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +00009636s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009637s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
9638s,@ac_no_small_filter@,$ac_no_small_filter,;t t
9639s,@ac_no_large_filter@,$ac_no_large_filter,;t t
9640s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t
9641s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
9642s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
9643s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
9644s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
9645s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
9646s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009647s,@ac_no_ssl@,$ac_no_ssl,;t t
9648s,@openssl_h_present@,$openssl_h_present,;t t
9649s,@libssl_present@,$libssl_present,;t t
9650s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009651s,@ac_cross_compile@,$ac_cross_compile,;t t
9652s,@ac_linux_poll@,$ac_linux_poll,;t t
9653s,@ac_host@,$ac_host,;t t
9654s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009655s,@LIBOBJS@,$LIBOBJS,;t t
9656s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009657CEOF
9658
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009659_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009660
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009661 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009662 # Split the substitutions into bite-sized pieces for seds with
9663 # small command number limits, like on Digital OSF/1 and HP-UX.
9664 ac_max_sed_lines=48
9665 ac_sed_frag=1 # Number of current file.
9666 ac_beg=1 # First line for current file.
9667 ac_end=$ac_max_sed_lines # Line after last line for current file.
9668 ac_more_lines=:
9669 ac_sed_cmds=
9670 while $ac_more_lines; do
9671 if test $ac_beg -gt 1; then
9672 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9673 else
9674 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9675 fi
9676 if test ! -s $tmp/subs.frag; then
9677 ac_more_lines=false
9678 else
9679 # The purpose of the label and of the branching condition is to
9680 # speed up the sed processing (if there are no `@' at all, there
9681 # is no need to browse any of the substitutions).
9682 # These are the two extra sed commands mentioned above.
9683 (echo ':t
9684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9685 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009686 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009687 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009688 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009689 fi
9690 ac_sed_frag=`expr $ac_sed_frag + 1`
9691 ac_beg=$ac_end
9692 ac_end=`expr $ac_end + $ac_max_sed_lines`
9693 fi
9694 done
9695 if test -z "$ac_sed_cmds"; then
9696 ac_sed_cmds=cat
9697 fi
9698fi # test -n "$CONFIG_FILES"
9699
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009700_ACEOF
9701cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009702for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9703 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9704 case $ac_file in
9705 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009706 cat >$tmp/stdin
9707 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9708 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009709 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009710 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009711 * ) ac_file_in=$ac_file.in ;;
9712 esac
9713
9714 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009715 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9716$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9717 X"$ac_file" : 'X\(//\)[^/]' \| \
9718 X"$ac_file" : 'X\(//\)$' \| \
9719 X"$ac_file" : 'X\(/\)' \| \
9720 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009721echo X"$ac_file" |
9722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9724 /^X\(\/\/\)$/{ s//\1/; q; }
9725 /^X\(\/\).*/{ s//\1/; q; }
9726 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009727 { if $as_mkdir_p; then
9728 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009729 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009730 as_dir="$ac_dir"
9731 as_dirs=
9732 while test ! -d "$as_dir"; do
9733 as_dirs="$as_dir $as_dirs"
9734 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9736 X"$as_dir" : 'X\(//\)[^/]' \| \
9737 X"$as_dir" : 'X\(//\)$' \| \
9738 X"$as_dir" : 'X\(/\)' \| \
9739 . : '\(.\)' 2>/dev/null ||
9740echo X"$as_dir" |
9741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9743 /^X\(\/\/\)$/{ s//\1/; q; }
9744 /^X\(\/\).*/{ s//\1/; q; }
9745 s/.*/./; q'`
9746 done
9747 test ! -n "$as_dirs" || mkdir $as_dirs
9748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9749echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9750 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009751
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009752 ac_builddir=.
9753
9754if test "$ac_dir" != .; then
9755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9756 # A "../" for each directory in $ac_dir_suffix.
9757 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9758else
9759 ac_dir_suffix= ac_top_builddir=
9760fi
9761
9762case $srcdir in
9763 .) # No --srcdir option. We are building in place.
9764 ac_srcdir=.
9765 if test -z "$ac_top_builddir"; then
9766 ac_top_srcdir=.
9767 else
9768 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9769 fi ;;
9770 [\\/]* | ?:[\\/]* ) # Absolute path.
9771 ac_srcdir=$srcdir$ac_dir_suffix;
9772 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009773 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009774 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9775 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9776esac
9777
9778# Do not use `cd foo && pwd` to compute absolute paths, because
9779# the directories may not exist.
9780case `pwd` in
9781.) ac_abs_builddir="$ac_dir";;
9782*)
9783 case "$ac_dir" in
9784 .) ac_abs_builddir=`pwd`;;
9785 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9786 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9787 esac;;
9788esac
9789case $ac_abs_builddir in
9790.) ac_abs_top_builddir=${ac_top_builddir}.;;
9791*)
9792 case ${ac_top_builddir}. in
9793 .) ac_abs_top_builddir=$ac_abs_builddir;;
9794 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9795 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9796 esac;;
9797esac
9798case $ac_abs_builddir in
9799.) ac_abs_srcdir=$ac_srcdir;;
9800*)
9801 case $ac_srcdir in
9802 .) ac_abs_srcdir=$ac_abs_builddir;;
9803 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9804 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9805 esac;;
9806esac
9807case $ac_abs_builddir in
9808.) ac_abs_top_srcdir=$ac_top_srcdir;;
9809*)
9810 case $ac_top_srcdir in
9811 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9812 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9813 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9814 esac;;
9815esac
9816
9817
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009818
9819 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009820 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009821echo "$as_me: creating $ac_file" >&6;}
9822 rm -f "$ac_file"
9823 fi
9824 # Let's still pretend it is `configure' which instantiates (i.e., don't
9825 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009826 # /* config.h. Generated by config.status. */
9827 if test x"$ac_file" = x-; then
9828 configure_input=
9829 else
9830 configure_input="$ac_file. "
9831 fi
9832 configure_input=$configure_input"Generated from `echo $ac_file_in |
9833 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009834
9835 # First look for the input files in the build tree, otherwise in the
9836 # src tree.
9837 ac_file_inputs=`IFS=:
9838 for f in $ac_file_in; do
9839 case $f in
9840 -) echo $tmp/stdin ;;
9841 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009842 # Absolute (can't be DOS-style, as IFS=:)
9843 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009844echo "$as_me: error: cannot find input file: $f" >&2;}
9845 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009846 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009847 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009848 if test -f "$f"; then
9849 # Build tree
9850 echo "$f"
9851 elif test -f "$srcdir/$f"; then
9852 # Source tree
9853 echo "$srcdir/$f"
9854 else
9855 # /dev/null tree
9856 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009857echo "$as_me: error: cannot find input file: $f" >&2;}
9858 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009859 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009860 esac
9861 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009862_ACEOF
9863cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009864 sed "$ac_vpsub
9865$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009866_ACEOF
9867cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009868:t
9869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9870s,@configure_input@,$configure_input,;t t
9871s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009872s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009873s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009874s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9875s,@builddir@,$ac_builddir,;t t
9876s,@abs_builddir@,$ac_abs_builddir,;t t
9877s,@top_builddir@,$ac_top_builddir,;t t
9878s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009879" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9880 rm -f $tmp/stdin
9881 if test x"$ac_file" != x-; then
9882 mv $tmp/out $ac_file
9883 else
9884 cat $tmp/out
9885 rm -f $tmp/out
9886 fi
9887
9888done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009889_ACEOF
9890cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009891
9892#
9893# CONFIG_HEADER section.
9894#
9895
9896# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9897# NAME is the cpp macro being defined and VALUE is the value it is being given.
9898#
9899# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009900ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9901ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009902ac_dC=' '
9903ac_dD=',;t'
9904# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009905ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009906ac_uB='$,\1#\2define\3'
9907ac_uC=' '
9908ac_uD=',;t'
9909
9910for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9912 case $ac_file in
9913 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009914 cat >$tmp/stdin
9915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009919 * ) ac_file_in=$ac_file.in ;;
9920 esac
9921
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009922 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009923echo "$as_me: creating $ac_file" >&6;}
9924
9925 # First look for the input files in the build tree, otherwise in the
9926 # src tree.
9927 ac_file_inputs=`IFS=:
9928 for f in $ac_file_in; do
9929 case $f in
9930 -) echo $tmp/stdin ;;
9931 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009932 # Absolute (can't be DOS-style, as IFS=:)
9933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009934echo "$as_me: error: cannot find input file: $f" >&2;}
9935 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009936 # Do quote $f, to prevent DOS paths from being IFS'd.
9937 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009938 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009939 if test -f "$f"; then
9940 # Build tree
9941 echo "$f"
9942 elif test -f "$srcdir/$f"; then
9943 # Source tree
9944 echo "$srcdir/$f"
9945 else
9946 # /dev/null tree
9947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009948echo "$as_me: error: cannot find input file: $f" >&2;}
9949 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009950 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009951 esac
9952 done` || { (exit 1); exit 1; }
9953 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009955
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009956_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009957
9958# Transform confdefs.h into two sed scripts, `conftest.defines' and
9959# `conftest.undefs', that substitutes the proper values into
9960# config.h.in to produce config.h. The first handles `#define'
9961# templates, and the second `#undef' templates.
9962# And first: Protect against being on the right side of a sed subst in
9963# config.status. Protect against being in an unquoted here document
9964# in config.status.
9965rm -f conftest.defines conftest.undefs
9966# Using a here document instead of a string reduces the quoting nightmare.
9967# Putting comments in sed scripts is not portable.
9968#
9969# `end' is used to avoid that the second main sed command (meant for
9970# 0-ary CPP macros) applies to n-ary macro definitions.
9971# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009972cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009973s/[\\&,]/\\&/g
9974s,[\\$`],\\&,g
9975t clear
9976: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009977s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009978t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009979s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009980: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009981_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009982# If some macros were called several times there might be several times
9983# the same #defines, which is useless. Nevertheless, we may not want to
9984# sort them, since we want the *last* AC-DEFINE to be honored.
9985uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9986sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9987rm -f confdef2sed.sed
9988
9989# This sed command replaces #undef with comments. This is necessary, for
9990# example, in the case of _POSIX_SOURCE, which is predefined and required
9991# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009992cat >>conftest.undefs <<\_ACEOF
9993s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9994_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009995
9996# Break up conftest.defines because some shells have a limit on the size
9997# of here documents, and old seds have small limits too (100 cmds).
9998echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009999echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010000echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10001echo ' :' >>$CONFIG_STATUS
10002rm -f conftest.tail
10003while grep . conftest.defines >/dev/null
10004do
10005 # Write a limited-size here document to $tmp/defines.sed.
10006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10007 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010009 # Work around the forget-to-reset-the-flag bug.
10010 echo 't clr' >>$CONFIG_STATUS
10011 echo ': clr' >>$CONFIG_STATUS
10012 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10013 echo 'CEOF
10014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10015 rm -f $tmp/in
10016 mv $tmp/out $tmp/in
10017' >>$CONFIG_STATUS
10018 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10019 rm -f conftest.defines
10020 mv conftest.tail conftest.defines
10021done
10022rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010023echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010024echo >>$CONFIG_STATUS
10025
10026# Break up conftest.undefs because some shells have a limit on the size
10027# of here documents, and old seds have small limits too (100 cmds).
10028echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10029rm -f conftest.tail
10030while grep . conftest.undefs >/dev/null
10031do
10032 # Write a limited-size here document to $tmp/undefs.sed.
10033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10034 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010036 # Work around the forget-to-reset-the-flag bug.
10037 echo 't clr' >>$CONFIG_STATUS
10038 echo ': clr' >>$CONFIG_STATUS
10039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10040 echo 'CEOF
10041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10042 rm -f $tmp/in
10043 mv $tmp/out $tmp/in
10044' >>$CONFIG_STATUS
10045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10046 rm -f conftest.undefs
10047 mv conftest.tail conftest.undefs
10048done
10049rm -f conftest.undefs
10050
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010051cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010052 # Let's still pretend it is `configure' which instantiates (i.e., don't
10053 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010054 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010055 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010056 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010057 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010059 fi
10060 cat $tmp/in >>$tmp/config.h
10061 rm -f $tmp/in
10062 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010063 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010065echo "$as_me: $ac_file is unchanged" >&6;}
10066 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10068$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10069 X"$ac_file" : 'X\(//\)[^/]' \| \
10070 X"$ac_file" : 'X\(//\)$' \| \
10071 X"$ac_file" : 'X\(/\)' \| \
10072 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010073echo X"$ac_file" |
10074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10076 /^X\(\/\/\)$/{ s//\1/; q; }
10077 /^X\(\/\).*/{ s//\1/; q; }
10078 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010079 { if $as_mkdir_p; then
10080 mkdir -p "$ac_dir"
10081 else
10082 as_dir="$ac_dir"
10083 as_dirs=
10084 while test ! -d "$as_dir"; do
10085 as_dirs="$as_dir $as_dirs"
10086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10088 X"$as_dir" : 'X\(//\)[^/]' \| \
10089 X"$as_dir" : 'X\(//\)$' \| \
10090 X"$as_dir" : 'X\(/\)' \| \
10091 . : '\(.\)' 2>/dev/null ||
10092echo X"$as_dir" |
10093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10095 /^X\(\/\/\)$/{ s//\1/; q; }
10096 /^X\(\/\).*/{ s//\1/; q; }
10097 s/.*/./; q'`
10098 done
10099 test ! -n "$as_dirs" || mkdir $as_dirs
10100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10101echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10102 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010103
10104 rm -f $ac_file
10105 mv $tmp/config.h $ac_file
10106 fi
10107 else
10108 cat $tmp/config.h
10109 rm -f $tmp/config.h
10110 fi
10111done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010112_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010113
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010114cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010115
10116{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010117_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010118chmod +x $CONFIG_STATUS
10119ac_clean_files=$ac_clean_files_save
10120
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010121
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010122# configure is writing to config.log, and then calls config.status.
10123# config.status does its own redirection, appending to config.log.
10124# Unfortunately, on DOS this fails, as config.log is still kept open
10125# by configure, so config.status won't be able to write to it; its
10126# output is simply discarded. So we exec the FD to /dev/null,
10127# effectively closing config.log, so it can be properly (re)opened and
10128# appended to by config.status. When coming back to configure, we
10129# need to make the FD available again.
10130if test "$no_create" != yes; then
10131 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010132 ac_config_status_args=
10133 test "$silent" = yes &&
10134 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010135 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010136 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010137 exec 5>>config.log
10138 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10139 # would make configure fail if this is the last instruction.
10140 $ac_cs_success || { (exit 1); exit 1; }
10141fi
10142
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010143