blob: 41567e4ed4f0e5d2e00343a03e30b85ecc286d35 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonoce1db762007-02-14 02:21:08 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.5.10.
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'
Benny Prijonoce1db762007-02-14 02:21:08 +0000270PACKAGE_VERSION='0.5.10'
271PACKAGE_STRING='pjproject 0.5.10'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000272PACKAGE_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
Benny Prijono12483112007-03-12 10:44:38 +0000311ac_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 ac_pjdir 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'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000312ac_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 Prijonoce1db762007-02-14 02:21:08 +0000788\`configure' configures pjproject 0.5.10 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 Prijonoce1db762007-02-14 02:21:08 +0000850 short | recursive ) echo "Configuration of pjproject 0.5.10:";;
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
Benny Prijonoce1db762007-02-14 02:21:08 +0000869 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000870
871
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000872Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000879 CXX C++ compiler command
880 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000881 CPP C preprocessor
882
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000886_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000887fi
888
889if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000895
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000896if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901 ac_dir_suffix= ac_top_builddir=
902fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000903
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000904case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918esac
919
920# Do not use `cd foo && pwd` to compute absolute paths, because
921# the directories may not exist.
922case `pwd` in
923.) ac_abs_builddir="$ac_dir";;
924*)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930esac
931case $ac_abs_builddir in
932.) ac_abs_top_builddir=${ac_top_builddir}.;;
933*)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_srcdir=$ac_srcdir;;
942*)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_top_srcdir=$ac_top_srcdir;;
951*)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957esac
958
959 cd $ac_dir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000960 # Check for guested configure; otherwise get Cygnus style configure.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000961 if test -f $ac_srcdir/configure.gnu; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000962 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000965 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000969 echo
970 $ac_configure --help
971 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000973 fi
974 cd $ac_popdir
975 done
976fi
977
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000980 cat <<\_ACEOF
Benny Prijonoce1db762007-02-14 02:21:08 +0000981pjproject configure 0.5.10
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000982generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000983
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000984Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000987_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000988 exit 0
989fi
990exec 5>config.log
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000991cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
994
Benny Prijonoce1db762007-02-14 02:21:08 +0000995It was created by pjproject $as_me 0.5.10, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000996generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000997
998 $ $0 $@
999
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001000_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001001{
1002cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001003## --------- ##
1004## Platform. ##
1005## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
1033
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001034} >&5
1035
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001036cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001037
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001038
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
1042
1043_ACEOF
1044
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001048# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001049# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001050# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001051ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001052ac_configure_args0=
1053ac_configure_args1=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001054ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001055ac_must_keep_next=false
1056for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001057do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001093done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$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 +00001096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log. We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001102trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001114{
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001121 ;;
1122 *)
1123 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001125 ;;
1126 esac;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001127}
1128 echo
1129
1130 cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001174 exit $exit_status
1175 ' 0
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001225echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001226 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001227 . "$ac_site_file"
1228 fi
1229done
1230
1231if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001259 { 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 +00001260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001272echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001274echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001275 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001276 fi;;
1277 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001278 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001288 esac
1289 fi
1290done
1291if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
Benny Prijono5b818b22006-09-17 22:58:51 +00001331
1332host_orig="$host"
1333
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001334ac_aux_dir=
1335for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336 if test -f $ac_dir/install-sh; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 break
1340 elif test -f $ac_dir/install.sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 break
1344 elif test -f $ac_dir/shtool; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 break
1348 fi
1349done
1350if test -z "$ac_aux_dir"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001352echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353 { (exit 1); exit 1; }; }
1354fi
1355ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358
1359# Make sure we can run config.sub.
1360$ac_config_sub sun4 >/dev/null 2>&1 ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001361 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001362echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363 { (exit 1); exit 1; }; }
1364
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001365echo "$as_me:$LINENO: checking build system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001366echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367if test "${ac_cv_build+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369else
1370 ac_cv_build_alias=$build_alias
1371test -z "$ac_cv_build_alias" &&
1372 ac_cv_build_alias=`$ac_config_guess`
1373test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001374 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001375echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376 { (exit 1); exit 1; }; }
1377ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001378 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001380 { (exit 1); exit 1; }; }
1381
1382fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001383echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001384echo "${ECHO_T}$ac_cv_build" >&6
1385build=$ac_cv_build
1386build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1389
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001390
1391echo "$as_me:$LINENO: checking host system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001392echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393if test "${ac_cv_host+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395else
1396 ac_cv_host_alias=$host_alias
1397test -z "$ac_cv_host_alias" &&
1398 ac_cv_host_alias=$ac_cv_build_alias
1399ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001401echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1403
1404fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001405echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001406echo "${ECHO_T}$ac_cv_host" >&6
1407host=$ac_cv_host
1408host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1411
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001412
1413echo "$as_me:$LINENO: checking target system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001414echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415if test "${ac_cv_target+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417else
1418 ac_cv_target_alias=$target_alias
1419test "x$ac_cv_target_alias" = "x" &&
1420 ac_cv_target_alias=$ac_cv_host_alias
1421ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001423echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1425
1426fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001427echo "$as_me:$LINENO: result: $ac_cv_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001428echo "${ECHO_T}$ac_cv_target" >&6
1429target=$ac_cv_target
1430target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001434
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001435# The aliases save the names the user supplied, while $host etc.
1436# will get canonicalized.
1437test -n "$target_alias" &&
1438 test "$program_prefix$program_suffix$program_transform_name" = \
1439 NONENONEs,x,x, &&
1440 program_prefix=${target_alias}-
Benny Prijono06d1d0e2007-01-27 18:09:28 +00001441 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 +00001442
Benny Prijonod1872312007-04-09 20:54:12 +00001443 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 third_party/build/portaudio/Makefile"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001444
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001445
Benny Prijono12483112007-03-12 10:44:38 +00001446
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001447if 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
Benny Prijono12483112007-03-12 10:44:38 +00002748ac_pjdir=`pwd`
2749
2750
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002751
2752echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002753echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2754if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756else
2757 ac_check_lib_save_LIBS=$LIBS
2758LIBS="-lpthread $LIBS"
2759cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002760/* confdefs.h. */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002765
2766/* Override any gcc2 internal prototype to avoid an error. */
2767#ifdef __cplusplus
2768extern "C"
2769#endif
2770/* We use char because int might match the return type of a gcc2
2771 builtin and then its argument prototype would still apply. */
2772char pthread_create ();
2773int
2774main ()
2775{
2776pthread_create ();
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2783 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002784 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002789 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002793 (eval $ac_try) 2>&5
2794 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest$ac_exeext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002802 (exit $ac_status); }; }; then
2803 ac_cv_lib_pthread_pthread_create=yes
2804else
2805 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002806sed 's/^/| /' conftest.$ac_ext >&5
2807
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002808ac_cv_lib_pthread_pthread_create=no
2809fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002810rm -f conftest.err conftest.$ac_objext \
2811 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002812LIBS=$ac_check_lib_save_LIBS
2813fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002814echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002815echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2816if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002817 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002818#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002819_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002820
2821 LIBS="-lpthread $LIBS"
2822
2823fi
2824
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002825
2826echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002827echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
2828if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
2831 ac_check_lib_save_LIBS=$LIBS
2832LIBS="-lwsock32 $LIBS"
2833cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002839
2840/* Override any gcc2 internal prototype to avoid an error. */
2841#ifdef __cplusplus
2842extern "C"
2843#endif
2844/* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2846char puts ();
2847int
2848main ()
2849{
2850puts ();
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002858 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002863 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002867 (eval $ac_try) 2>&5
2868 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest$ac_exeext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002876 (exit $ac_status); }; }; then
2877 ac_cv_lib_wsock32_puts=yes
2878else
2879 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002880sed 's/^/| /' conftest.$ac_ext >&5
2881
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002882ac_cv_lib_wsock32_puts=no
2883fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002884rm -f conftest.err conftest.$ac_objext \
2885 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002886LIBS=$ac_check_lib_save_LIBS
2887fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002888echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002889echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
2890if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002891 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002892#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002893_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002894
2895 LIBS="-lwsock32 $LIBS"
2896
2897fi
2898
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002899
2900echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002901echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
2902if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2904else
2905 ac_check_lib_save_LIBS=$LIBS
2906LIBS="-lws2_32 $LIBS"
2907cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002913
2914/* Override any gcc2 internal prototype to avoid an error. */
2915#ifdef __cplusplus
2916extern "C"
2917#endif
2918/* We use char because int might match the return type of a gcc2
2919 builtin and then its argument prototype would still apply. */
2920char puts ();
2921int
2922main ()
2923{
2924puts ();
2925 ;
2926 return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002932 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002937 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002938 { ac_try='test -z "$ac_c_werror_flag"
2939 || test ! -s conftest.err'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002941 (eval $ac_try) 2>&5
2942 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; } &&
2945 { ac_try='test -s conftest$ac_exeext'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002950 (exit $ac_status); }; }; then
2951 ac_cv_lib_ws2_32_puts=yes
2952else
2953 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002954sed 's/^/| /' conftest.$ac_ext >&5
2955
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002956ac_cv_lib_ws2_32_puts=no
2957fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002958rm -f conftest.err conftest.$ac_objext \
2959 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002960LIBS=$ac_check_lib_save_LIBS
2961fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002962echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002963echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
2964if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002965 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002966#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002967_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002968
2969 LIBS="-lws2_32 $LIBS"
2970
2971fi
2972
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002973
2974echo "$as_me:$LINENO: checking for puts in -lole32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002975echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
2976if test "${ac_cv_lib_ole32_puts+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 ac_check_lib_save_LIBS=$LIBS
2980LIBS="-lole32 $LIBS"
2981cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002987
2988/* Override any gcc2 internal prototype to avoid an error. */
2989#ifdef __cplusplus
2990extern "C"
2991#endif
2992/* We use char because int might match the return type of a gcc2
2993 builtin and then its argument prototype would still apply. */
2994char puts ();
2995int
2996main ()
2997{
2998puts ();
2999 ;
3000 return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3005 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003006 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003011 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003012 { ac_try='test -z "$ac_c_werror_flag"
3013 || test ! -s conftest.err'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003015 (eval $ac_try) 2>&5
3016 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest$ac_exeext'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 (eval $ac_try) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003024 (exit $ac_status); }; }; then
3025 ac_cv_lib_ole32_puts=yes
3026else
3027 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003028sed 's/^/| /' conftest.$ac_ext >&5
3029
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003030ac_cv_lib_ole32_puts=no
3031fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003032rm -f conftest.err conftest.$ac_objext \
3033 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003034LIBS=$ac_check_lib_save_LIBS
3035fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003036echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003037echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
3038if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003039 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003040#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003041_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003042
3043 LIBS="-lole32 $LIBS"
3044
3045fi
3046
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003047
3048echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003049echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
3050if test "${ac_cv_lib_winmm_puts+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052else
3053 ac_check_lib_save_LIBS=$LIBS
3054LIBS="-lwinmm $LIBS"
3055cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003061
3062/* Override any gcc2 internal prototype to avoid an error. */
3063#ifdef __cplusplus
3064extern "C"
3065#endif
3066/* We use char because int might match the return type of a gcc2
3067 builtin and then its argument prototype would still apply. */
3068char puts ();
3069int
3070main ()
3071{
3072puts ();
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003080 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003085 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003086 { ac_try='test -z "$ac_c_werror_flag"
3087 || test ! -s conftest.err'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003089 (eval $ac_try) 2>&5
3090 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest$ac_exeext'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 (eval $ac_try) 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003098 (exit $ac_status); }; }; then
3099 ac_cv_lib_winmm_puts=yes
3100else
3101 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003102sed 's/^/| /' conftest.$ac_ext >&5
3103
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003104ac_cv_lib_winmm_puts=no
3105fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003106rm -f conftest.err conftest.$ac_objext \
3107 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003108LIBS=$ac_check_lib_save_LIBS
3109fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003110echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003111echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
3112if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003113 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003114#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003115_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003116
3117 LIBS="-lwinmm $LIBS"
3118
3119fi
3120
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003121
3122echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003123echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
3124if test "${ac_cv_lib_socket_puts+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127 ac_check_lib_save_LIBS=$LIBS
3128LIBS="-lsocket $LIBS"
3129cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003135
3136/* Override any gcc2 internal prototype to avoid an error. */
3137#ifdef __cplusplus
3138extern "C"
3139#endif
3140/* We use char because int might match the return type of a gcc2
3141 builtin and then its argument prototype would still apply. */
3142char puts ();
3143int
3144main ()
3145{
3146puts ();
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3153 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003154 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003159 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003160 { ac_try='test -z "$ac_c_werror_flag"
3161 || test ! -s conftest.err'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003163 (eval $ac_try) 2>&5
3164 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try='test -s conftest$ac_exeext'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 (eval $ac_try) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003172 (exit $ac_status); }; }; then
3173 ac_cv_lib_socket_puts=yes
3174else
3175 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003176sed 's/^/| /' conftest.$ac_ext >&5
3177
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003178ac_cv_lib_socket_puts=no
3179fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003180rm -f conftest.err conftest.$ac_objext \
3181 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003182LIBS=$ac_check_lib_save_LIBS
3183fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003184echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003185echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
3186if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003187 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003188#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003189_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003190
3191 LIBS="-lsocket $LIBS"
3192
3193fi
3194
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003195
3196echo "$as_me:$LINENO: checking for puts in -lrt" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003197echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
3198if test "${ac_cv_lib_rt_puts+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200else
3201 ac_check_lib_save_LIBS=$LIBS
3202LIBS="-lrt $LIBS"
3203cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003204/* confdefs.h. */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003209
3210/* Override any gcc2 internal prototype to avoid an error. */
3211#ifdef __cplusplus
3212extern "C"
3213#endif
3214/* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3216char puts ();
3217int
3218main ()
3219{
3220puts ();
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3227 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003228 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003233 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003234 { ac_try='test -z "$ac_c_werror_flag"
3235 || test ! -s conftest.err'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003237 (eval $ac_try) 2>&5
3238 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest$ac_exeext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003246 (exit $ac_status); }; }; then
3247 ac_cv_lib_rt_puts=yes
3248else
3249 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003250sed 's/^/| /' conftest.$ac_ext >&5
3251
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003252ac_cv_lib_rt_puts=no
3253fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003254rm -f conftest.err conftest.$ac_objext \
3255 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003256LIBS=$ac_check_lib_save_LIBS
3257fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003258echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003259echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
3260if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003261 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003262#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003263_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003264
3265 LIBS="-lrt $LIBS"
3266
3267fi
3268
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003269
3270echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003271echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
3272if test "${ac_cv_lib_nsl_puts+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275 ac_check_lib_save_LIBS=$LIBS
3276LIBS="-lnsl $LIBS"
3277cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003278/* confdefs.h. */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003283
3284/* Override any gcc2 internal prototype to avoid an error. */
3285#ifdef __cplusplus
3286extern "C"
3287#endif
3288/* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */
3290char puts ();
3291int
3292main ()
3293{
3294puts ();
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3301 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003302 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003307 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003308 { ac_try='test -z "$ac_c_werror_flag"
3309 || test ! -s conftest.err'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003311 (eval $ac_try) 2>&5
3312 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; } &&
3315 { ac_try='test -s conftest$ac_exeext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003320 (exit $ac_status); }; }; then
3321 ac_cv_lib_nsl_puts=yes
3322else
3323 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003324sed 's/^/| /' conftest.$ac_ext >&5
3325
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003326ac_cv_lib_nsl_puts=no
3327fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003328rm -f conftest.err conftest.$ac_objext \
3329 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003330LIBS=$ac_check_lib_save_LIBS
3331fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003332echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003333echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
3334if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003335 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003336#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003337_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003338
3339 LIBS="-lnsl $LIBS"
3340
3341fi
3342
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003343
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003344echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3345echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
3346cat >>confdefs.h <<_ACEOF
3347#define PJ_M_NAME "$target_cpu"
3348_ACEOF
3349
3350
3351echo "$as_me:$LINENO: checking memory alignment" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003352echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
3353case $target in
3354 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003355 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003356#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003357_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003358
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003359 echo "$as_me:$LINENO: result: 8 bytes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003360echo "${ECHO_T}8 bytes" >&6
3361 ;;
3362 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003363 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003364#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003365_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003366
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003367 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003368echo "${ECHO_T}4 bytes (default)" >&6
3369 ;;
3370esac
3371
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003372
3373echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003374echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3375if test "${ac_cv_c_bigendian+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003378 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003379cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003385#include <sys/types.h>
3386#include <sys/param.h>
3387
3388int
3389main ()
3390{
3391#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3392 bogus endian macros
3393#endif
3394
3395 ;
3396 return 0;
3397}
3398_ACEOF
3399rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003402 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003407 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003411 (eval $ac_try) 2>&5
3412 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003420 (exit $ac_status); }; }; then
3421 # It does; now see whether it defined to BIG_ENDIAN or not.
3422cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003423/* confdefs.h. */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003428#include <sys/types.h>
3429#include <sys/param.h>
3430
3431int
3432main ()
3433{
3434#if BYTE_ORDER != BIG_ENDIAN
3435 not big endian
3436#endif
3437
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003445 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003450 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003454 (eval $ac_try) 2>&5
3455 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003463 (exit $ac_status); }; }; then
3464 ac_cv_c_bigendian=yes
3465else
3466 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003467sed 's/^/| /' conftest.$ac_ext >&5
3468
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003469ac_cv_c_bigendian=no
3470fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003472else
3473 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003477if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003478 # try to guess the endianness by grepping values into an object file
3479 ac_cv_c_bigendian=unknown
3480 cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h. */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h. */
3486short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3487short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3488void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3489short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3490short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3491void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3492int
3493main ()
3494{
3495 _ascii (); _ebcdic ();
3496 ;
3497 return 0;
3498}
3499_ACEOF
3500rm -f conftest.$ac_objext
3501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag"
3510 || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3523 ac_cv_c_bigendian=yes
3524fi
3525if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3526 if test "$ac_cv_c_bigendian" = unknown; then
3527 ac_cv_c_bigendian=no
3528 else
3529 # finding both strings is unlikely to happen, but who knows?
3530 ac_cv_c_bigendian=unknown
3531 fi
3532fi
3533else
3534 echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537fi
3538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003539else
3540 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003546int
3547main ()
3548{
3549 /* Are we little or big endian? From Harbison&Steele. */
3550 union
3551 {
3552 long l;
3553 char c[sizeof (long)];
3554 } u;
3555 u.l = 1;
3556 exit (u.c[sizeof (long) - 1] == 1);
3557}
3558_ACEOF
3559rm -f conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003561 (eval $ac_link) 2>&5
3562 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003566 (eval $ac_try) 2>&5
3567 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003569 (exit $ac_status); }; }; then
3570 ac_cv_c_bigendian=no
3571else
3572 echo "$as_me: program exited with status $ac_status" >&5
3573echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003577ac_cv_c_bigendian=yes
3578fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003580fi
3581fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003583fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003584echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003585echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003586case $ac_cv_c_bigendian in
3587 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003588
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003589cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003590#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003591_ACEOF
3592 ;;
3593 no)
3594 ;;
3595 *)
3596 { { echo "$as_me:$LINENO: error: unknown endianness
3597presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3598echo "$as_me: error: unknown endianness
3599presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3600 { (exit 1); exit 1; }; } ;;
3601esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003602
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003603
3604case $target in
3605 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003606 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003607#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003608_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003609
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003610 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003611#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003612_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003613
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003614 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003615#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003616_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003617
3618 ;;
3619 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003620 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003621#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003622_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003623
3624 ;;
3625 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003626 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003627#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003628_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003629
3630 ;;
3631 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003632 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003633#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003634_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003635
3636 ;;
3637 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003638 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003639#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003640_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003641
3642 ;;
3643 *)
3644 ;;
3645esac
3646
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003647
3648
3649
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003650# Check whether --enable-floating-point or --disable-floating-point was given.
3651if test "${enable_floating_point+set}" = set; then
3652 enableval="$enable_floating_point"
3653 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003654 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003655#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003656_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003657
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003658 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003659echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
3660 fi
3661else
3662
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003663 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003664#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003665_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003666
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003667 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003668echo "${ECHO_T}Checking if floating point is disabled... no" >&6
3669
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003670echo "$as_me:$LINENO: checking for fmod in -lm" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003671echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
3672if test "${ac_cv_lib_m_fmod+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 ac_check_lib_save_LIBS=$LIBS
3676LIBS="-lm $LIBS"
3677cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003678/* confdefs.h. */
3679_ACEOF
3680cat confdefs.h >>conftest.$ac_ext
3681cat >>conftest.$ac_ext <<_ACEOF
3682/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003683
3684/* Override any gcc2 internal prototype to avoid an error. */
3685#ifdef __cplusplus
3686extern "C"
3687#endif
3688/* We use char because int might match the return type of a gcc2
3689 builtin and then its argument prototype would still apply. */
3690char fmod ();
3691int
3692main ()
3693{
3694fmod ();
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3701 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003702 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003707 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003708 { ac_try='test -z "$ac_c_werror_flag"
3709 || test ! -s conftest.err'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003711 (eval $ac_try) 2>&5
3712 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; } &&
3715 { ac_try='test -s conftest$ac_exeext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003720 (exit $ac_status); }; }; then
3721 ac_cv_lib_m_fmod=yes
3722else
3723 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003724sed 's/^/| /' conftest.$ac_ext >&5
3725
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003726ac_cv_lib_m_fmod=no
3727fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003728rm -f conftest.err conftest.$ac_objext \
3729 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003730LIBS=$ac_check_lib_save_LIBS
3731fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003732echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003733echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
3734if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003735 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003736#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003737_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003738
3739 LIBS="-lm $LIBS"
3740
3741fi
3742
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003743
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003744fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003745
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003746
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003747ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003752echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003753echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3754# On Suns, sometimes $CPP names a directory.
3755if test -n "$CPP" && test -d "$CPP"; then
3756 CPP=
3757fi
3758if test -z "$CPP"; then
3759 if test "${ac_cv_prog_CPP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762 # Double quotes because CPP needs to be expanded
3763 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3764 do
3765 ac_preproc_ok=false
3766for ac_c_preproc_warn_flag in '' yes
3767do
3768 # Use a header file that comes with gcc, so configuring glibc
3769 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3771 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003772 # On the NeXT, cc -E runs the code through the compiler's parser,
3773 # not just through cpp. "Syntax error" is here to catch this case.
3774 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003775/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003776_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h. */
3780#ifdef __STDC__
3781# include <limits.h>
3782#else
3783# include <assert.h>
3784#endif
3785 Syntax error
3786_ACEOF
3787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3789 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003791 rm -f conftest.er1
3792 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003794 (exit $ac_status); } >/dev/null; then
3795 if test -s conftest.err; then
3796 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003798 else
3799 ac_cpp_err=
3800 fi
3801else
3802 ac_cpp_err=yes
3803fi
3804if test -z "$ac_cpp_err"; then
3805 :
3806else
3807 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003808sed 's/^/| /' conftest.$ac_ext >&5
3809
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003810 # Broken: fails on valid input.
3811continue
3812fi
3813rm -f conftest.err conftest.$ac_ext
3814
3815 # OK, works on sane cases. Now check whether non-existent headers
3816 # can be detected and how.
3817 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003818/* confdefs.h. */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003823#include <ac_nonexistent.h>
3824_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003828 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003829 rm -f conftest.er1
3830 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003832 (exit $ac_status); } >/dev/null; then
3833 if test -s conftest.err; then
3834 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003836 else
3837 ac_cpp_err=
3838 fi
3839else
3840 ac_cpp_err=yes
3841fi
3842if test -z "$ac_cpp_err"; then
3843 # Broken: success on invalid input.
3844continue
3845else
3846 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003847sed 's/^/| /' conftest.$ac_ext >&5
3848
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003849 # Passes both tests.
3850ac_preproc_ok=:
3851break
3852fi
3853rm -f conftest.err conftest.$ac_ext
3854
3855done
3856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857rm -f conftest.err conftest.$ac_ext
3858if $ac_preproc_ok; then
3859 break
3860fi
3861
3862 done
3863 ac_cv_prog_CPP=$CPP
3864
3865fi
3866 CPP=$ac_cv_prog_CPP
3867else
3868 ac_cv_prog_CPP=$CPP
3869fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003870echo "$as_me:$LINENO: result: $CPP" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003871echo "${ECHO_T}$CPP" >&6
3872ac_preproc_ok=false
3873for ac_c_preproc_warn_flag in '' yes
3874do
3875 # Use a header file that comes with gcc, so configuring glibc
3876 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003879 # On the NeXT, cc -E runs the code through the compiler's parser,
3880 # not just through cpp. "Syntax error" is here to catch this case.
3881 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003882/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003883_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h. */
3887#ifdef __STDC__
3888# include <limits.h>
3889#else
3890# include <assert.h>
3891#endif
3892 Syntax error
3893_ACEOF
3894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003897 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003898 rm -f conftest.er1
3899 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003905 else
3906 ac_cpp_err=
3907 fi
3908else
3909 ac_cpp_err=yes
3910fi
3911if test -z "$ac_cpp_err"; then
3912 :
3913else
3914 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003915sed 's/^/| /' conftest.$ac_ext >&5
3916
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003917 # Broken: fails on valid input.
3918continue
3919fi
3920rm -f conftest.err conftest.$ac_ext
3921
3922 # OK, works on sane cases. Now check whether non-existent headers
3923 # can be detected and how.
3924 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003930#include <ac_nonexistent.h>
3931_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3934 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003935 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003936 rm -f conftest.er1
3937 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003939 (exit $ac_status); } >/dev/null; then
3940 if test -s conftest.err; then
3941 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003943 else
3944 ac_cpp_err=
3945 fi
3946else
3947 ac_cpp_err=yes
3948fi
3949if test -z "$ac_cpp_err"; then
3950 # Broken: success on invalid input.
3951continue
3952else
3953 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003954sed 's/^/| /' conftest.$ac_ext >&5
3955
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003956 # Passes both tests.
3957ac_preproc_ok=:
3958break
3959fi
3960rm -f conftest.err conftest.$ac_ext
3961
3962done
3963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964rm -f conftest.err conftest.$ac_ext
3965if $ac_preproc_ok; then
3966 :
3967else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3969See \`config.log' for more details." >&5
3970echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3971See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003972 { (exit 1); exit 1; }; }
3973fi
3974
3975ac_ext=c
3976ac_cpp='$CPP $CPPFLAGS'
3977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003981
3982echo "$as_me:$LINENO: checking for egrep" >&5
3983echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3984if test "${ac_cv_prog_egrep+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3988 then ac_cv_prog_egrep='grep -E'
3989 else ac_cv_prog_egrep='egrep'
3990 fi
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3993echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3994 EGREP=$ac_cv_prog_egrep
3995
3996
3997echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3998echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3999if test "${ac_cv_header_stdc+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
4008#include <stdlib.h>
4009#include <stdarg.h>
4010#include <string.h>
4011#include <float.h>
4012
4013int
4014main ()
4015{
4016
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_cv_header_stdc=yes
4044else
4045 echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048ac_cv_header_stdc=no
4049fi
4050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051
4052if test $ac_cv_header_stdc = yes; then
4053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4054 cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h. */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h. */
4060#include <string.h>
4061
4062_ACEOF
4063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4064 $EGREP "memchr" >/dev/null 2>&1; then
4065 :
4066else
4067 ac_cv_header_stdc=no
4068fi
4069rm -f conftest*
4070
4071fi
4072
4073if test $ac_cv_header_stdc = yes; then
4074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081#include <stdlib.h>
4082
4083_ACEOF
4084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085 $EGREP "free" >/dev/null 2>&1; then
4086 :
4087else
4088 ac_cv_header_stdc=no
4089fi
4090rm -f conftest*
4091
4092fi
4093
4094if test $ac_cv_header_stdc = yes; then
4095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4096 if test "$cross_compiling" = yes; then
4097 :
4098else
4099 cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h. */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h. */
4105#include <ctype.h>
4106#if ((' ' & 0x0FF) == 0x020)
4107# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4108# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4109#else
4110# define ISLOWER(c) \
4111 (('a' <= (c) && (c) <= 'i') \
4112 || ('j' <= (c) && (c) <= 'r') \
4113 || ('s' <= (c) && (c) <= 'z'))
4114# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4115#endif
4116
4117#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4118int
4119main ()
4120{
4121 int i;
4122 for (i = 0; i < 256; i++)
4123 if (XOR (islower (i), ISLOWER (i))
4124 || toupper (i) != TOUPPER (i))
4125 exit(2);
4126 exit (0);
4127}
4128_ACEOF
4129rm -f conftest$ac_exeext
4130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4131 (eval $ac_link) 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 :
4141else
4142 echo "$as_me: program exited with status $ac_status" >&5
4143echo "$as_me: failed program was:" >&5
4144sed 's/^/| /' conftest.$ac_ext >&5
4145
4146( exit $ac_status )
4147ac_cv_header_stdc=no
4148fi
4149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4150fi
4151fi
4152fi
4153echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4154echo "${ECHO_T}$ac_cv_header_stdc" >&6
4155if test $ac_cv_header_stdc = yes; then
4156
4157cat >>confdefs.h <<\_ACEOF
4158#define STDC_HEADERS 1
4159_ACEOF
4160
4161fi
4162
4163# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4174 inttypes.h stdint.h unistd.h
4175do
4176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4177echo "$as_me:$LINENO: checking for $ac_header" >&5
4178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4179if eval "test \"\${$as_ac_Header+set}\" = set"; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
4188$ac_includes_default
4189
4190#include <$ac_header>
4191_ACEOF
4192rm -f conftest.$ac_objext
4193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 eval "$as_ac_Header=yes"
4215else
4216 echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219eval "$as_ac_Header=no"
4220fi
4221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4222fi
4223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4225if test `eval echo '${'$as_ac_Header'}'` = yes; then
4226 cat >>confdefs.h <<_ACEOF
4227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4228_ACEOF
4229
4230fi
4231
4232done
4233
4234
4235if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4236 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4237echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4238if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240fi
4241echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4242echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4243else
4244 # Is the header compilable?
4245echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4246echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
4247cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
4253$ac_includes_default
4254#include <arpa/inet.h>
4255_ACEOF
4256rm -f conftest.$ac_objext
4257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag"
4266 || test ! -s conftest.err'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 ac_header_compiler=yes
4279else
4280 echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283ac_header_compiler=no
4284fi
4285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4286echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4287echo "${ECHO_T}$ac_header_compiler" >&6
4288
4289# Is the header present?
4290echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4291echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
4292cat >conftest.$ac_ext <<_ACEOF
4293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h. */
4298#include <arpa/inet.h>
4299_ACEOF
4300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null; then
4308 if test -s conftest.err; then
4309 ac_cpp_err=$ac_c_preproc_warn_flag
4310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4311 else
4312 ac_cpp_err=
4313 fi
4314else
4315 ac_cpp_err=yes
4316fi
4317if test -z "$ac_cpp_err"; then
4318 ac_header_preproc=yes
4319else
4320 echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 ac_header_preproc=no
4324fi
4325rm -f conftest.err conftest.$ac_ext
4326echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4327echo "${ECHO_T}$ac_header_preproc" >&6
4328
4329# So? What about this header?
4330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4331 yes:no: )
4332 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4333echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4334 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4335echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4336 ac_header_preproc=yes
4337 ;;
4338 no:yes:* )
4339 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4340echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4341 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4342echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4343 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4344echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4345 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4346echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4347 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4348echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4350echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
4351 (
4352 cat <<\_ASBOX
4353## ------------------------------------ ##
4354## Report this to the pjproject lists. ##
4355## ------------------------------------ ##
4356_ASBOX
4357 ) |
4358 sed "s/^/$as_me: WARNING: /" >&2
4359 ;;
4360esac
4361echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004362echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4363if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004365else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004366 ac_cv_header_arpa_inet_h=$ac_header_preproc
4367fi
4368echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4369echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4370
4371fi
4372if test $ac_cv_header_arpa_inet_h = yes; then
4373 cat >>confdefs.h <<\_ACEOF
4374#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004375_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004376
4377fi
4378
4379
4380if test "${ac_cv_header_assert_h+set}" = set; then
4381 echo "$as_me:$LINENO: checking for assert.h" >&5
4382echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4383if test "${ac_cv_header_assert_h+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4387echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4388else
4389 # Is the header compilable?
4390echo "$as_me:$LINENO: checking assert.h usability" >&5
4391echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
4392cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h. */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h. */
4398$ac_includes_default
4399#include <assert.h>
4400_ACEOF
4401rm -f conftest.$ac_objext
4402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004404 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004405 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004406 rm -f conftest.er1
4407 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } &&
4410 { ac_try='test -z "$ac_c_werror_flag"
4411 || test ! -s conftest.err'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_header_compiler=yes
4424else
4425 echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428ac_header_compiler=no
4429fi
4430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4432echo "${ECHO_T}$ac_header_compiler" >&6
4433
4434# Is the header present?
4435echo "$as_me:$LINENO: checking assert.h presence" >&5
4436echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
4437cat >conftest.$ac_ext <<_ACEOF
4438/* confdefs.h. */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h. */
4443#include <assert.h>
4444_ACEOF
4445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004452 (exit $ac_status); } >/dev/null; then
4453 if test -s conftest.err; then
4454 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004456 else
4457 ac_cpp_err=
4458 fi
4459else
4460 ac_cpp_err=yes
4461fi
4462if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004463 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004464else
4465 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004469fi
4470rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4472echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004473
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004474# So? What about this header?
4475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4476 yes:no: )
4477 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4478echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4480echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4481 ac_header_preproc=yes
4482 ;;
4483 no:yes:* )
4484 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4485echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4487echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4489echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4491echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4493echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4495echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
4496 (
4497 cat <<\_ASBOX
4498## ------------------------------------ ##
4499## Report this to the pjproject lists. ##
4500## ------------------------------------ ##
4501_ASBOX
4502 ) |
4503 sed "s/^/$as_me: WARNING: /" >&2
4504 ;;
4505esac
4506echo "$as_me:$LINENO: checking for assert.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004507echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4508if test "${ac_cv_header_assert_h+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004510else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004511 ac_cv_header_assert_h=$ac_header_preproc
4512fi
4513echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4514echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4515
4516fi
4517if test $ac_cv_header_assert_h = yes; then
4518 cat >>confdefs.h <<\_ACEOF
4519#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004520_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004521
4522fi
4523
4524
4525if test "${ac_cv_header_ctype_h+set}" = set; then
4526 echo "$as_me:$LINENO: checking for ctype.h" >&5
4527echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4528if test "${ac_cv_header_ctype_h+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530fi
4531echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4532echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4533else
4534 # Is the header compilable?
4535echo "$as_me:$LINENO: checking ctype.h usability" >&5
4536echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
4537cat >conftest.$ac_ext <<_ACEOF
4538/* confdefs.h. */
4539_ACEOF
4540cat confdefs.h >>conftest.$ac_ext
4541cat >>conftest.$ac_ext <<_ACEOF
4542/* end confdefs.h. */
4543$ac_includes_default
4544#include <ctype.h>
4545_ACEOF
4546rm -f conftest.$ac_objext
4547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004549 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004550 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004551 rm -f conftest.er1
4552 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -z "$ac_c_werror_flag"
4556 || test ! -s conftest.err'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 (eval $ac_try) 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; } &&
4562 { ac_try='test -s conftest.$ac_objext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 (eval $ac_try) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_header_compiler=yes
4569else
4570 echo "$as_me: failed program was:" >&5
4571sed 's/^/| /' conftest.$ac_ext >&5
4572
4573ac_header_compiler=no
4574fi
4575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4577echo "${ECHO_T}$ac_header_compiler" >&6
4578
4579# Is the header present?
4580echo "$as_me:$LINENO: checking ctype.h presence" >&5
4581echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
4582cat >conftest.$ac_ext <<_ACEOF
4583/* confdefs.h. */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h. */
4588#include <ctype.h>
4589_ACEOF
4590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4592 ac_status=$?
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004597 (exit $ac_status); } >/dev/null; then
4598 if test -s conftest.err; then
4599 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004601 else
4602 ac_cpp_err=
4603 fi
4604else
4605 ac_cpp_err=yes
4606fi
4607if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004608 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004609else
4610 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004614fi
4615rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4617echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004618
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004619# So? What about this header?
4620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4621 yes:no: )
4622 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4623echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4625echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4626 ac_header_preproc=yes
4627 ;;
4628 no:yes:* )
4629 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4630echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4631 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4632echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4633 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4634echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4635 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4636echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4637 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4638echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4639 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4640echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
4641 (
4642 cat <<\_ASBOX
4643## ------------------------------------ ##
4644## Report this to the pjproject lists. ##
4645## ------------------------------------ ##
4646_ASBOX
4647 ) |
4648 sed "s/^/$as_me: WARNING: /" >&2
4649 ;;
4650esac
4651echo "$as_me:$LINENO: checking for ctype.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004652echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4653if test "${ac_cv_header_ctype_h+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004655else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004656 ac_cv_header_ctype_h=$ac_header_preproc
4657fi
4658echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4659echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4660
4661fi
4662if test $ac_cv_header_ctype_h = yes; then
4663 cat >>confdefs.h <<\_ACEOF
4664#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004665_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004666
4667fi
4668
4669
4670
4671case $target in
4672 *mingw* | *cygw* | *win32* | *w32* )
4673 cat >>confdefs.h <<\_ACEOF
4674#define PJ_HAS_ERRNO_H 0
4675_ACEOF
4676
4677 ;;
4678 *)
4679 if test "${ac_cv_header_errno_h+set}" = set; then
4680 echo "$as_me:$LINENO: checking for errno.h" >&5
4681echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4682if test "${ac_cv_header_errno_h+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684fi
4685echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4686echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4687else
4688 # Is the header compilable?
4689echo "$as_me:$LINENO: checking errno.h usability" >&5
4690echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4691cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h. */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h. */
4697$ac_includes_default
4698#include <errno.h>
4699_ACEOF
4700rm -f conftest.$ac_objext
4701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004703 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004704 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004705 rm -f conftest.er1
4706 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 ac_header_compiler=yes
4723else
4724 echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727ac_header_compiler=no
4728fi
4729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731echo "${ECHO_T}$ac_header_compiler" >&6
4732
4733# Is the header present?
4734echo "$as_me:$LINENO: checking errno.h presence" >&5
4735echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4736cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
4742#include <errno.h>
4743_ACEOF
4744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004751 (exit $ac_status); } >/dev/null; then
4752 if test -s conftest.err; then
4753 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004755 else
4756 ac_cpp_err=
4757 fi
4758else
4759 ac_cpp_err=yes
4760fi
4761if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004762 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004763else
4764 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004765sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004768fi
4769rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4771echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004772
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004773# So? What about this header?
4774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4775 yes:no: )
4776 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4777echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4779echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4780 ac_header_preproc=yes
4781 ;;
4782 no:yes:* )
4783 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4784echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4786echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4788echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4789 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4790echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4791 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4792echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4794echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4795 (
4796 cat <<\_ASBOX
4797## ------------------------------------ ##
4798## Report this to the pjproject lists. ##
4799## ------------------------------------ ##
4800_ASBOX
4801 ) |
4802 sed "s/^/$as_me: WARNING: /" >&2
4803 ;;
4804esac
4805echo "$as_me:$LINENO: checking for errno.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004806echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4807if test "${ac_cv_header_errno_h+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004809else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004810 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004811fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004812echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004813echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004814
4815fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004816if test $ac_cv_header_errno_h = yes; then
4817 cat >>confdefs.h <<\_ACEOF
4818#define PJ_HAS_ERRNO_H 1
4819_ACEOF
4820
4821fi
4822
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004823
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004824 ;;
4825esac
4826
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004827if test "${ac_cv_header_linux_socket_h+set}" = set; then
4828 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4829echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4830if test "${ac_cv_header_linux_socket_h+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832fi
4833echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4834echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4835else
4836 # Is the header compilable?
4837echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
4838echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
4839cat >conftest.$ac_ext <<_ACEOF
4840/* confdefs.h. */
4841_ACEOF
4842cat confdefs.h >>conftest.$ac_ext
4843cat >>conftest.$ac_ext <<_ACEOF
4844/* end confdefs.h. */
4845$ac_includes_default
4846#include <linux/socket.h>
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_header_compiler=yes
4871else
4872 echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875ac_header_compiler=no
4876fi
4877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4879echo "${ECHO_T}$ac_header_compiler" >&6
4880
4881# Is the header present?
4882echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
4883echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
4884cat >conftest.$ac_ext <<_ACEOF
4885/* confdefs.h. */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h. */
4890#include <linux/socket.h>
4891_ACEOF
4892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null; then
4900 if test -s conftest.err; then
4901 ac_cpp_err=$ac_c_preproc_warn_flag
4902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4903 else
4904 ac_cpp_err=
4905 fi
4906else
4907 ac_cpp_err=yes
4908fi
4909if test -z "$ac_cpp_err"; then
4910 ac_header_preproc=yes
4911else
4912 echo "$as_me: failed program was:" >&5
4913sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 ac_header_preproc=no
4916fi
4917rm -f conftest.err conftest.$ac_ext
4918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4919echo "${ECHO_T}$ac_header_preproc" >&6
4920
4921# So? What about this header?
4922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4923 yes:no: )
4924 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
4925echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
4927echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
4928 ac_header_preproc=yes
4929 ;;
4930 no:yes:* )
4931 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
4932echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
4934echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
4936echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
4937 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
4938echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
4940echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
4942echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
4943 (
4944 cat <<\_ASBOX
4945## ------------------------------------ ##
4946## Report this to the pjproject lists. ##
4947## ------------------------------------ ##
4948_ASBOX
4949 ) |
4950 sed "s/^/$as_me: WARNING: /" >&2
4951 ;;
4952esac
4953echo "$as_me:$LINENO: checking for linux/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004954echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4955if test "${ac_cv_header_linux_socket_h+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004957else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004958 ac_cv_header_linux_socket_h=$ac_header_preproc
4959fi
4960echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4961echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4962
4963fi
4964if test $ac_cv_header_linux_socket_h = yes; then
4965 cat >>confdefs.h <<\_ACEOF
4966#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004967_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004968
4969fi
4970
4971
4972if test "${ac_cv_header_malloc_h+set}" = set; then
4973 echo "$as_me:$LINENO: checking for malloc.h" >&5
4974echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
4975if test "${ac_cv_header_malloc_h+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977fi
4978echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
4979echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
4980else
4981 # Is the header compilable?
4982echo "$as_me:$LINENO: checking malloc.h usability" >&5
4983echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
4984cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h. */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h. */
4990$ac_includes_default
4991#include <malloc.h>
4992_ACEOF
4993rm -f conftest.$ac_objext
4994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004996 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004997 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004998 rm -f conftest.er1
4999 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_header_compiler=yes
5016else
5017 echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020ac_header_compiler=no
5021fi
5022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5024echo "${ECHO_T}$ac_header_compiler" >&6
5025
5026# Is the header present?
5027echo "$as_me:$LINENO: checking malloc.h presence" >&5
5028echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
5029cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
5035#include <malloc.h>
5036_ACEOF
5037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005044 (exit $ac_status); } >/dev/null; then
5045 if test -s conftest.err; then
5046 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005048 else
5049 ac_cpp_err=
5050 fi
5051else
5052 ac_cpp_err=yes
5053fi
5054if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005055 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005056else
5057 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005061fi
5062rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5064echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005065
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005066# So? What about this header?
5067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5068 yes:no: )
5069 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5070echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5072echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5073 ac_header_preproc=yes
5074 ;;
5075 no:yes:* )
5076 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5077echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5078 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5079echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5080 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5081echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5083echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5084 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5085echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5086 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5087echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5088 (
5089 cat <<\_ASBOX
5090## ------------------------------------ ##
5091## Report this to the pjproject lists. ##
5092## ------------------------------------ ##
5093_ASBOX
5094 ) |
5095 sed "s/^/$as_me: WARNING: /" >&2
5096 ;;
5097esac
5098echo "$as_me:$LINENO: checking for malloc.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005099echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5100if test "${ac_cv_header_malloc_h+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005102else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005103 ac_cv_header_malloc_h=$ac_header_preproc
5104fi
5105echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5106echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5107
5108fi
5109if test $ac_cv_header_malloc_h = yes; then
5110 cat >>confdefs.h <<\_ACEOF
5111#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005112_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005113
5114fi
5115
5116
5117if test "${ac_cv_header_netdb_h+set}" = set; then
5118 echo "$as_me:$LINENO: checking for netdb.h" >&5
5119echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5120if test "${ac_cv_header_netdb_h+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122fi
5123echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5124echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5125else
5126 # Is the header compilable?
5127echo "$as_me:$LINENO: checking netdb.h usability" >&5
5128echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
5129cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h. */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h. */
5135$ac_includes_default
5136#include <netdb.h>
5137_ACEOF
5138rm -f conftest.$ac_objext
5139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005141 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005142 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005143 rm -f conftest.er1
5144 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -z "$ac_c_werror_flag"
5148 || test ! -s conftest.err'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_header_compiler=yes
5161else
5162 echo "$as_me: failed program was:" >&5
5163sed 's/^/| /' conftest.$ac_ext >&5
5164
5165ac_header_compiler=no
5166fi
5167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5169echo "${ECHO_T}$ac_header_compiler" >&6
5170
5171# Is the header present?
5172echo "$as_me:$LINENO: checking netdb.h presence" >&5
5173echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
5174cat >conftest.$ac_ext <<_ACEOF
5175/* confdefs.h. */
5176_ACEOF
5177cat confdefs.h >>conftest.$ac_ext
5178cat >>conftest.$ac_ext <<_ACEOF
5179/* end confdefs.h. */
5180#include <netdb.h>
5181_ACEOF
5182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005189 (exit $ac_status); } >/dev/null; then
5190 if test -s conftest.err; then
5191 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005193 else
5194 ac_cpp_err=
5195 fi
5196else
5197 ac_cpp_err=yes
5198fi
5199if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005200 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005201else
5202 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005206fi
5207rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5209echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005210
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005211# So? What about this header?
5212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5213 yes:no: )
5214 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5215echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5216 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5217echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5218 ac_header_preproc=yes
5219 ;;
5220 no:yes:* )
5221 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5222echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5224echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5226echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5228echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5229 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5230echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5232echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
5233 (
5234 cat <<\_ASBOX
5235## ------------------------------------ ##
5236## Report this to the pjproject lists. ##
5237## ------------------------------------ ##
5238_ASBOX
5239 ) |
5240 sed "s/^/$as_me: WARNING: /" >&2
5241 ;;
5242esac
5243echo "$as_me:$LINENO: checking for netdb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005244echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5245if test "${ac_cv_header_netdb_h+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005247else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005248 ac_cv_header_netdb_h=$ac_header_preproc
5249fi
5250echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5251echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5252
5253fi
5254if test $ac_cv_header_netdb_h = yes; then
5255 cat >>confdefs.h <<\_ACEOF
5256#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005257_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005258
5259fi
5260
5261
5262if test "${ac_cv_header_netinet_in_h+set}" = set; then
5263 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5264echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5265if test "${ac_cv_header_netinet_in_h+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267fi
5268echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5269echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5270else
5271 # Is the header compilable?
5272echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5273echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5274cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h. */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */
5280$ac_includes_default
5281#include <netinet/in.h>
5282_ACEOF
5283rm -f conftest.$ac_objext
5284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005286 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005287 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005288 rm -f conftest.er1
5289 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -z "$ac_c_werror_flag"
5293 || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_header_compiler=yes
5306else
5307 echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310ac_header_compiler=no
5311fi
5312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5314echo "${ECHO_T}$ac_header_compiler" >&6
5315
5316# Is the header present?
5317echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5318echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5319cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325#include <netinet/in.h>
5326_ACEOF
5327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005338 else
5339 ac_cpp_err=
5340 fi
5341else
5342 ac_cpp_err=yes
5343fi
5344if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005345 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005346else
5347 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005351fi
5352rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5354echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005355
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005356# So? What about this header?
5357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5358 yes:no: )
5359 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5360echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5361 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5362echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5363 ac_header_preproc=yes
5364 ;;
5365 no:yes:* )
5366 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5367echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5369echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5371echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5373echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5374 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5375echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5377echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5378 (
5379 cat <<\_ASBOX
5380## ------------------------------------ ##
5381## Report this to the pjproject lists. ##
5382## ------------------------------------ ##
5383_ASBOX
5384 ) |
5385 sed "s/^/$as_me: WARNING: /" >&2
5386 ;;
5387esac
5388echo "$as_me:$LINENO: checking for netinet/in.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005389echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5390if test "${ac_cv_header_netinet_in_h+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005392else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005393 ac_cv_header_netinet_in_h=$ac_header_preproc
5394fi
5395echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5396echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5397
5398fi
5399if test $ac_cv_header_netinet_in_h = yes; then
5400 cat >>confdefs.h <<\_ACEOF
5401#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005402_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005403
5404fi
5405
5406
Benny Prijonof63a2552007-02-01 00:36:52 +00005407if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5408 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5409echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5410if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412fi
5413echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5414echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5415else
5416 # Is the header compilable?
5417echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5418echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
5419cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425$ac_includes_default
5426#include <netinet/ip.h>
5427_ACEOF
5428rm -f conftest.$ac_objext
5429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_header_compiler=yes
5451else
5452 echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455ac_header_compiler=no
5456fi
5457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5459echo "${ECHO_T}$ac_header_compiler" >&6
5460
5461# Is the header present?
5462echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5463echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
5464cat >conftest.$ac_ext <<_ACEOF
5465/* confdefs.h. */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h. */
5470#include <netinet/ip.h>
5471_ACEOF
5472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } >/dev/null; then
5480 if test -s conftest.err; then
5481 ac_cpp_err=$ac_c_preproc_warn_flag
5482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5483 else
5484 ac_cpp_err=
5485 fi
5486else
5487 ac_cpp_err=yes
5488fi
5489if test -z "$ac_cpp_err"; then
5490 ac_header_preproc=yes
5491else
5492 echo "$as_me: failed program was:" >&5
5493sed 's/^/| /' conftest.$ac_ext >&5
5494
5495 ac_header_preproc=no
5496fi
5497rm -f conftest.err conftest.$ac_ext
5498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5499echo "${ECHO_T}$ac_header_preproc" >&6
5500
5501# So? What about this header?
5502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5503 yes:no: )
5504 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5505echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5507echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5508 ac_header_preproc=yes
5509 ;;
5510 no:yes:* )
5511 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5512echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5514echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5516echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5518echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5520echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5522echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
5523 (
5524 cat <<\_ASBOX
5525## ------------------------------------ ##
5526## Report this to the pjproject lists. ##
5527## ------------------------------------ ##
5528_ASBOX
5529 ) |
5530 sed "s/^/$as_me: WARNING: /" >&2
5531 ;;
5532esac
5533echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5534echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5535if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538 ac_cv_header_netinet_ip_h=$ac_header_preproc
5539fi
5540echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5541echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5542
5543fi
5544if test $ac_cv_header_netinet_ip_h = yes; then
5545 cat >>confdefs.h <<\_ACEOF
5546#define PJ_HAS_NETINET_IP_H 1
5547_ACEOF
5548
5549fi
5550
5551
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005552if test "${ac_cv_header_setjmp_h+set}" = set; then
5553 echo "$as_me:$LINENO: checking for setjmp.h" >&5
5554echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5555if test "${ac_cv_header_setjmp_h+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557fi
5558echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5559echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5560else
5561 # Is the header compilable?
5562echo "$as_me:$LINENO: checking setjmp.h usability" >&5
5563echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
5564cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h. */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h. */
5570$ac_includes_default
5571#include <setjmp.h>
5572_ACEOF
5573rm -f conftest.$ac_objext
5574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005576 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005577 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005578 rm -f conftest.er1
5579 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -z "$ac_c_werror_flag"
5583 || test ! -s conftest.err'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_header_compiler=yes
5596else
5597 echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
5600ac_header_compiler=no
5601fi
5602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5604echo "${ECHO_T}$ac_header_compiler" >&6
5605
5606# Is the header present?
5607echo "$as_me:$LINENO: checking setjmp.h presence" >&5
5608echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
5609cat >conftest.$ac_ext <<_ACEOF
5610/* confdefs.h. */
5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
5614/* end confdefs.h. */
5615#include <setjmp.h>
5616_ACEOF
5617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005624 (exit $ac_status); } >/dev/null; then
5625 if test -s conftest.err; then
5626 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005628 else
5629 ac_cpp_err=
5630 fi
5631else
5632 ac_cpp_err=yes
5633fi
5634if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005635 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005636else
5637 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005641fi
5642rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5644echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005645
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005646# So? What about this header?
5647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5648 yes:no: )
5649 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5650echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
5652echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
5653 ac_header_preproc=yes
5654 ;;
5655 no:yes:* )
5656 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
5657echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
5659echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
5661echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
5663echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
5665echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
5667echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
5668 (
5669 cat <<\_ASBOX
5670## ------------------------------------ ##
5671## Report this to the pjproject lists. ##
5672## ------------------------------------ ##
5673_ASBOX
5674 ) |
5675 sed "s/^/$as_me: WARNING: /" >&2
5676 ;;
5677esac
5678echo "$as_me:$LINENO: checking for setjmp.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005679echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5680if test "${ac_cv_header_setjmp_h+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005682else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005683 ac_cv_header_setjmp_h=$ac_header_preproc
5684fi
5685echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5686echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5687
5688fi
5689if test $ac_cv_header_setjmp_h = yes; then
5690 cat >>confdefs.h <<\_ACEOF
5691#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005692_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005693
5694fi
5695
5696
5697if test "${ac_cv_header_stdarg_h+set}" = set; then
5698 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5699echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5700if test "${ac_cv_header_stdarg_h+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702fi
5703echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5704echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5705else
5706 # Is the header compilable?
5707echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5708echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
5709cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
5715$ac_includes_default
5716#include <stdarg.h>
5717_ACEOF
5718rm -f conftest.$ac_objext
5719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005721 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005722 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005723 rm -f conftest.er1
5724 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -z "$ac_c_werror_flag"
5728 || test ! -s conftest.err'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; } &&
5734 { ac_try='test -s conftest.$ac_objext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 ac_header_compiler=yes
5741else
5742 echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745ac_header_compiler=no
5746fi
5747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5749echo "${ECHO_T}$ac_header_compiler" >&6
5750
5751# Is the header present?
5752echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5753echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5754cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h. */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h. */
5760#include <stdarg.h>
5761_ACEOF
5762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005769 (exit $ac_status); } >/dev/null; then
5770 if test -s conftest.err; then
5771 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005773 else
5774 ac_cpp_err=
5775 fi
5776else
5777 ac_cpp_err=yes
5778fi
5779if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005780 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005781else
5782 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005783sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005786fi
5787rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5789echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005790
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005791# So? What about this header?
5792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5793 yes:no: )
5794 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5795echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5796 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5797echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5798 ac_header_preproc=yes
5799 ;;
5800 no:yes:* )
5801 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5802echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5804echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5805 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5806echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5807 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5808echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5809 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5810echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5811 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5812echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5813 (
5814 cat <<\_ASBOX
5815## ------------------------------------ ##
5816## Report this to the pjproject lists. ##
5817## ------------------------------------ ##
5818_ASBOX
5819 ) |
5820 sed "s/^/$as_me: WARNING: /" >&2
5821 ;;
5822esac
5823echo "$as_me:$LINENO: checking for stdarg.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005824echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5825if test "${ac_cv_header_stdarg_h+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005827else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005828 ac_cv_header_stdarg_h=$ac_header_preproc
5829fi
5830echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5831echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5832
5833fi
5834if test $ac_cv_header_stdarg_h = yes; then
5835 cat >>confdefs.h <<\_ACEOF
5836#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005837_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005838
5839fi
5840
5841
5842if test "${ac_cv_header_stddef_h+set}" = set; then
5843 echo "$as_me:$LINENO: checking for stddef.h" >&5
5844echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5845if test "${ac_cv_header_stddef_h+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847fi
5848echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5849echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5850else
5851 # Is the header compilable?
5852echo "$as_me:$LINENO: checking stddef.h usability" >&5
5853echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
5854cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h. */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h. */
5860$ac_includes_default
5861#include <stddef.h>
5862_ACEOF
5863rm -f conftest.$ac_objext
5864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005866 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005867 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005868 rm -f conftest.er1
5869 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_header_compiler=yes
5886else
5887 echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
5889
5890ac_header_compiler=no
5891fi
5892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5894echo "${ECHO_T}$ac_header_compiler" >&6
5895
5896# Is the header present?
5897echo "$as_me:$LINENO: checking stddef.h presence" >&5
5898echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
5899cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h. */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h. */
5905#include <stddef.h>
5906_ACEOF
5907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005914 (exit $ac_status); } >/dev/null; then
5915 if test -s conftest.err; then
5916 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005918 else
5919 ac_cpp_err=
5920 fi
5921else
5922 ac_cpp_err=yes
5923fi
5924if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005925 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005926else
5927 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005931fi
5932rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5934echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005935
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005936# So? What about this header?
5937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5938 yes:no: )
5939 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
5940echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5941 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
5942echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
5943 ac_header_preproc=yes
5944 ;;
5945 no:yes:* )
5946 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
5947echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
5949echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
5950 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
5951echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
5952 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
5953echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
5954 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
5955echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
5957echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
5958 (
5959 cat <<\_ASBOX
5960## ------------------------------------ ##
5961## Report this to the pjproject lists. ##
5962## ------------------------------------ ##
5963_ASBOX
5964 ) |
5965 sed "s/^/$as_me: WARNING: /" >&2
5966 ;;
5967esac
5968echo "$as_me:$LINENO: checking for stddef.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005969echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5970if test "${ac_cv_header_stddef_h+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005972else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005973 ac_cv_header_stddef_h=$ac_header_preproc
5974fi
5975echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5976echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5977
5978fi
5979if test $ac_cv_header_stddef_h = yes; then
5980 cat >>confdefs.h <<\_ACEOF
5981#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005982_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005983
5984fi
5985
5986
5987if test "${ac_cv_header_stdio_h+set}" = set; then
5988 echo "$as_me:$LINENO: checking for stdio.h" >&5
5989echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
5990if test "${ac_cv_header_stdio_h+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992fi
5993echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
5994echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
5995else
5996 # Is the header compilable?
5997echo "$as_me:$LINENO: checking stdio.h usability" >&5
5998echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
5999cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h. */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h. */
6005$ac_includes_default
6006#include <stdio.h>
6007_ACEOF
6008rm -f conftest.$ac_objext
6009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6010 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006011 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006012 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006013 rm -f conftest.er1
6014 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -z "$ac_c_werror_flag"
6018 || test ! -s conftest.err'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; } &&
6024 { ac_try='test -s conftest.$ac_objext'
6025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 (eval $ac_try) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; }; then
6030 ac_header_compiler=yes
6031else
6032 echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
6035ac_header_compiler=no
6036fi
6037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6039echo "${ECHO_T}$ac_header_compiler" >&6
6040
6041# Is the header present?
6042echo "$as_me:$LINENO: checking stdio.h presence" >&5
6043echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
6044cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h. */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
6049/* end confdefs.h. */
6050#include <stdio.h>
6051_ACEOF
6052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006059 (exit $ac_status); } >/dev/null; then
6060 if test -s conftest.err; then
6061 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006063 else
6064 ac_cpp_err=
6065 fi
6066else
6067 ac_cpp_err=yes
6068fi
6069if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006070 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006071else
6072 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006076fi
6077rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6079echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006080
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006081# So? What about this header?
6082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6083 yes:no: )
6084 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6085echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6086 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6087echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6088 ac_header_preproc=yes
6089 ;;
6090 no:yes:* )
6091 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6092echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6094echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6095 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6096echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6098echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6100echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6102echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
6103 (
6104 cat <<\_ASBOX
6105## ------------------------------------ ##
6106## Report this to the pjproject lists. ##
6107## ------------------------------------ ##
6108_ASBOX
6109 ) |
6110 sed "s/^/$as_me: WARNING: /" >&2
6111 ;;
6112esac
6113echo "$as_me:$LINENO: checking for stdio.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006114echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6115if test "${ac_cv_header_stdio_h+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006117else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006118 ac_cv_header_stdio_h=$ac_header_preproc
6119fi
6120echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6121echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6122
6123fi
6124if test $ac_cv_header_stdio_h = yes; then
6125 cat >>confdefs.h <<\_ACEOF
6126#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006127_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006128
6129fi
6130
6131
6132if test "${ac_cv_header_stdlib_h+set}" = set; then
6133 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6134echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6135if test "${ac_cv_header_stdlib_h+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137fi
6138echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6139echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6140else
6141 # Is the header compilable?
6142echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6143echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
6144cat >conftest.$ac_ext <<_ACEOF
6145/* confdefs.h. */
6146_ACEOF
6147cat confdefs.h >>conftest.$ac_ext
6148cat >>conftest.$ac_ext <<_ACEOF
6149/* end confdefs.h. */
6150$ac_includes_default
6151#include <stdlib.h>
6152_ACEOF
6153rm -f conftest.$ac_objext
6154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6155 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006156 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006157 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006158 rm -f conftest.er1
6159 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -z "$ac_c_werror_flag"
6163 || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_header_compiler=yes
6176else
6177 echo "$as_me: failed program was:" >&5
6178sed 's/^/| /' conftest.$ac_ext >&5
6179
6180ac_header_compiler=no
6181fi
6182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6184echo "${ECHO_T}$ac_header_compiler" >&6
6185
6186# Is the header present?
6187echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6188echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
6189cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195#include <stdlib.h>
6196_ACEOF
6197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006204 (exit $ac_status); } >/dev/null; then
6205 if test -s conftest.err; then
6206 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006208 else
6209 ac_cpp_err=
6210 fi
6211else
6212 ac_cpp_err=yes
6213fi
6214if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006215 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006216else
6217 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006218sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006221fi
6222rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6224echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006225
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006226# So? What about this header?
6227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6228 yes:no: )
6229 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6230echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6232echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6233 ac_header_preproc=yes
6234 ;;
6235 no:yes:* )
6236 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6237echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6239echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6241echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6243echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6245echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6246 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6247echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
6248 (
6249 cat <<\_ASBOX
6250## ------------------------------------ ##
6251## Report this to the pjproject lists. ##
6252## ------------------------------------ ##
6253_ASBOX
6254 ) |
6255 sed "s/^/$as_me: WARNING: /" >&2
6256 ;;
6257esac
6258echo "$as_me:$LINENO: checking for stdlib.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006259echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6260if test "${ac_cv_header_stdlib_h+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006262else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006263 ac_cv_header_stdlib_h=$ac_header_preproc
6264fi
6265echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6266echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6267
6268fi
6269if test $ac_cv_header_stdlib_h = yes; then
6270 cat >>confdefs.h <<\_ACEOF
6271#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006272_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006273
6274fi
6275
6276
6277if test "${ac_cv_header_string_h+set}" = set; then
6278 echo "$as_me:$LINENO: checking for string.h" >&5
6279echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6280if test "${ac_cv_header_string_h+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282fi
6283echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6284echo "${ECHO_T}$ac_cv_header_string_h" >&6
6285else
6286 # Is the header compilable?
6287echo "$as_me:$LINENO: checking string.h usability" >&5
6288echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
6289cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h. */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h. */
6295$ac_includes_default
6296#include <string.h>
6297_ACEOF
6298rm -f conftest.$ac_objext
6299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006301 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006302 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006303 rm -f conftest.er1
6304 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_c_werror_flag"
6308 || test ! -s conftest.err'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_header_compiler=yes
6321else
6322 echo "$as_me: failed program was:" >&5
6323sed 's/^/| /' conftest.$ac_ext >&5
6324
6325ac_header_compiler=no
6326fi
6327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6329echo "${ECHO_T}$ac_header_compiler" >&6
6330
6331# Is the header present?
6332echo "$as_me:$LINENO: checking string.h presence" >&5
6333echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
6334cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h. */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h. */
6340#include <string.h>
6341_ACEOF
6342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006349 (exit $ac_status); } >/dev/null; then
6350 if test -s conftest.err; then
6351 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006353 else
6354 ac_cpp_err=
6355 fi
6356else
6357 ac_cpp_err=yes
6358fi
6359if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006360 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006361else
6362 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006366fi
6367rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006370
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006371# So? What about this header?
6372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6373 yes:no: )
6374 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6375echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6377echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6378 ac_header_preproc=yes
6379 ;;
6380 no:yes:* )
6381 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6382echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6384echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6386echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6388echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6390echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6392echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6393 (
6394 cat <<\_ASBOX
6395## ------------------------------------ ##
6396## Report this to the pjproject lists. ##
6397## ------------------------------------ ##
6398_ASBOX
6399 ) |
6400 sed "s/^/$as_me: WARNING: /" >&2
6401 ;;
6402esac
6403echo "$as_me:$LINENO: checking for string.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006404echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6405if test "${ac_cv_header_string_h+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006407else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006408 ac_cv_header_string_h=$ac_header_preproc
6409fi
6410echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6411echo "${ECHO_T}$ac_cv_header_string_h" >&6
6412
6413fi
6414if test $ac_cv_header_string_h = yes; then
6415 cat >>confdefs.h <<\_ACEOF
6416#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006417_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006418
6419fi
6420
6421
6422if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6423 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
6424echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6425if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427fi
6428echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6429echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6430else
6431 # Is the header compilable?
6432echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
6433echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
6434cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h. */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h. */
6440$ac_includes_default
6441#include <sys/ioctl.h>
6442_ACEOF
6443rm -f conftest.$ac_objext
6444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006446 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006447 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006448 rm -f conftest.er1
6449 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag"
6453 || test ! -s conftest.err'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 (eval $ac_try) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_header_compiler=yes
6466else
6467 echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470ac_header_compiler=no
6471fi
6472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6474echo "${ECHO_T}$ac_header_compiler" >&6
6475
6476# Is the header present?
6477echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
6478echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
6479cat >conftest.$ac_ext <<_ACEOF
6480/* confdefs.h. */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h. */
6485#include <sys/ioctl.h>
6486_ACEOF
6487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006494 (exit $ac_status); } >/dev/null; then
6495 if test -s conftest.err; then
6496 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006498 else
6499 ac_cpp_err=
6500 fi
6501else
6502 ac_cpp_err=yes
6503fi
6504if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006505 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006506else
6507 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006511fi
6512rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6514echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006515
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006516# So? What about this header?
6517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6518 yes:no: )
6519 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6520echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
6522echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
6523 ac_header_preproc=yes
6524 ;;
6525 no:yes:* )
6526 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
6527echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
6528 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
6529echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
6530 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
6531echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
6532 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
6533echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6534 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
6535echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
6536 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
6537echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
6538 (
6539 cat <<\_ASBOX
6540## ------------------------------------ ##
6541## Report this to the pjproject lists. ##
6542## ------------------------------------ ##
6543_ASBOX
6544 ) |
6545 sed "s/^/$as_me: WARNING: /" >&2
6546 ;;
6547esac
6548echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006549echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6550if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006552else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006553 ac_cv_header_sys_ioctl_h=$ac_header_preproc
6554fi
6555echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6556echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6557
6558fi
6559if test $ac_cv_header_sys_ioctl_h = yes; then
6560 cat >>confdefs.h <<\_ACEOF
6561#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006562_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006563
6564fi
6565
6566
6567if test "${ac_cv_header_sys_select_h+set}" = set; then
6568 echo "$as_me:$LINENO: checking for sys/select.h" >&5
6569echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6570if test "${ac_cv_header_sys_select_h+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572fi
6573echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6574echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6575else
6576 # Is the header compilable?
6577echo "$as_me:$LINENO: checking sys/select.h usability" >&5
6578echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
6579cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h. */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h. */
6585$ac_includes_default
6586#include <sys/select.h>
6587_ACEOF
6588rm -f conftest.$ac_objext
6589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006591 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006592 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006593 rm -f conftest.er1
6594 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_c_werror_flag"
6598 || test ! -s conftest.err'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; } &&
6604 { ac_try='test -s conftest.$ac_objext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_header_compiler=yes
6611else
6612 echo "$as_me: failed program was:" >&5
6613sed 's/^/| /' conftest.$ac_ext >&5
6614
6615ac_header_compiler=no
6616fi
6617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619echo "${ECHO_T}$ac_header_compiler" >&6
6620
6621# Is the header present?
6622echo "$as_me:$LINENO: checking sys/select.h presence" >&5
6623echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
6624cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h. */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h. */
6630#include <sys/select.h>
6631_ACEOF
6632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006639 (exit $ac_status); } >/dev/null; then
6640 if test -s conftest.err; then
6641 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006643 else
6644 ac_cpp_err=
6645 fi
6646else
6647 ac_cpp_err=yes
6648fi
6649if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006650 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006651else
6652 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006653sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006656fi
6657rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6659echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006660
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006661# So? What about this header?
6662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6663 yes:no: )
6664 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
6665echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
6667echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
6668 ac_header_preproc=yes
6669 ;;
6670 no:yes:* )
6671 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
6672echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
6674echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
6676echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
6678echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
6680echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
6682echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
6683 (
6684 cat <<\_ASBOX
6685## ------------------------------------ ##
6686## Report this to the pjproject lists. ##
6687## ------------------------------------ ##
6688_ASBOX
6689 ) |
6690 sed "s/^/$as_me: WARNING: /" >&2
6691 ;;
6692esac
6693echo "$as_me:$LINENO: checking for sys/select.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006694echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6695if test "${ac_cv_header_sys_select_h+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006697else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006698 ac_cv_header_sys_select_h=$ac_header_preproc
6699fi
6700echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6701echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6702
6703fi
6704if test $ac_cv_header_sys_select_h = yes; then
6705 cat >>confdefs.h <<\_ACEOF
6706#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006707_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006708
6709fi
6710
6711
6712if test "${ac_cv_header_sys_socket_h+set}" = set; then
6713 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6714echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6715if test "${ac_cv_header_sys_socket_h+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717fi
6718echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6719echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6720else
6721 # Is the header compilable?
6722echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
6723echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
6724cat >conftest.$ac_ext <<_ACEOF
6725/* confdefs.h. */
6726_ACEOF
6727cat confdefs.h >>conftest.$ac_ext
6728cat >>conftest.$ac_ext <<_ACEOF
6729/* end confdefs.h. */
6730$ac_includes_default
6731#include <sys/socket.h>
6732_ACEOF
6733rm -f conftest.$ac_objext
6734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006736 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006737 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006738 rm -f conftest.er1
6739 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -z "$ac_c_werror_flag"
6743 || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_header_compiler=yes
6756else
6757 echo "$as_me: failed program was:" >&5
6758sed 's/^/| /' conftest.$ac_ext >&5
6759
6760ac_header_compiler=no
6761fi
6762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6763echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6764echo "${ECHO_T}$ac_header_compiler" >&6
6765
6766# Is the header present?
6767echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
6768echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
6769cat >conftest.$ac_ext <<_ACEOF
6770/* confdefs.h. */
6771_ACEOF
6772cat confdefs.h >>conftest.$ac_ext
6773cat >>conftest.$ac_ext <<_ACEOF
6774/* end confdefs.h. */
6775#include <sys/socket.h>
6776_ACEOF
6777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006784 (exit $ac_status); } >/dev/null; then
6785 if test -s conftest.err; then
6786 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006788 else
6789 ac_cpp_err=
6790 fi
6791else
6792 ac_cpp_err=yes
6793fi
6794if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006795 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006796else
6797 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006798sed 's/^/| /' conftest.$ac_ext >&5
6799
6800 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006801fi
6802rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006803echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6804echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006805
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006806# So? What about this header?
6807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6808 yes:no: )
6809 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6810echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6811 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6812echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6813 ac_header_preproc=yes
6814 ;;
6815 no:yes:* )
6816 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6817echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
6819echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
6820 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6821echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6822 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
6823echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
6824 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6825echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6827echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
6828 (
6829 cat <<\_ASBOX
6830## ------------------------------------ ##
6831## Report this to the pjproject lists. ##
6832## ------------------------------------ ##
6833_ASBOX
6834 ) |
6835 sed "s/^/$as_me: WARNING: /" >&2
6836 ;;
6837esac
6838echo "$as_me:$LINENO: checking for sys/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006839echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6840if test "${ac_cv_header_sys_socket_h+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006842else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006843 ac_cv_header_sys_socket_h=$ac_header_preproc
6844fi
6845echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6846echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6847
6848fi
6849if test $ac_cv_header_sys_socket_h = yes; then
6850 cat >>confdefs.h <<\_ACEOF
6851#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006852_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006853
6854fi
6855
6856
6857if test "${ac_cv_header_sys_time_h+set}" = set; then
6858 echo "$as_me:$LINENO: checking for sys/time.h" >&5
6859echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
6860if test "${ac_cv_header_sys_time_h+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862fi
6863echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
6864echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
6865else
6866 # Is the header compilable?
6867echo "$as_me:$LINENO: checking sys/time.h usability" >&5
6868echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
6869cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h. */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h. */
6875$ac_includes_default
6876#include <sys/time.h>
6877_ACEOF
6878rm -f conftest.$ac_objext
6879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006881 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006882 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006883 rm -f conftest.er1
6884 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -z "$ac_c_werror_flag"
6888 || test ! -s conftest.err'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; } &&
6894 { ac_try='test -s conftest.$ac_objext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 ac_header_compiler=yes
6901else
6902 echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905ac_header_compiler=no
6906fi
6907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6909echo "${ECHO_T}$ac_header_compiler" >&6
6910
6911# Is the header present?
6912echo "$as_me:$LINENO: checking sys/time.h presence" >&5
6913echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
6914cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h. */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h. */
6920#include <sys/time.h>
6921_ACEOF
6922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006929 (exit $ac_status); } >/dev/null; then
6930 if test -s conftest.err; then
6931 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006933 else
6934 ac_cpp_err=
6935 fi
6936else
6937 ac_cpp_err=yes
6938fi
6939if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006940 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006941else
6942 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006943sed 's/^/| /' conftest.$ac_ext >&5
6944
6945 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006946fi
6947rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6949echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006950
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006951# So? What about this header?
6952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6953 yes:no: )
6954 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
6955echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
6957echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
6958 ac_header_preproc=yes
6959 ;;
6960 no:yes:* )
6961 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
6962echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
6963 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
6964echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
6965 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
6966echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
6967 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
6968echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
6969 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
6970echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
6972echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
6973 (
6974 cat <<\_ASBOX
6975## ------------------------------------ ##
6976## Report this to the pjproject lists. ##
6977## ------------------------------------ ##
6978_ASBOX
6979 ) |
6980 sed "s/^/$as_me: WARNING: /" >&2
6981 ;;
6982esac
6983echo "$as_me:$LINENO: checking for sys/time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006984echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
6985if test "${ac_cv_header_sys_time_h+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006987else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006988 ac_cv_header_sys_time_h=$ac_header_preproc
6989fi
6990echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
6991echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
6992
6993fi
6994if test $ac_cv_header_sys_time_h = yes; then
6995 cat >>confdefs.h <<\_ACEOF
6996#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006997_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006998
6999fi
7000
7001
7002if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7003 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7004echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7005if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007fi
7008echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7009echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7010else
7011 # Is the header compilable?
7012echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7013echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
7014cat >conftest.$ac_ext <<_ACEOF
7015/* confdefs.h. */
7016_ACEOF
7017cat confdefs.h >>conftest.$ac_ext
7018cat >>conftest.$ac_ext <<_ACEOF
7019/* end confdefs.h. */
7020$ac_includes_default
7021#include <sys/timeb.h>
7022_ACEOF
7023rm -f conftest.$ac_objext
7024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007026 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007027 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007028 rm -f conftest.er1
7029 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -z "$ac_c_werror_flag"
7033 || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_header_compiler=yes
7046else
7047 echo "$as_me: failed program was:" >&5
7048sed 's/^/| /' conftest.$ac_ext >&5
7049
7050ac_header_compiler=no
7051fi
7052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7054echo "${ECHO_T}$ac_header_compiler" >&6
7055
7056# Is the header present?
7057echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7058echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
7059cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h. */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h. */
7065#include <sys/timeb.h>
7066_ACEOF
7067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007074 (exit $ac_status); } >/dev/null; then
7075 if test -s conftest.err; then
7076 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007078 else
7079 ac_cpp_err=
7080 fi
7081else
7082 ac_cpp_err=yes
7083fi
7084if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007085 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007086else
7087 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007088sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007091fi
7092rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7094echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007095
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007096# So? What about this header?
7097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7098 yes:no: )
7099 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7100echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7101 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7102echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7103 ac_header_preproc=yes
7104 ;;
7105 no:yes:* )
7106 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7107echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7108 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7109echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7111echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7112 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7113echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7114 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7115echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7117echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
7118 (
7119 cat <<\_ASBOX
7120## ------------------------------------ ##
7121## Report this to the pjproject lists. ##
7122## ------------------------------------ ##
7123_ASBOX
7124 ) |
7125 sed "s/^/$as_me: WARNING: /" >&2
7126 ;;
7127esac
7128echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007129echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7130if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007132else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007133 ac_cv_header_sys_timeb_h=$ac_header_preproc
7134fi
7135echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7136echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7137
7138fi
7139if test $ac_cv_header_sys_timeb_h = yes; then
7140 cat >>confdefs.h <<\_ACEOF
7141#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007142_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007143
7144fi
7145
7146
7147if test "${ac_cv_header_sys_types_h+set}" = set; then
7148 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7149echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7150if test "${ac_cv_header_sys_types_h+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152fi
7153echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7154echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7155else
7156 # Is the header compilable?
7157echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7158echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
7159cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h. */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h. */
7165$ac_includes_default
7166#include <sys/types.h>
7167_ACEOF
7168rm -f conftest.$ac_objext
7169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7170 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007171 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007172 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007173 rm -f conftest.er1
7174 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest.$ac_objext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 ac_header_compiler=yes
7191else
7192 echo "$as_me: failed program was:" >&5
7193sed 's/^/| /' conftest.$ac_ext >&5
7194
7195ac_header_compiler=no
7196fi
7197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7199echo "${ECHO_T}$ac_header_compiler" >&6
7200
7201# Is the header present?
7202echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7203echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
7204cat >conftest.$ac_ext <<_ACEOF
7205/* confdefs.h. */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h. */
7210#include <sys/types.h>
7211_ACEOF
7212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007219 (exit $ac_status); } >/dev/null; then
7220 if test -s conftest.err; then
7221 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007223 else
7224 ac_cpp_err=
7225 fi
7226else
7227 ac_cpp_err=yes
7228fi
7229if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007230 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007231else
7232 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007236fi
7237rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7239echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007240
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007241# So? What about this header?
7242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7243 yes:no: )
7244 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7245echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7247echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7248 ac_header_preproc=yes
7249 ;;
7250 no:yes:* )
7251 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7252echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7254echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7256echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7257 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7258echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7259 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7260echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7262echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
7263 (
7264 cat <<\_ASBOX
7265## ------------------------------------ ##
7266## Report this to the pjproject lists. ##
7267## ------------------------------------ ##
7268_ASBOX
7269 ) |
7270 sed "s/^/$as_me: WARNING: /" >&2
7271 ;;
7272esac
7273echo "$as_me:$LINENO: checking for sys/types.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007274echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7275if test "${ac_cv_header_sys_types_h+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007277else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007278 ac_cv_header_sys_types_h=$ac_header_preproc
7279fi
7280echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7281echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7282
7283fi
7284if test $ac_cv_header_sys_types_h = yes; then
7285 cat >>confdefs.h <<\_ACEOF
7286#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007287_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007288
7289fi
7290
7291
7292if test "${ac_cv_header_time_h+set}" = set; then
7293 echo "$as_me:$LINENO: checking for time.h" >&5
7294echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7295if test "${ac_cv_header_time_h+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297fi
7298echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7299echo "${ECHO_T}$ac_cv_header_time_h" >&6
7300else
7301 # Is the header compilable?
7302echo "$as_me:$LINENO: checking time.h usability" >&5
7303echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
7304cat >conftest.$ac_ext <<_ACEOF
7305/* confdefs.h. */
7306_ACEOF
7307cat confdefs.h >>conftest.$ac_ext
7308cat >>conftest.$ac_ext <<_ACEOF
7309/* end confdefs.h. */
7310$ac_includes_default
7311#include <time.h>
7312_ACEOF
7313rm -f conftest.$ac_objext
7314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7315 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007316 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007317 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007318 rm -f conftest.er1
7319 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -z "$ac_c_werror_flag"
7323 || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_header_compiler=yes
7336else
7337 echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340ac_header_compiler=no
7341fi
7342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7344echo "${ECHO_T}$ac_header_compiler" >&6
7345
7346# Is the header present?
7347echo "$as_me:$LINENO: checking time.h presence" >&5
7348echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
7349cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h. */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h. */
7355#include <time.h>
7356_ACEOF
7357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007364 (exit $ac_status); } >/dev/null; then
7365 if test -s conftest.err; then
7366 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007368 else
7369 ac_cpp_err=
7370 fi
7371else
7372 ac_cpp_err=yes
7373fi
7374if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007375 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007376else
7377 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007378sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007381fi
7382rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7384echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007385
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007386# So? What about this header?
7387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7388 yes:no: )
7389 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7390echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
7392echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
7393 ac_header_preproc=yes
7394 ;;
7395 no:yes:* )
7396 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
7397echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
7399echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
7401echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
7403echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
7405echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
7407echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
7408 (
7409 cat <<\_ASBOX
7410## ------------------------------------ ##
7411## Report this to the pjproject lists. ##
7412## ------------------------------------ ##
7413_ASBOX
7414 ) |
7415 sed "s/^/$as_me: WARNING: /" >&2
7416 ;;
7417esac
7418echo "$as_me:$LINENO: checking for time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007419echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7420if test "${ac_cv_header_time_h+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007422else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007423 ac_cv_header_time_h=$ac_header_preproc
7424fi
7425echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7426echo "${ECHO_T}$ac_cv_header_time_h" >&6
7427
7428fi
7429if test $ac_cv_header_time_h = yes; then
7430 cat >>confdefs.h <<\_ACEOF
7431#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007432_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007433
7434fi
7435
7436
7437if test "${ac_cv_header_unistd_h+set}" = set; then
7438 echo "$as_me:$LINENO: checking for unistd.h" >&5
7439echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7440if test "${ac_cv_header_unistd_h+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442fi
7443echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7444echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7445else
7446 # Is the header compilable?
7447echo "$as_me:$LINENO: checking unistd.h usability" >&5
7448echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
7449cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h. */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h. */
7455$ac_includes_default
7456#include <unistd.h>
7457_ACEOF
7458rm -f conftest.$ac_objext
7459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007461 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007462 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007463 rm -f conftest.er1
7464 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -z "$ac_c_werror_flag"
7468 || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest.$ac_objext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 ac_header_compiler=yes
7481else
7482 echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
7485ac_header_compiler=no
7486fi
7487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7489echo "${ECHO_T}$ac_header_compiler" >&6
7490
7491# Is the header present?
7492echo "$as_me:$LINENO: checking unistd.h presence" >&5
7493echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
7494cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h. */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h. */
7500#include <unistd.h>
7501_ACEOF
7502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007509 (exit $ac_status); } >/dev/null; then
7510 if test -s conftest.err; then
7511 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007513 else
7514 ac_cpp_err=
7515 fi
7516else
7517 ac_cpp_err=yes
7518fi
7519if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007520 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007521else
7522 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007523sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007526fi
7527rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7529echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007530
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007531# So? What about this header?
7532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7533 yes:no: )
7534 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
7535echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7536 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
7537echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
7538 ac_header_preproc=yes
7539 ;;
7540 no:yes:* )
7541 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
7542echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
7544echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
7546echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
7548echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
7550echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
7552echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
7553 (
7554 cat <<\_ASBOX
7555## ------------------------------------ ##
7556## Report this to the pjproject lists. ##
7557## ------------------------------------ ##
7558_ASBOX
7559 ) |
7560 sed "s/^/$as_me: WARNING: /" >&2
7561 ;;
7562esac
7563echo "$as_me:$LINENO: checking for unistd.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007564echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7565if test "${ac_cv_header_unistd_h+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007567else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007568 ac_cv_header_unistd_h=$ac_header_preproc
7569fi
7570echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7571echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7572
7573fi
7574if test $ac_cv_header_unistd_h = yes; then
7575 cat >>confdefs.h <<\_ACEOF
7576#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007577_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007578
7579fi
7580
7581
7582if test "${ac_cv_header_mswsock_h+set}" = set; then
7583 echo "$as_me:$LINENO: checking for mswsock.h" >&5
7584echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7585if test "${ac_cv_header_mswsock_h+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587fi
7588echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7589echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7590else
7591 # Is the header compilable?
7592echo "$as_me:$LINENO: checking mswsock.h usability" >&5
7593echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
7594cat >conftest.$ac_ext <<_ACEOF
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
7600$ac_includes_default
7601#include <mswsock.h>
7602_ACEOF
7603rm -f conftest.$ac_objext
7604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007606 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007607 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007608 rm -f conftest.er1
7609 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try='test -s conftest.$ac_objext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_header_compiler=yes
7626else
7627 echo "$as_me: failed program was:" >&5
7628sed 's/^/| /' conftest.$ac_ext >&5
7629
7630ac_header_compiler=no
7631fi
7632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7633echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7634echo "${ECHO_T}$ac_header_compiler" >&6
7635
7636# Is the header present?
7637echo "$as_me:$LINENO: checking mswsock.h presence" >&5
7638echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
7639cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h. */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
7644/* end confdefs.h. */
7645#include <mswsock.h>
7646_ACEOF
7647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007654 (exit $ac_status); } >/dev/null; then
7655 if test -s conftest.err; then
7656 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007658 else
7659 ac_cpp_err=
7660 fi
7661else
7662 ac_cpp_err=yes
7663fi
7664if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007665 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007666else
7667 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007668sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007671fi
7672rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007673echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7674echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007675
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007676# So? What about this header?
7677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7678 yes:no: )
7679 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7680echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
7682echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
7683 ac_header_preproc=yes
7684 ;;
7685 no:yes:* )
7686 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
7687echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
7689echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
7691echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
7693echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
7695echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
7697echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
7698 (
7699 cat <<\_ASBOX
7700## ------------------------------------ ##
7701## Report this to the pjproject lists. ##
7702## ------------------------------------ ##
7703_ASBOX
7704 ) |
7705 sed "s/^/$as_me: WARNING: /" >&2
7706 ;;
7707esac
7708echo "$as_me:$LINENO: checking for mswsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007709echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7710if test "${ac_cv_header_mswsock_h+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007712else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007713 ac_cv_header_mswsock_h=$ac_header_preproc
7714fi
7715echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7716echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7717
7718fi
7719if test $ac_cv_header_mswsock_h = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007722_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007723
7724fi
7725
7726
7727if test "${ac_cv_header_winsock_h+set}" = set; then
7728 echo "$as_me:$LINENO: checking for winsock.h" >&5
7729echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7730if test "${ac_cv_header_winsock_h+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7732fi
7733echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7734echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7735else
7736 # Is the header compilable?
7737echo "$as_me:$LINENO: checking winsock.h usability" >&5
7738echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
7739cat >conftest.$ac_ext <<_ACEOF
7740/* confdefs.h. */
7741_ACEOF
7742cat confdefs.h >>conftest.$ac_ext
7743cat >>conftest.$ac_ext <<_ACEOF
7744/* end confdefs.h. */
7745$ac_includes_default
7746#include <winsock.h>
7747_ACEOF
7748rm -f conftest.$ac_objext
7749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007751 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007752 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007753 rm -f conftest.er1
7754 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_header_compiler=yes
7771else
7772 echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775ac_header_compiler=no
7776fi
7777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7779echo "${ECHO_T}$ac_header_compiler" >&6
7780
7781# Is the header present?
7782echo "$as_me:$LINENO: checking winsock.h presence" >&5
7783echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
7784cat >conftest.$ac_ext <<_ACEOF
7785/* confdefs.h. */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */
7790#include <winsock.h>
7791_ACEOF
7792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7794 ac_status=$?
7795 grep -v '^ *+' conftest.er1 >conftest.err
7796 rm -f conftest.er1
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007799 (exit $ac_status); } >/dev/null; then
7800 if test -s conftest.err; then
7801 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007803 else
7804 ac_cpp_err=
7805 fi
7806else
7807 ac_cpp_err=yes
7808fi
7809if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007810 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007811else
7812 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007813sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007816fi
7817rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7819echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007820
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007821# So? What about this header?
7822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7823 yes:no: )
7824 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7825echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
7827echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
7828 ac_header_preproc=yes
7829 ;;
7830 no:yes:* )
7831 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
7832echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
7833 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
7834echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
7836echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
7838echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7839 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
7840echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
7842echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
7843 (
7844 cat <<\_ASBOX
7845## ------------------------------------ ##
7846## Report this to the pjproject lists. ##
7847## ------------------------------------ ##
7848_ASBOX
7849 ) |
7850 sed "s/^/$as_me: WARNING: /" >&2
7851 ;;
7852esac
7853echo "$as_me:$LINENO: checking for winsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007854echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7855if test "${ac_cv_header_winsock_h+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007857else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007858 ac_cv_header_winsock_h=$ac_header_preproc
7859fi
7860echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7861echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7862
7863fi
7864if test $ac_cv_header_winsock_h = yes; then
7865 cat >>confdefs.h <<\_ACEOF
7866#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007867_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007868
7869fi
7870
7871
7872if test "${ac_cv_header_winsock2_h+set}" = set; then
7873 echo "$as_me:$LINENO: checking for winsock2.h" >&5
7874echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
7875if test "${ac_cv_header_winsock2_h+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877fi
7878echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
7879echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
7880else
7881 # Is the header compilable?
7882echo "$as_me:$LINENO: checking winsock2.h usability" >&5
7883echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
7884cat >conftest.$ac_ext <<_ACEOF
7885/* confdefs.h. */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h. */
7890$ac_includes_default
7891#include <winsock2.h>
7892_ACEOF
7893rm -f conftest.$ac_objext
7894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007896 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007897 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007898 rm -f conftest.er1
7899 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag"
7903 || test ! -s conftest.err'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 ac_header_compiler=yes
7916else
7917 echo "$as_me: failed program was:" >&5
7918sed 's/^/| /' conftest.$ac_ext >&5
7919
7920ac_header_compiler=no
7921fi
7922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7924echo "${ECHO_T}$ac_header_compiler" >&6
7925
7926# Is the header present?
7927echo "$as_me:$LINENO: checking winsock2.h presence" >&5
7928echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
7929cat >conftest.$ac_ext <<_ACEOF
7930/* confdefs.h. */
7931_ACEOF
7932cat confdefs.h >>conftest.$ac_ext
7933cat >>conftest.$ac_ext <<_ACEOF
7934/* end confdefs.h. */
7935#include <winsock2.h>
7936_ACEOF
7937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007944 (exit $ac_status); } >/dev/null; then
7945 if test -s conftest.err; then
7946 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007948 else
7949 ac_cpp_err=
7950 fi
7951else
7952 ac_cpp_err=yes
7953fi
7954if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007955 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007956else
7957 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007961fi
7962rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007963echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7964echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007965
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007966# So? What about this header?
7967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7968 yes:no: )
7969 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7970echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7971 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
7972echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
7973 ac_header_preproc=yes
7974 ;;
7975 no:yes:* )
7976 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
7977echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
7978 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
7979echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
7980 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
7981echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
7982 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
7983echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7984 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
7985echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
7987echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
7988 (
7989 cat <<\_ASBOX
7990## ------------------------------------ ##
7991## Report this to the pjproject lists. ##
7992## ------------------------------------ ##
7993_ASBOX
7994 ) |
7995 sed "s/^/$as_me: WARNING: /" >&2
7996 ;;
7997esac
7998echo "$as_me:$LINENO: checking for winsock2.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007999echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8000if test "${ac_cv_header_winsock2_h+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008002else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008003 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008004fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008005echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008006echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008007
8008fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008009if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008010 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008011#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008012_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008013
8014fi
8015
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008016
8017
8018echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008019echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008020cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008021#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008022_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008023
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008024
8025echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008026echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008027cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008028#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008029_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008030
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008031
8032echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008033echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008034cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008035#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008036_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008037
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008038
8039echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008040echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008041cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008042#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008043_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008044
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008045
8046echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008047echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008048cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008049#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008050_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008051
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008052
8053echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008054echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008055cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008056#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008057_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008058
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008059
8060echo "$as_me:$LINENO: checking if inet_aton is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008061echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
8062cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008063/* confdefs.h. */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008068#include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008069int
8070main ()
8071{
8072inet_aton(0, 0);
8073 ;
8074 return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008080 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008085 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008089 (eval $ac_try) 2>&5
8090 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008098 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008099 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008100#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008101_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008102
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008103 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008104echo "${ECHO_T}yes" >&6
8105else
8106 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008107sed 's/^/| /' conftest.$ac_ext >&5
8108
8109echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008110echo "${ECHO_T}no" >&6
8111fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008113
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008114echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008115echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
8116cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008117/* confdefs.h. */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008122#include <sys/types.h>
8123 #include <sys/socket.h>
8124 #include <netinet/in.h>
8125 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008126int
8127main ()
8128{
8129struct sockaddr_in a; a.sin_len=0;
8130 ;
8131 return 0;
8132}
8133_ACEOF
8134rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008137 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008142 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008143 { ac_try='test -z "$ac_c_werror_flag"
8144 || test ! -s conftest.err'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008146 (eval $ac_try) 2>&5
8147 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; } &&
8150 { ac_try='test -s conftest.$ac_objext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008155 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008156 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008157#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008158_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008159
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008160 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008161echo "${ECHO_T}yes" >&6
8162else
8163 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008164sed 's/^/| /' conftest.$ac_ext >&5
8165
8166echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008167echo "${ECHO_T}no" >&6
8168fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008170
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008171echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008172echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8173cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008174/* confdefs.h. */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008179#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008180int
8181main ()
8182{
8183socklen_t xxx = 0;
8184 ;
8185 return 0;
8186}
8187_ACEOF
8188rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008191 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008196 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008200 (eval $ac_try) 2>&5
8201 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008209 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008210 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008211#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008212_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008213
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008214 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008215echo "${ECHO_T}yes" >&6
8216else
8217 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008218sed 's/^/| /' conftest.$ac_ext >&5
8219
8220echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008221echo "${ECHO_T}no" >&6
8222fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008224
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008225echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008226echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008227case $target in
8228 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008229 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008230#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008231_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008232
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008233 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008234echo "${ECHO_T}yes" >&6
8235 ;;
8236 *)
8237 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008238/* confdefs.h. */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
8242/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008243#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008244 #include <sys/socket.h>
8245 #include <netinet/in.h>
8246 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008247int
8248main ()
8249{
8250int i=SO_ERROR;
8251 ;
8252 return 0;
8253}
8254_ACEOF
8255rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8257 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008258 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008263 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008264 { ac_try='test -z "$ac_c_werror_flag"
8265 || test ! -s conftest.err'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008267 (eval $ac_try) 2>&5
8268 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; } &&
8271 { ac_try='test -s conftest.$ac_objext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008276 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008277 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008278#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008279_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008280
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008281 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008282echo "${ECHO_T}yes" >&6
8283else
8284 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008288echo "${ECHO_T}no" >&6
8289fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008291 ;;
8292esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008293
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008294
8295echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008296echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
8297cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008303#include <pthread.h>
8304int
8305main ()
8306{
8307pthread_rwlock_t *x;
8308 ;
8309 return 0;
8310}
8311_ACEOF
8312rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8314 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008315 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008320 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008324 (eval $ac_try) 2>&5
8325 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest.$ac_objext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008333 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008334 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008335#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008336_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008337
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008338 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008339echo "${ECHO_T}yes" >&6
8340else
8341 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008342sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008343
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008344cat >>confdefs.h <<\_ACEOF
8345#define PJ_EMULATE_RWMUTEX 1
8346_ACEOF
8347
8348 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008349echo "${ECHO_T}no" >&6
8350fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8352
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008353
8354case $target in
8355 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00008356 ac_os_objs="file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o"
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008357 ;;
8358 *)
Benny Prijonoad086e02007-02-16 10:58:18 +00008359 ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o guid_simple.o ioqueue_select.o"
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008360 ;;
8361esac
8362
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008363
8364
8365
Benny Prijono1d971622006-09-10 22:27:40 +00008366# Check whether --enable-sound or --disable-sound was given.
8367if test "${enable_sound+set}" = set; then
8368 enableval="$enable_sound"
8369 if test "$enable_sound" = "no"; then
8370 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008371 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00008372echo "${ECHO_T}Checking if sound is disabled... yes" >&6
8373 fi
8374
8375fi;
8376
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008377
Benny Prijono1d971622006-09-10 22:27:40 +00008378if test "$enable_sound" = "no"; then
8379 true;
8380else
8381 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00008382 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00008383 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
8384 if test "`uname -r`" = "6.8"; then
8385 #ac_pa_cflags="-DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
8386 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
8387 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008388 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00008389echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
8390 else
8391 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008392 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00008393echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00008394 fi
Benny Prijonob466e232006-09-10 08:53:59 +00008395 ;;
8396 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008397 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008398 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008399echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
8400 ;;
8401 *rtems*)
8402 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008403 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008404echo "${ECHO_T}Checking sound device backend... null sound" >&6
8405 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008406 *)
8407 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008408 if test "${ac_cv_header_alsa_version_h+set}" = set; then
8409 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008410echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
8411if test "${ac_cv_header_alsa_version_h+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008413fi
8414echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
8415echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008416else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008417 # Is the header compilable?
8418echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
8419echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
8420cat >conftest.$ac_ext <<_ACEOF
8421/* confdefs.h. */
8422_ACEOF
8423cat confdefs.h >>conftest.$ac_ext
8424cat >>conftest.$ac_ext <<_ACEOF
8425/* end confdefs.h. */
8426$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008427#include <alsa/version.h>
8428_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008429rm -f conftest.$ac_objext
8430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008432 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008433 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008434 rm -f conftest.er1
8435 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_header_compiler=yes
8452else
8453 echo "$as_me: failed program was:" >&5
8454sed 's/^/| /' conftest.$ac_ext >&5
8455
8456ac_header_compiler=no
8457fi
8458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8459echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8460echo "${ECHO_T}$ac_header_compiler" >&6
8461
8462# Is the header present?
8463echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
8464echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
8465cat >conftest.$ac_ext <<_ACEOF
8466/* confdefs.h. */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h. */
8471#include <alsa/version.h>
8472_ACEOF
8473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008480 (exit $ac_status); } >/dev/null; then
8481 if test -s conftest.err; then
8482 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008484 else
8485 ac_cpp_err=
8486 fi
8487else
8488 ac_cpp_err=yes
8489fi
8490if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008491 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008492else
8493 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008497fi
8498rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008499echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8500echo "${ECHO_T}$ac_header_preproc" >&6
8501
8502# So? What about this header?
8503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8504 yes:no: )
8505 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8506echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
8508echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
8509 ac_header_preproc=yes
8510 ;;
8511 no:yes:* )
8512 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
8513echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
8515echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
8516 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
8517echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
8518 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
8519echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
8521echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
8523echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
8524 (
8525 cat <<\_ASBOX
8526## ------------------------------------ ##
8527## Report this to the pjproject lists. ##
8528## ------------------------------------ ##
8529_ASBOX
8530 ) |
8531 sed "s/^/$as_me: WARNING: /" >&2
8532 ;;
8533esac
8534echo "$as_me:$LINENO: checking for alsa/version.h" >&5
8535echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
8536if test "${ac_cv_header_alsa_version_h+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538else
8539 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008540fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008541echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008542echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008543
8544fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008545if test $ac_cv_header_alsa_version_h = yes; then
8546 ac_pa_use_alsa=1
8547
8548 LIBS="$LIBS -lasound"
8549
8550else
8551 ac_pa_use_alsa=0
8552
8553fi
8554
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008555
8556 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008557echo "${ECHO_T}Checking sound device backend... unix" >&6
8558 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00008559 esac
8560fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008561
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008562
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008563# Check whether --enable-small-filter or --disable-small-filter was given.
8564if test "${enable_small_filter+set}" = set; then
8565 enableval="$enable_small_filter"
8566 if test "$enable_small_filter" = "no"; then
8567 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008568 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008569echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
8570 fi
8571else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008572 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008573echo "${ECHO_T}Checking if small filter is disabled... no" >&6
8574fi;
8575
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008576
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008577# Check whether --enable-large-filter or --disable-large-filter was given.
8578if test "${enable_large_filter+set}" = set; then
8579 enableval="$enable_large_filter"
8580 if test "$enable_large_filter" = "no"; then
8581 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008582 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008583echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
8584 fi
8585else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008586 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008587echo "${ECHO_T}Checking if large filter is disabled... no" >&6
8588fi;
8589
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008590
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008591# Check whether --enable-g711-plc or --disable-g711-plc was given.
8592if test "${enable_g711_plc+set}" = set; then
8593 enableval="$enable_g711_plc"
8594 if test "$enable_g711_plc" = "no"; then
8595 ac_no_g711_plc='-DPJMEDIA_HAS_G711_PLC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008596 echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008597echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...yes" >&6
8598 fi
8599else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008600 echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008601echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...no" >&6
8602fi;
8603
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008604
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008605# Check whether --enable-speex-aec or --disable-speex-aec was given.
8606if test "${enable_speex_aec+set}" = set; then
8607 enableval="$enable_speex_aec"
8608 if test "$enable_speex_aec" = "no"; then
8609 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008610 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008611echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
8612 fi
8613else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008614 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008615echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
8616fi;
8617
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008618
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008619# Check whether --enable-g711-codec or --disable-g711-codec was given.
8620if test "${enable_g711_codec+set}" = set; then
8621 enableval="$enable_g711_codec"
8622 if test "$enable_g711_codec" = "no"; then
8623 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008624 cat >>confdefs.h <<\_ACEOF
8625#define PJMEDIA_HAS_G711_CODEC 0
8626_ACEOF
8627
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008628 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008629echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
8630 fi
8631else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008632 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008633echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
8634fi;
8635
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008636
8637
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008638# Check whether --enable-l16-codec or --disable-l16-codec was given.
8639if test "${enable_l16_codec+set}" = set; then
8640 enableval="$enable_l16_codec"
8641 if test "$enable_l16_codec" = "no"; then
8642 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008643 cat >>confdefs.h <<\_ACEOF
8644#define PJMEDIA_HAS_L16_CODEC 0
8645_ACEOF
8646
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008647 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008648echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
8649 fi
8650else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008651 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00008652echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008653fi;
8654
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008655
8656
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008657# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
8658if test "${enable_gsm_codec+set}" = set; then
8659 enableval="$enable_gsm_codec"
8660 if test "$enable_gsm_codec" = "no"; then
8661 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008662 cat >>confdefs.h <<\_ACEOF
8663#define PJMEDIA_HAS_GSM_CODEC 0
8664_ACEOF
8665
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008666 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008667echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
8668 fi
8669else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008670 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008671echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
8672fi;
8673
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008674
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008675# Check whether --enable-speex-codec or --disable-speex-codec was given.
8676if test "${enable_speex_codec+set}" = set; then
8677 enableval="$enable_speex_codec"
8678 if test "$enable_speex_codec" = "no"; then
8679 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008680 cat >>confdefs.h <<\_ACEOF
8681#define PJMEDIA_HAS_SPEEX_CODEC 0
8682_ACEOF
8683
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008684 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008685echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
8686 fi
8687else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008688 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008689echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
8690fi;
8691
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008692
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008693# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
8694if test "${enable_ilbc_codec+set}" = set; then
8695 enableval="$enable_ilbc_codec"
8696 if test "$enable_ilbc_codec" = "no"; then
8697 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00008698 cat >>confdefs.h <<\_ACEOF
8699#define PJMEDIA_HAS_ILBC_CODEC 0
8700_ACEOF
8701
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008702 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008703echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
8704 fi
8705else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008706 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008707echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
8708fi;
8709
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008710
8711
8712
8713
8714# Check whether --enable-ssl or --disable-ssl was given.
8715if test "${enable_ssl+set}" = set; then
8716 enableval="$enable_ssl"
8717
8718 if test "$enable_ssl" = "no"; then
8719 ac_no_ssl=1
8720 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
8721echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
8722 fi
8723
8724else
8725
8726 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
8727echo "${ECHO_T}checking for OpenSSL installations.." >&6
8728
8729
8730
8731 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8732 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8733echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8734if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736fi
8737echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8738echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8739else
8740 # Is the header compilable?
8741echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8742echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8743cat >conftest.$ac_ext <<_ACEOF
8744/* confdefs.h. */
8745_ACEOF
8746cat confdefs.h >>conftest.$ac_ext
8747cat >>conftest.$ac_ext <<_ACEOF
8748/* end confdefs.h. */
8749$ac_includes_default
8750#include <openssl/ssl.h>
8751_ACEOF
8752rm -f conftest.$ac_objext
8753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_header_compiler=yes
8775else
8776 echo "$as_me: failed program was:" >&5
8777sed 's/^/| /' conftest.$ac_ext >&5
8778
8779ac_header_compiler=no
8780fi
8781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783echo "${ECHO_T}$ac_header_compiler" >&6
8784
8785# Is the header present?
8786echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8787echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8788cat >conftest.$ac_ext <<_ACEOF
8789/* confdefs.h. */
8790_ACEOF
8791cat confdefs.h >>conftest.$ac_ext
8792cat >>conftest.$ac_ext <<_ACEOF
8793/* end confdefs.h. */
8794#include <openssl/ssl.h>
8795_ACEOF
8796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev/null; then
8804 if test -s conftest.err; then
8805 ac_cpp_err=$ac_c_preproc_warn_flag
8806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8807 else
8808 ac_cpp_err=
8809 fi
8810else
8811 ac_cpp_err=yes
8812fi
8813if test -z "$ac_cpp_err"; then
8814 ac_header_preproc=yes
8815else
8816 echo "$as_me: failed program was:" >&5
8817sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 ac_header_preproc=no
8820fi
8821rm -f conftest.err conftest.$ac_ext
8822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823echo "${ECHO_T}$ac_header_preproc" >&6
8824
8825# So? What about this header?
8826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8827 yes:no: )
8828 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8829echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
8831echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
8832 ac_header_preproc=yes
8833 ;;
8834 no:yes:* )
8835 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8836echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8838echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
8840echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
8842echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8844echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
8846echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
8847 (
8848 cat <<\_ASBOX
8849## ------------------------------------ ##
8850## Report this to the pjproject lists. ##
8851## ------------------------------------ ##
8852_ASBOX
8853 ) |
8854 sed "s/^/$as_me: WARNING: /" >&2
8855 ;;
8856esac
8857echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8858echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8859if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861else
8862 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8863fi
8864echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8865echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8866
8867fi
8868if test $ac_cv_header_openssl_ssl_h = yes; then
8869 openssl_h_present=1
8870fi
8871
8872
8873 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8874echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
8875if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878 ac_check_lib_save_LIBS=$LIBS
8879LIBS="-lssl $LIBS"
8880cat >conftest.$ac_ext <<_ACEOF
8881/* confdefs.h. */
8882_ACEOF
8883cat confdefs.h >>conftest.$ac_ext
8884cat >>conftest.$ac_ext <<_ACEOF
8885/* end confdefs.h. */
8886
8887/* Override any gcc2 internal prototype to avoid an error. */
8888#ifdef __cplusplus
8889extern "C"
8890#endif
8891/* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893char SSL_library_init ();
8894int
8895main ()
8896{
8897SSL_library_init ();
8898 ;
8899 return 0;
8900}
8901_ACEOF
8902rm -f conftest.$ac_objext conftest$ac_exeext
8903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_cv_lib_ssl_SSL_library_init=yes
8925else
8926 echo "$as_me: failed program was:" >&5
8927sed 's/^/| /' conftest.$ac_ext >&5
8928
8929ac_cv_lib_ssl_SSL_library_init=no
8930fi
8931rm -f conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933LIBS=$ac_check_lib_save_LIBS
8934fi
8935echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8936echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
8937if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8938 libssl_present=1 && LIBS="$LIBS -lssl"
8939fi
8940
8941 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
8942echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
8943if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946 ac_check_lib_save_LIBS=$LIBS
8947LIBS="-lcrypto $LIBS"
8948cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h. */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h. */
8954
8955/* Override any gcc2 internal prototype to avoid an error. */
8956#ifdef __cplusplus
8957extern "C"
8958#endif
8959/* We use char because int might match the return type of a gcc2
8960 builtin and then its argument prototype would still apply. */
8961char ERR_load_BIO_strings ();
8962int
8963main ()
8964{
8965ERR_load_BIO_strings ();
8966 ;
8967 return 0;
8968}
8969_ACEOF
8970rm -f conftest.$ac_objext conftest$ac_exeext
8971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972 (eval $ac_link) 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag"
8980 || test ! -s conftest.err'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
8993else
8994 echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997ac_cv_lib_crypto_ERR_load_BIO_strings=no
8998fi
8999rm -f conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9001LIBS=$ac_check_lib_save_LIBS
9002fi
9003echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
9004echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
9005if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
9006 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
9007fi
9008
9009 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
9010 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
9011echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
9012 cat >>confdefs.h <<\_ACEOF
9013#define PJSIP_HAS_TLS_TRANSPORT 1
9014_ACEOF
9015
9016 else
9017 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
9018echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
9019 fi
9020
9021fi;
9022
9023
9024
9025
9026echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009027echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009028case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009029 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009030#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009031_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009032
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009033 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009034echo "${ECHO_T}yes" >&6
9035 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009036 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009037#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009038_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009039
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009040 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009041echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009042 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009043echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
9044 ;;
9045esac
9046
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009047echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009048echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
9049case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009050 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009051#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009052_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009053
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009054 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009055echo "${ECHO_T}yes" >&6
9056 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009057 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009058#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009059_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009060
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009061 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009062echo "${ECHO_T}no (default)" >&6
9063 ;;
9064esac
9065
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009066echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009067echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
9068case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009069 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009070#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009071_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009072
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009073 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009074echo "${ECHO_T}yes" >&6
9075 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009076 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009077#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009078_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009079
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009080 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009081echo "${ECHO_T}no (default)" >&6
9082 ;;
9083esac
9084
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009085case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009086 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009087 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009088#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009089_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009090
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009091 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009092 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009093#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009094_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009095
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009096 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009097echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
9098 ;;
9099esac
9100
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009101case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009102 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009103 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009104#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009105_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009106
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009107 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009108 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009109#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009110_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009111
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009112 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009113echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
9114 ;;
9115esac
9116
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009117
9118
9119
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009120if test "$build" = "$host"; then
9121 ac_cross_compile=
9122else
Benny Prijono5b818b22006-09-17 22:58:51 +00009123 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009124fi
9125ac_linux_poll=select
9126
9127ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009128
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009129
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009130case $target in
9131 *rtems*)
9132 ac_main_obj=main_rtems.o
9133 ;;
9134 *)
9135 ac_main_obj=main.o
9136 ;;
9137esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009138
9139cat >confcache <<\_ACEOF
9140# This file is a shell script that caches the results of configure
9141# tests run on this system so they can be shared between configure
9142# scripts and configure runs, see configure's option --config-cache.
9143# It is not useful on other systems. If it contains results you don't
9144# want to keep, you may remove or edit it.
9145#
9146# config.status only pays attention to the cache file if you give it
9147# the --recheck option to rerun configure.
9148#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009149# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009150# loading this file, other *unset* `ac_cv_foo' will be assigned the
9151# following values.
9152
9153_ACEOF
9154
9155# The following way of writing the cache mishandles newlines in values,
9156# but we know of no workaround that is simple, portable, and efficient.
9157# So, don't put newlines in cache variables' values.
9158# Ultrix sh set writes to stderr and can't be redirected directly,
9159# and sets the high bit in the cache file unless we assign to the vars.
9160{
9161 (set) 2>&1 |
9162 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9163 *ac_space=\ *)
9164 # `set' does not quote correctly, so add quotes (double-quote
9165 # substitution turns \\\\ into \\, and sed turns \\ into \).
9166 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009167 "s/'/'\\\\''/g;
9168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009169 ;;
9170 *)
9171 # `set' quotes correctly as required by POSIX, so do not add quotes.
9172 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009173 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009174 ;;
9175 esac;
9176} |
9177 sed '
9178 t clear
9179 : clear
9180 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9181 t end
9182 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9183 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009184if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009185 if test -w $cache_file; then
9186 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9187 cat confcache >$cache_file
9188 else
9189 echo "not updating unwritable cache $cache_file"
9190 fi
9191fi
9192rm -f confcache
9193
9194test "x$prefix" = xNONE && prefix=$ac_default_prefix
9195# Let make expand exec_prefix.
9196test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9197
9198# VPATH may cause trouble with some makes, so we remove $(srcdir),
9199# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9200# trailing colons and then remove the whole line if VPATH becomes empty
9201# (actually we leave an empty line to preserve line numbers).
9202if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009203 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009204s/:*\$(srcdir):*/:/;
9205s/:*\${srcdir}:*/:/;
9206s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009207s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009208s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009209s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009210}'
9211fi
9212
9213DEFS=-DHAVE_CONFIG_H
9214
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009215ac_libobjs=
9216ac_ltlibobjs=
9217for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9218 # 1. Remove the extension, and $U if already installed.
9219 ac_i=`echo "$ac_i" |
9220 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9221 # 2. Add them.
9222 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9223 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9224done
9225LIBOBJS=$ac_libobjs
9226
9227LTLIBOBJS=$ac_ltlibobjs
9228
9229
9230
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009231: ${CONFIG_STATUS=./config.status}
9232ac_clean_files_save=$ac_clean_files
9233ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009234{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009235echo "$as_me: creating $CONFIG_STATUS" >&6;}
9236cat >$CONFIG_STATUS <<_ACEOF
9237#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009238# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009239# Run this file to recreate the current configuration.
9240# Compiler output produced by configure, useful for debugging
9241# configure, is in config.log if it exists.
9242
9243debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009244ac_cs_recheck=false
9245ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009246SHELL=\${CONFIG_SHELL-$SHELL}
9247_ACEOF
9248
9249cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009250## --------------------- ##
9251## M4sh Initialization. ##
9252## --------------------- ##
9253
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009254# Be Bourne compatible
9255if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9256 emulate sh
9257 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009258 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9259 # is contrary to our usage. Disable this feature.
9260 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009261elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9262 set -o posix
9263fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009264DUALCASE=1; export DUALCASE # for MKS sh
9265
9266# Support unset when possible.
9267if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9268 as_unset=unset
9269else
9270 as_unset=false
9271fi
9272
9273
9274# Work around bugs in pre-3.0 UWIN ksh.
9275$as_unset ENV MAIL MAILPATH
9276PS1='$ '
9277PS2='> '
9278PS4='+ '
9279
9280# NLS nuisances.
9281for as_var in \
9282 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9283 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9284 LC_TELEPHONE LC_TIME
9285do
9286 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9287 eval $as_var=C; export $as_var
9288 else
9289 $as_unset $as_var
9290 fi
9291done
9292
9293# Required to use basename.
9294if expr a : '\(a\)' >/dev/null 2>&1; then
9295 as_expr=expr
9296else
9297 as_expr=false
9298fi
9299
9300if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9301 as_basename=basename
9302else
9303 as_basename=false
9304fi
9305
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009306
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009307# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009308as_me=`$as_basename "$0" ||
9309$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9310 X"$0" : 'X\(//\)$' \| \
9311 X"$0" : 'X\(/\)$' \| \
9312 . : '\(.\)' 2>/dev/null ||
9313echo X/"$0" |
9314 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9315 /^X\/\(\/\/\)$/{ s//\1/; q; }
9316 /^X\/\(\/\).*/{ s//\1/; q; }
9317 s/.*/./; q'`
9318
9319
9320# PATH needs CR, and LINENO needs CR and PATH.
9321# Avoid depending upon Character Ranges.
9322as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9323as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9324as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9325as_cr_digits='0123456789'
9326as_cr_alnum=$as_cr_Letters$as_cr_digits
9327
9328# The user is always right.
9329if test "${PATH_SEPARATOR+set}" != set; then
9330 echo "#! /bin/sh" >conf$$.sh
9331 echo "exit 0" >>conf$$.sh
9332 chmod +x conf$$.sh
9333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9334 PATH_SEPARATOR=';'
9335 else
9336 PATH_SEPARATOR=:
9337 fi
9338 rm -f conf$$.sh
9339fi
9340
9341
9342 as_lineno_1=$LINENO
9343 as_lineno_2=$LINENO
9344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9345 test "x$as_lineno_1" != "x$as_lineno_2" &&
9346 test "x$as_lineno_3" = "x$as_lineno_2" || {
9347 # Find who we are. Look in the path if we contain no path at all
9348 # relative or not.
9349 case $0 in
9350 *[\\/]* ) as_myself=$0 ;;
9351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352for as_dir in $PATH
9353do
9354 IFS=$as_save_IFS
9355 test -z "$as_dir" && as_dir=.
9356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9357done
9358
9359 ;;
9360 esac
9361 # We did not find ourselves, most probably we were run as `sh COMMAND'
9362 # in which case we are not to be found in the path.
9363 if test "x$as_myself" = x; then
9364 as_myself=$0
9365 fi
9366 if test ! -f "$as_myself"; then
9367 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9368echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9369 { (exit 1); exit 1; }; }
9370 fi
9371 case $CONFIG_SHELL in
9372 '')
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9375do
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for as_base in sh bash ksh sh5; do
9379 case $as_dir in
9380 /*)
9381 if ("$as_dir/$as_base" -c '
9382 as_lineno_1=$LINENO
9383 as_lineno_2=$LINENO
9384 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9385 test "x$as_lineno_1" != "x$as_lineno_2" &&
9386 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9387 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9388 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9389 CONFIG_SHELL=$as_dir/$as_base
9390 export CONFIG_SHELL
9391 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9392 fi;;
9393 esac
9394 done
9395done
9396;;
9397 esac
9398
9399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9400 # uniformly replaced by the line number. The first 'sed' inserts a
9401 # line-number line before each line; the second 'sed' does the real
9402 # work. The second script uses 'N' to pair each line-number line
9403 # with the numbered line, and appends trailing '-' during
9404 # substitution so that $LINENO is not a special case at line end.
9405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9406 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9407 sed '=' <$as_myself |
9408 sed '
9409 N
9410 s,$,-,
9411 : loop
9412 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9413 t loop
9414 s,-$,,
9415 s,^['$as_cr_digits']*\n,,
9416 ' >$as_me.lineno &&
9417 chmod +x $as_me.lineno ||
9418 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9419echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9420 { (exit 1); exit 1; }; }
9421
9422 # Don't try to exec as it changes $[0], causing all sort of problems
9423 # (the dirname of $[0] is not the place where we might find the
9424 # original and so on. Autoconf is especially sensible to this).
9425 . ./$as_me.lineno
9426 # Exit status is that of the last command.
9427 exit
9428}
9429
9430
9431case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9432 *c*,-n*) ECHO_N= ECHO_C='
9433' ECHO_T=' ' ;;
9434 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9435 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9436esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009437
9438if expr a : '\(a\)' >/dev/null 2>&1; then
9439 as_expr=expr
9440else
9441 as_expr=false
9442fi
9443
9444rm -f conf$$ conf$$.exe conf$$.file
9445echo >conf$$.file
9446if ln -s conf$$.file conf$$ 2>/dev/null; then
9447 # We could just check for DJGPP; but this test a) works b) is more generic
9448 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9449 if test -f conf$$.exe; then
9450 # Don't use ln at all; we don't have any links
9451 as_ln_s='cp -p'
9452 else
9453 as_ln_s='ln -s'
9454 fi
9455elif ln conf$$.file conf$$ 2>/dev/null; then
9456 as_ln_s=ln
9457else
9458 as_ln_s='cp -p'
9459fi
9460rm -f conf$$ conf$$.exe conf$$.file
9461
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009462if mkdir -p . 2>/dev/null; then
9463 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +00009464else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009465 test -d ./-p && rmdir ./-p
9466 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00009467fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009468
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009469as_executable_p="test -f"
9470
9471# Sed expression to map a string onto a valid CPP name.
9472as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9473
9474# Sed expression to map a string onto a valid variable name.
9475as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9476
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009477
9478# IFS
9479# We need space, tab and new line, in precisely that order.
9480as_nl='
9481'
9482IFS=" $as_nl"
9483
9484# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009485$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009486
9487exec 6>&1
9488
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009489# Open the log real soon, to keep \$[0] and so on meaningful, and to
9490# report actual input values of CONFIG_FILES etc. instead of their
9491# values after options handling. Logging --version etc. is OK.
9492exec 5>>config.log
9493{
9494 echo
9495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9496## Running $as_me. ##
9497_ASBOX
9498} >&5
9499cat >&5 <<_CSEOF
9500
Benny Prijonoce1db762007-02-14 02:21:08 +00009501This file was extended by pjproject $as_me 0.5.10, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009502generated by GNU Autoconf 2.59. Invocation command line was
9503
9504 CONFIG_FILES = $CONFIG_FILES
9505 CONFIG_HEADERS = $CONFIG_HEADERS
9506 CONFIG_LINKS = $CONFIG_LINKS
9507 CONFIG_COMMANDS = $CONFIG_COMMANDS
9508 $ $0 $@
9509
9510_CSEOF
9511echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9512echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009513_ACEOF
9514
9515# Files that config.status was made for.
9516if test -n "$ac_config_files"; then
9517 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9518fi
9519
9520if test -n "$ac_config_headers"; then
9521 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9522fi
9523
9524if test -n "$ac_config_links"; then
9525 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9526fi
9527
9528if test -n "$ac_config_commands"; then
9529 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9530fi
9531
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009532cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009533
9534ac_cs_usage="\
9535\`$as_me' instantiates files from templates according to the
9536current configuration.
9537
9538Usage: $0 [OPTIONS] [FILE]...
9539
9540 -h, --help print this help, then exit
9541 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009542 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009543 -d, --debug don't remove temporary files
9544 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009545 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009546 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009547 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009548 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009549
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009550Configuration files:
9551$config_files
9552
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009553Configuration headers:
9554$config_headers
9555
9556Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009557_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009558
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009559cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009560ac_cs_version="\\
Benny Prijonoce1db762007-02-14 02:21:08 +00009561pjproject config.status 0.5.10
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009562configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009563 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9564
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009565Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009566This config.status script is free software; the Free Software Foundation
9567gives unlimited permission to copy, distribute and modify it."
9568srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009569_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009570
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009571cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009572# If no file are specified by the user, then we need to provide default
9573# value. By we need to know if files were specified by the user.
9574ac_need_defaults=:
9575while test $# != 0
9576do
9577 case $1 in
9578 --*=*)
9579 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9580 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009581 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009582 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009583 -*)
9584 ac_option=$1
9585 ac_optarg=$2
9586 ac_shift=shift
9587 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009588 *) # This is not an option, so the user has probably given explicit
9589 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009590 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009591 ac_need_defaults=false;;
9592 esac
9593
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009594 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009595 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009596_ACEOF
9597cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009598 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009599 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009600 --version | --vers* | -V )
9601 echo "$ac_cs_version"; exit 0 ;;
9602 --he | --h)
9603 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009604 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009605Try \`$0 --help' for more information." >&5
9606echo "$as_me: error: ambiguous option: $1
9607Try \`$0 --help' for more information." >&2;}
9608 { (exit 1); exit 1; }; };;
9609 --help | --hel | -h )
9610 echo "$ac_cs_usage"; exit 0 ;;
9611 --debug | --d* | -d )
9612 debug=: ;;
9613 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009614 $ac_shift
9615 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009616 ac_need_defaults=false;;
9617 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009618 $ac_shift
9619 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009620 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9623 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009624
9625 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009626 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009627Try \`$0 --help' for more information." >&5
9628echo "$as_me: error: unrecognized option: $1
9629Try \`$0 --help' for more information." >&2;}
9630 { (exit 1); exit 1; }; } ;;
9631
9632 *) ac_config_targets="$ac_config_targets $1" ;;
9633
9634 esac
9635 shift
9636done
9637
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009638ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009639
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009640if $ac_cs_silent; then
9641 exec 6>/dev/null
9642 ac_configure_extra_args="$ac_configure_extra_args --silent"
9643fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009644
9645_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009646cat >>$CONFIG_STATUS <<_ACEOF
9647if \$ac_cs_recheck; then
9648 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9649 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9650fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009651
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009652_ACEOF
9653
9654
9655
9656
9657
9658cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009659for ac_config_target in $ac_config_targets
9660do
9661 case "$ac_config_target" in
9662 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009663 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
9664 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
9665 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
9666 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
9667 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
9668 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod1872312007-04-09 20:54:12 +00009669 "third_party/build/portaudio/Makefile" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/Makefile" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009670 "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 +00009671 "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 +00009672 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
9673 "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 +00009674 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
9675 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009676echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9677 { (exit 1); exit 1; }; };;
9678 esac
9679done
9680
9681# If the user did not use the arguments to specify the items to instantiate,
9682# then the envvar interface is used. Set only those that are not.
9683# We use the long form for the default assignment because of an extremely
9684# bizarre bug on SunOS 4.1.3.
9685if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009687 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9688fi
9689
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009690# Have a temporary directory for convenience. Make it in the build tree
9691# simply because there is no reason to put it here, and in addition,
9692# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009693# Create a temporary directory, and hook for its removal unless debugging.
9694$debug ||
9695{
9696 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9697 trap '{ (exit 1); exit 1; }' 1 2 13 15
9698}
9699
9700# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009701
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009702{
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009703 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009704 test -n "$tmp" && test -d "$tmp"
9705} ||
9706{
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009707 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009708 (umask 077 && mkdir $tmp)
9709} ||
9710{
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009711 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009712 { (exit 1); exit 1; }
9713}
9714
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009715_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009716
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009717cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009718
9719#
9720# CONFIG_FILES section.
9721#
9722
9723# No need to generate the scripts if there are no CONFIG_FILES.
9724# This happens for instance when ./config.status config.h
9725if test -n "\$CONFIG_FILES"; then
9726 # Protect against being on the right side of a sed subst in config.status.
9727 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9728 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9729s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009730s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9731s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9732s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9733s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9734s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9735s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009736s,@exec_prefix@,$exec_prefix,;t t
9737s,@prefix@,$prefix,;t t
9738s,@program_transform_name@,$program_transform_name,;t t
9739s,@bindir@,$bindir,;t t
9740s,@sbindir@,$sbindir,;t t
9741s,@libexecdir@,$libexecdir,;t t
9742s,@datadir@,$datadir,;t t
9743s,@sysconfdir@,$sysconfdir,;t t
9744s,@sharedstatedir@,$sharedstatedir,;t t
9745s,@localstatedir@,$localstatedir,;t t
9746s,@libdir@,$libdir,;t t
9747s,@includedir@,$includedir,;t t
9748s,@oldincludedir@,$oldincludedir,;t t
9749s,@infodir@,$infodir,;t t
9750s,@mandir@,$mandir,;t t
9751s,@build_alias@,$build_alias,;t t
9752s,@host_alias@,$host_alias,;t t
9753s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009754s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009755s,@ECHO_C@,$ECHO_C,;t t
9756s,@ECHO_N@,$ECHO_N,;t t
9757s,@ECHO_T@,$ECHO_T,;t t
9758s,@LIBS@,$LIBS,;t t
9759s,@build@,$build,;t t
9760s,@build_cpu@,$build_cpu,;t t
9761s,@build_vendor@,$build_vendor,;t t
9762s,@build_os@,$build_os,;t t
9763s,@host@,$host,;t t
9764s,@host_cpu@,$host_cpu,;t t
9765s,@host_vendor@,$host_vendor,;t t
9766s,@host_os@,$host_os,;t t
9767s,@target@,$target,;t t
9768s,@target_cpu@,$target_cpu,;t t
9769s,@target_vendor@,$target_vendor,;t t
9770s,@target_os@,$target_os,;t t
9771s,@CC@,$CC,;t t
9772s,@CFLAGS@,$CFLAGS,;t t
9773s,@LDFLAGS@,$LDFLAGS,;t t
9774s,@CPPFLAGS@,$CPPFLAGS,;t t
9775s,@ac_ct_CC@,$ac_ct_CC,;t t
9776s,@EXEEXT@,$EXEEXT,;t t
9777s,@OBJEXT@,$OBJEXT,;t t
9778s,@CXX@,$CXX,;t t
9779s,@CXXFLAGS@,$CXXFLAGS,;t t
9780s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +00009781s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009782s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009783s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009784s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009785s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +00009786s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009787s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
9788s,@ac_no_small_filter@,$ac_no_small_filter,;t t
9789s,@ac_no_large_filter@,$ac_no_large_filter,;t t
9790s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t
9791s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
9792s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
9793s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
9794s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
9795s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
9796s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009797s,@ac_no_ssl@,$ac_no_ssl,;t t
9798s,@openssl_h_present@,$openssl_h_present,;t t
9799s,@libssl_present@,$libssl_present,;t t
9800s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009801s,@ac_cross_compile@,$ac_cross_compile,;t t
9802s,@ac_linux_poll@,$ac_linux_poll,;t t
9803s,@ac_host@,$ac_host,;t t
9804s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009805s,@LIBOBJS@,$LIBOBJS,;t t
9806s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009807CEOF
9808
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009809_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009810
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009811 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009812 # Split the substitutions into bite-sized pieces for seds with
9813 # small command number limits, like on Digital OSF/1 and HP-UX.
9814 ac_max_sed_lines=48
9815 ac_sed_frag=1 # Number of current file.
9816 ac_beg=1 # First line for current file.
9817 ac_end=$ac_max_sed_lines # Line after last line for current file.
9818 ac_more_lines=:
9819 ac_sed_cmds=
9820 while $ac_more_lines; do
9821 if test $ac_beg -gt 1; then
9822 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9823 else
9824 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9825 fi
9826 if test ! -s $tmp/subs.frag; then
9827 ac_more_lines=false
9828 else
9829 # The purpose of the label and of the branching condition is to
9830 # speed up the sed processing (if there are no `@' at all, there
9831 # is no need to browse any of the substitutions).
9832 # These are the two extra sed commands mentioned above.
9833 (echo ':t
9834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9835 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009836 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009837 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009838 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009839 fi
9840 ac_sed_frag=`expr $ac_sed_frag + 1`
9841 ac_beg=$ac_end
9842 ac_end=`expr $ac_end + $ac_max_sed_lines`
9843 fi
9844 done
9845 if test -z "$ac_sed_cmds"; then
9846 ac_sed_cmds=cat
9847 fi
9848fi # test -n "$CONFIG_FILES"
9849
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009850_ACEOF
9851cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009852for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9854 case $ac_file in
9855 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009856 cat >$tmp/stdin
9857 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9858 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009859 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009861 * ) ac_file_in=$ac_file.in ;;
9862 esac
9863
9864 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009865 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9866$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9867 X"$ac_file" : 'X\(//\)[^/]' \| \
9868 X"$ac_file" : 'X\(//\)$' \| \
9869 X"$ac_file" : 'X\(/\)' \| \
9870 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009871echo X"$ac_file" |
9872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9874 /^X\(\/\/\)$/{ s//\1/; q; }
9875 /^X\(\/\).*/{ s//\1/; q; }
9876 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009877 { if $as_mkdir_p; then
9878 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009879 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009880 as_dir="$ac_dir"
9881 as_dirs=
9882 while test ! -d "$as_dir"; do
9883 as_dirs="$as_dir $as_dirs"
9884 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9886 X"$as_dir" : 'X\(//\)[^/]' \| \
9887 X"$as_dir" : 'X\(//\)$' \| \
9888 X"$as_dir" : 'X\(/\)' \| \
9889 . : '\(.\)' 2>/dev/null ||
9890echo X"$as_dir" |
9891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9893 /^X\(\/\/\)$/{ s//\1/; q; }
9894 /^X\(\/\).*/{ s//\1/; q; }
9895 s/.*/./; q'`
9896 done
9897 test ! -n "$as_dirs" || mkdir $as_dirs
9898 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9899echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9900 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009901
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009902 ac_builddir=.
9903
9904if test "$ac_dir" != .; then
9905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9906 # A "../" for each directory in $ac_dir_suffix.
9907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9908else
9909 ac_dir_suffix= ac_top_builddir=
9910fi
9911
9912case $srcdir in
9913 .) # No --srcdir option. We are building in place.
9914 ac_srcdir=.
9915 if test -z "$ac_top_builddir"; then
9916 ac_top_srcdir=.
9917 else
9918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9919 fi ;;
9920 [\\/]* | ?:[\\/]* ) # Absolute path.
9921 ac_srcdir=$srcdir$ac_dir_suffix;
9922 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009923 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9926esac
9927
9928# Do not use `cd foo && pwd` to compute absolute paths, because
9929# the directories may not exist.
9930case `pwd` in
9931.) ac_abs_builddir="$ac_dir";;
9932*)
9933 case "$ac_dir" in
9934 .) ac_abs_builddir=`pwd`;;
9935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9937 esac;;
9938esac
9939case $ac_abs_builddir in
9940.) ac_abs_top_builddir=${ac_top_builddir}.;;
9941*)
9942 case ${ac_top_builddir}. in
9943 .) ac_abs_top_builddir=$ac_abs_builddir;;
9944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9946 esac;;
9947esac
9948case $ac_abs_builddir in
9949.) ac_abs_srcdir=$ac_srcdir;;
9950*)
9951 case $ac_srcdir in
9952 .) ac_abs_srcdir=$ac_abs_builddir;;
9953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9955 esac;;
9956esac
9957case $ac_abs_builddir in
9958.) ac_abs_top_srcdir=$ac_top_srcdir;;
9959*)
9960 case $ac_top_srcdir in
9961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9964 esac;;
9965esac
9966
9967
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009968
9969 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009970 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009971echo "$as_me: creating $ac_file" >&6;}
9972 rm -f "$ac_file"
9973 fi
9974 # Let's still pretend it is `configure' which instantiates (i.e., don't
9975 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009976 # /* config.h. Generated by config.status. */
9977 if test x"$ac_file" = x-; then
9978 configure_input=
9979 else
9980 configure_input="$ac_file. "
9981 fi
9982 configure_input=$configure_input"Generated from `echo $ac_file_in |
9983 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009984
9985 # First look for the input files in the build tree, otherwise in the
9986 # src tree.
9987 ac_file_inputs=`IFS=:
9988 for f in $ac_file_in; do
9989 case $f in
9990 -) echo $tmp/stdin ;;
9991 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009992 # Absolute (can't be DOS-style, as IFS=:)
9993 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009994echo "$as_me: error: cannot find input file: $f" >&2;}
9995 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009996 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009997 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009998 if test -f "$f"; then
9999 # Build tree
10000 echo "$f"
10001 elif test -f "$srcdir/$f"; then
10002 # Source tree
10003 echo "$srcdir/$f"
10004 else
10005 # /dev/null tree
10006 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010007echo "$as_me: error: cannot find input file: $f" >&2;}
10008 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010009 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010010 esac
10011 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010012_ACEOF
10013cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010014 sed "$ac_vpsub
10015$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010016_ACEOF
10017cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010018:t
10019/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10020s,@configure_input@,$configure_input,;t t
10021s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010022s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010023s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010024s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10025s,@builddir@,$ac_builddir,;t t
10026s,@abs_builddir@,$ac_abs_builddir,;t t
10027s,@top_builddir@,$ac_top_builddir,;t t
10028s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010029" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10030 rm -f $tmp/stdin
10031 if test x"$ac_file" != x-; then
10032 mv $tmp/out $ac_file
10033 else
10034 cat $tmp/out
10035 rm -f $tmp/out
10036 fi
10037
10038done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010039_ACEOF
10040cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010041
10042#
10043# CONFIG_HEADER section.
10044#
10045
10046# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10047# NAME is the cpp macro being defined and VALUE is the value it is being given.
10048#
10049# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010050ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10051ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010052ac_dC=' '
10053ac_dD=',;t'
10054# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010055ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010056ac_uB='$,\1#\2define\3'
10057ac_uC=' '
10058ac_uD=',;t'
10059
10060for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10061 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10062 case $ac_file in
10063 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010064 cat >$tmp/stdin
10065 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10066 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010067 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010068 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010069 * ) ac_file_in=$ac_file.in ;;
10070 esac
10071
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010072 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010073echo "$as_me: creating $ac_file" >&6;}
10074
10075 # First look for the input files in the build tree, otherwise in the
10076 # src tree.
10077 ac_file_inputs=`IFS=:
10078 for f in $ac_file_in; do
10079 case $f in
10080 -) echo $tmp/stdin ;;
10081 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010082 # Absolute (can't be DOS-style, as IFS=:)
10083 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010084echo "$as_me: error: cannot find input file: $f" >&2;}
10085 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010086 # Do quote $f, to prevent DOS paths from being IFS'd.
10087 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010088 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010089 if test -f "$f"; then
10090 # Build tree
10091 echo "$f"
10092 elif test -f "$srcdir/$f"; then
10093 # Source tree
10094 echo "$srcdir/$f"
10095 else
10096 # /dev/null tree
10097 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010098echo "$as_me: error: cannot find input file: $f" >&2;}
10099 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010100 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010101 esac
10102 done` || { (exit 1); exit 1; }
10103 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010104 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010105
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010106_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010107
10108# Transform confdefs.h into two sed scripts, `conftest.defines' and
10109# `conftest.undefs', that substitutes the proper values into
10110# config.h.in to produce config.h. The first handles `#define'
10111# templates, and the second `#undef' templates.
10112# And first: Protect against being on the right side of a sed subst in
10113# config.status. Protect against being in an unquoted here document
10114# in config.status.
10115rm -f conftest.defines conftest.undefs
10116# Using a here document instead of a string reduces the quoting nightmare.
10117# Putting comments in sed scripts is not portable.
10118#
10119# `end' is used to avoid that the second main sed command (meant for
10120# 0-ary CPP macros) applies to n-ary macro definitions.
10121# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010122cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010123s/[\\&,]/\\&/g
10124s,[\\$`],\\&,g
10125t clear
10126: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010127s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010128t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010129s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010130: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010131_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010132# If some macros were called several times there might be several times
10133# the same #defines, which is useless. Nevertheless, we may not want to
10134# sort them, since we want the *last* AC-DEFINE to be honored.
10135uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10136sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10137rm -f confdef2sed.sed
10138
10139# This sed command replaces #undef with comments. This is necessary, for
10140# example, in the case of _POSIX_SOURCE, which is predefined and required
10141# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010142cat >>conftest.undefs <<\_ACEOF
10143s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10144_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010145
10146# Break up conftest.defines because some shells have a limit on the size
10147# of here documents, and old seds have small limits too (100 cmds).
10148echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010149echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010150echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10151echo ' :' >>$CONFIG_STATUS
10152rm -f conftest.tail
10153while grep . conftest.defines >/dev/null
10154do
10155 # Write a limited-size here document to $tmp/defines.sed.
10156 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10157 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010158 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010159 # Work around the forget-to-reset-the-flag bug.
10160 echo 't clr' >>$CONFIG_STATUS
10161 echo ': clr' >>$CONFIG_STATUS
10162 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10163 echo 'CEOF
10164 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10165 rm -f $tmp/in
10166 mv $tmp/out $tmp/in
10167' >>$CONFIG_STATUS
10168 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10169 rm -f conftest.defines
10170 mv conftest.tail conftest.defines
10171done
10172rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010173echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010174echo >>$CONFIG_STATUS
10175
10176# Break up conftest.undefs because some shells have a limit on the size
10177# of here documents, and old seds have small limits too (100 cmds).
10178echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10179rm -f conftest.tail
10180while grep . conftest.undefs >/dev/null
10181do
10182 # Write a limited-size here document to $tmp/undefs.sed.
10183 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10184 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010185 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010186 # Work around the forget-to-reset-the-flag bug.
10187 echo 't clr' >>$CONFIG_STATUS
10188 echo ': clr' >>$CONFIG_STATUS
10189 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10190 echo 'CEOF
10191 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10192 rm -f $tmp/in
10193 mv $tmp/out $tmp/in
10194' >>$CONFIG_STATUS
10195 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10196 rm -f conftest.undefs
10197 mv conftest.tail conftest.undefs
10198done
10199rm -f conftest.undefs
10200
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010201cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010202 # Let's still pretend it is `configure' which instantiates (i.e., don't
10203 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010204 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010205 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010206 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010207 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010208 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010209 fi
10210 cat $tmp/in >>$tmp/config.h
10211 rm -f $tmp/in
10212 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010213 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10214 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010215echo "$as_me: $ac_file is unchanged" >&6;}
10216 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010217 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10218$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10219 X"$ac_file" : 'X\(//\)[^/]' \| \
10220 X"$ac_file" : 'X\(//\)$' \| \
10221 X"$ac_file" : 'X\(/\)' \| \
10222 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010223echo X"$ac_file" |
10224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10226 /^X\(\/\/\)$/{ s//\1/; q; }
10227 /^X\(\/\).*/{ s//\1/; q; }
10228 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010229 { if $as_mkdir_p; then
10230 mkdir -p "$ac_dir"
10231 else
10232 as_dir="$ac_dir"
10233 as_dirs=
10234 while test ! -d "$as_dir"; do
10235 as_dirs="$as_dir $as_dirs"
10236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10237$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10238 X"$as_dir" : 'X\(//\)[^/]' \| \
10239 X"$as_dir" : 'X\(//\)$' \| \
10240 X"$as_dir" : 'X\(/\)' \| \
10241 . : '\(.\)' 2>/dev/null ||
10242echo X"$as_dir" |
10243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10245 /^X\(\/\/\)$/{ s//\1/; q; }
10246 /^X\(\/\).*/{ s//\1/; q; }
10247 s/.*/./; q'`
10248 done
10249 test ! -n "$as_dirs" || mkdir $as_dirs
10250 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10251echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10252 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010253
10254 rm -f $ac_file
10255 mv $tmp/config.h $ac_file
10256 fi
10257 else
10258 cat $tmp/config.h
10259 rm -f $tmp/config.h
10260 fi
10261done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010262_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010263
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010264cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010265
10266{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010267_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010268chmod +x $CONFIG_STATUS
10269ac_clean_files=$ac_clean_files_save
10270
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010271
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010272# configure is writing to config.log, and then calls config.status.
10273# config.status does its own redirection, appending to config.log.
10274# Unfortunately, on DOS this fails, as config.log is still kept open
10275# by configure, so config.status won't be able to write to it; its
10276# output is simply discarded. So we exec the FD to /dev/null,
10277# effectively closing config.log, so it can be properly (re)opened and
10278# appended to by config.status. When coming back to configure, we
10279# need to make the FD available again.
10280if test "$no_create" != yes; then
10281 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010282 ac_config_status_args=
10283 test "$silent" = yes &&
10284 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010285 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010287 exec 5>>config.log
10288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10289 # would make configure fail if this is the last instruction.
10290 $ac_cs_success || { (exit 1); exit 1; }
10291fi
10292
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010293