blob: ca8f5e43445a119605b831a9cc5274903d56b60a [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono27c98722007-04-09 21:28:15 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.6.0.
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 Prijono27c98722007-04-09 21:28:15 +0000270PACKAGE_VERSION='0.6.0'
271PACKAGE_STRING='pjproject 0.6.0'
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 Prijono27c98722007-04-09 21:28:15 +0000788\`configure' configures pjproject 0.6.0 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 Prijono27c98722007-04-09 21:28:15 +0000850 short | recursive ) echo "Configuration of pjproject 0.6.0:";;
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 Prijono27c98722007-04-09 21:28:15 +0000981pjproject configure 0.6.0
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 Prijono27c98722007-04-09 21:28:15 +0000995It was created by pjproject $as_me 0.6.0, 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 Prijono27c98722007-04-09 21:28:15 +00008378if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8379 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8380echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8381if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383fi
8384echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8385echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8386else
8387 # Is the header compilable?
8388echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
8389echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
8390cat >conftest.$ac_ext <<_ACEOF
8391/* confdefs.h. */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h. */
8396$ac_includes_default
8397#include <sys/soundcard.h>
8398_ACEOF
8399rm -f conftest.$ac_objext
8400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_header_compiler=yes
8422else
8423 echo "$as_me: failed program was:" >&5
8424sed 's/^/| /' conftest.$ac_ext >&5
8425
8426ac_header_compiler=no
8427fi
8428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8430echo "${ECHO_T}$ac_header_compiler" >&6
8431
8432# Is the header present?
8433echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
8434echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
8435cat >conftest.$ac_ext <<_ACEOF
8436/* confdefs.h. */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h. */
8441#include <sys/soundcard.h>
8442_ACEOF
8443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } >/dev/null; then
8451 if test -s conftest.err; then
8452 ac_cpp_err=$ac_c_preproc_warn_flag
8453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8454 else
8455 ac_cpp_err=
8456 fi
8457else
8458 ac_cpp_err=yes
8459fi
8460if test -z "$ac_cpp_err"; then
8461 ac_header_preproc=yes
8462else
8463 echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 ac_header_preproc=no
8467fi
8468rm -f conftest.err conftest.$ac_ext
8469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470echo "${ECHO_T}$ac_header_preproc" >&6
8471
8472# So? What about this header?
8473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8474 yes:no: )
8475 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8476echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
8478echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
8479 ac_header_preproc=yes
8480 ;;
8481 no:yes:* )
8482 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
8483echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
8485echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
8487echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8489echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
8491echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
8493echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
8494 (
8495 cat <<\_ASBOX
8496## ------------------------------------ ##
8497## Report this to the pjproject lists. ##
8498## ------------------------------------ ##
8499_ASBOX
8500 ) |
8501 sed "s/^/$as_me: WARNING: /" >&2
8502 ;;
8503esac
8504echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8505echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8506if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509 ac_cv_header_sys_soundcard_h=$ac_header_preproc
8510fi
8511echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8512echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8513
8514fi
8515if test $ac_cv_header_sys_soundcard_h = yes; then
8516 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
8517fi
8518
8519
8520if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8521 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8522echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8523if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525fi
8526echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8527echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8528else
8529 # Is the header compilable?
8530echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
8531echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
8532cat >conftest.$ac_ext <<_ACEOF
8533/* confdefs.h. */
8534_ACEOF
8535cat confdefs.h >>conftest.$ac_ext
8536cat >>conftest.$ac_ext <<_ACEOF
8537/* end confdefs.h. */
8538$ac_includes_default
8539#include <linux/soundcard.h>
8540_ACEOF
8541rm -f conftest.$ac_objext
8542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8543 (eval $ac_compile) 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag"
8551 || test ! -s conftest.err'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest.$ac_objext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 ac_header_compiler=yes
8564else
8565 echo "$as_me: failed program was:" >&5
8566sed 's/^/| /' conftest.$ac_ext >&5
8567
8568ac_header_compiler=no
8569fi
8570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8572echo "${ECHO_T}$ac_header_compiler" >&6
8573
8574# Is the header present?
8575echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
8576echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
8577cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583#include <linux/soundcard.h>
8584_ACEOF
8585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } >/dev/null; then
8593 if test -s conftest.err; then
8594 ac_cpp_err=$ac_c_preproc_warn_flag
8595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8596 else
8597 ac_cpp_err=
8598 fi
8599else
8600 ac_cpp_err=yes
8601fi
8602if test -z "$ac_cpp_err"; then
8603 ac_header_preproc=yes
8604else
8605 echo "$as_me: failed program was:" >&5
8606sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 ac_header_preproc=no
8609fi
8610rm -f conftest.err conftest.$ac_ext
8611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8612echo "${ECHO_T}$ac_header_preproc" >&6
8613
8614# So? What about this header?
8615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8616 yes:no: )
8617 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8618echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
8620echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
8621 ac_header_preproc=yes
8622 ;;
8623 no:yes:* )
8624 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
8625echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
8627echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
8629echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8631echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
8633echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
8635echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
8636 (
8637 cat <<\_ASBOX
8638## ------------------------------------ ##
8639## Report this to the pjproject lists. ##
8640## ------------------------------------ ##
8641_ASBOX
8642 ) |
8643 sed "s/^/$as_me: WARNING: /" >&2
8644 ;;
8645esac
8646echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8647echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8648if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650else
8651 ac_cv_header_linux_soundcard_h=$ac_header_preproc
8652fi
8653echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8654echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8655
8656fi
8657if test $ac_cv_header_linux_soundcard_h = yes; then
8658 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
8659fi
8660
8661
8662if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8663 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
8664echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
8665if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667fi
8668echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
8669echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
8670else
8671 # Is the header compilable?
8672echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
8673echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
8674cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680$ac_includes_default
8681#include <machine/soundcard.h>
8682_ACEOF
8683rm -f conftest.$ac_objext
8684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8685 (eval $ac_compile) 2>conftest.er1
8686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -z "$ac_c_werror_flag"
8693 || test ! -s conftest.err'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest.$ac_objext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_header_compiler=yes
8706else
8707 echo "$as_me: failed program was:" >&5
8708sed 's/^/| /' conftest.$ac_ext >&5
8709
8710ac_header_compiler=no
8711fi
8712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714echo "${ECHO_T}$ac_header_compiler" >&6
8715
8716# Is the header present?
8717echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
8718echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
8719cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h. */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h. */
8725#include <machine/soundcard.h>
8726_ACEOF
8727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } >/dev/null; then
8735 if test -s conftest.err; then
8736 ac_cpp_err=$ac_c_preproc_warn_flag
8737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8738 else
8739 ac_cpp_err=
8740 fi
8741else
8742 ac_cpp_err=yes
8743fi
8744if test -z "$ac_cpp_err"; then
8745 ac_header_preproc=yes
8746else
8747 echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_header_preproc=no
8751fi
8752rm -f conftest.err conftest.$ac_ext
8753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8754echo "${ECHO_T}$ac_header_preproc" >&6
8755
8756# So? What about this header?
8757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8758 yes:no: )
8759 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8760echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
8762echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
8763 ac_header_preproc=yes
8764 ;;
8765 no:yes:* )
8766 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
8767echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
8769echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
8771echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8773echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
8775echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
8777echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
8778 (
8779 cat <<\_ASBOX
8780## ------------------------------------ ##
8781## Report this to the pjproject lists. ##
8782## ------------------------------------ ##
8783_ASBOX
8784 ) |
8785 sed "s/^/$as_me: WARNING: /" >&2
8786 ;;
8787esac
8788echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
8789echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
8790if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793 ac_cv_header_machine_soundcard_h=$ac_header_preproc
8794fi
8795echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
8796echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
8797
8798fi
8799if test $ac_cv_header_machine_soundcard_h = yes; then
8800 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
8801fi
8802
8803
8804
Benny Prijono1d971622006-09-10 22:27:40 +00008805if test "$enable_sound" = "no"; then
8806 true;
8807else
8808 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00008809 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00008810 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
8811 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00008812 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00008813 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
8814 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008815 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00008816echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
8817 else
8818 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008819 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00008820echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00008821 fi
Benny Prijonob466e232006-09-10 08:53:59 +00008822 ;;
8823 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008824 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008825 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008826echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
8827 ;;
8828 *rtems*)
8829 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008830 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008831echo "${ECHO_T}Checking sound device backend... null sound" >&6
8832 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008833 *)
8834 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008835 if test "${ac_cv_header_alsa_version_h+set}" = set; then
8836 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008837echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
8838if test "${ac_cv_header_alsa_version_h+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008840fi
8841echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
8842echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008843else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008844 # Is the header compilable?
8845echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
8846echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
8847cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h. */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h. */
8853$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008854#include <alsa/version.h>
8855_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008856rm -f conftest.$ac_objext
8857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008859 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008860 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008861 rm -f conftest.er1
8862 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest.$ac_objext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_header_compiler=yes
8879else
8880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
8883ac_header_compiler=no
8884fi
8885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8887echo "${ECHO_T}$ac_header_compiler" >&6
8888
8889# Is the header present?
8890echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
8891echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
8892cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h. */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h. */
8898#include <alsa/version.h>
8899_ACEOF
8900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008907 (exit $ac_status); } >/dev/null; then
8908 if test -s conftest.err; then
8909 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008911 else
8912 ac_cpp_err=
8913 fi
8914else
8915 ac_cpp_err=yes
8916fi
8917if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008918 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008919else
8920 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008921sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008924fi
8925rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8927echo "${ECHO_T}$ac_header_preproc" >&6
8928
8929# So? What about this header?
8930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8931 yes:no: )
8932 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8933echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
8935echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
8936 ac_header_preproc=yes
8937 ;;
8938 no:yes:* )
8939 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
8940echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
8942echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
8944echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
8945 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
8946echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8947 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
8948echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
8949 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
8950echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
8951 (
8952 cat <<\_ASBOX
8953## ------------------------------------ ##
8954## Report this to the pjproject lists. ##
8955## ------------------------------------ ##
8956_ASBOX
8957 ) |
8958 sed "s/^/$as_me: WARNING: /" >&2
8959 ;;
8960esac
8961echo "$as_me:$LINENO: checking for alsa/version.h" >&5
8962echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
8963if test "${ac_cv_header_alsa_version_h+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008967fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008968echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008969echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008970
8971fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008972if test $ac_cv_header_alsa_version_h = yes; then
8973 ac_pa_use_alsa=1
8974
8975 LIBS="$LIBS -lasound"
8976
8977else
8978 ac_pa_use_alsa=0
8979
8980fi
8981
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008982
8983 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008984echo "${ECHO_T}Checking sound device backend... unix" >&6
8985 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00008986 esac
8987fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008988
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008989
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008990# Check whether --enable-small-filter or --disable-small-filter was given.
8991if test "${enable_small_filter+set}" = set; then
8992 enableval="$enable_small_filter"
8993 if test "$enable_small_filter" = "no"; then
8994 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008995 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008996echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
8997 fi
8998else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008999 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009000echo "${ECHO_T}Checking if small filter is disabled... no" >&6
9001fi;
9002
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009003
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009004# Check whether --enable-large-filter or --disable-large-filter was given.
9005if test "${enable_large_filter+set}" = set; then
9006 enableval="$enable_large_filter"
9007 if test "$enable_large_filter" = "no"; then
9008 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009009 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009010echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
9011 fi
9012else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009013 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009014echo "${ECHO_T}Checking if large filter is disabled... no" >&6
9015fi;
9016
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009017
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009018# Check whether --enable-g711-plc or --disable-g711-plc was given.
9019if test "${enable_g711_plc+set}" = set; then
9020 enableval="$enable_g711_plc"
9021 if test "$enable_g711_plc" = "no"; then
9022 ac_no_g711_plc='-DPJMEDIA_HAS_G711_PLC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009023 echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009024echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...yes" >&6
9025 fi
9026else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009027 echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009028echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...no" >&6
9029fi;
9030
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009031
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009032# Check whether --enable-speex-aec or --disable-speex-aec was given.
9033if test "${enable_speex_aec+set}" = set; then
9034 enableval="$enable_speex_aec"
9035 if test "$enable_speex_aec" = "no"; then
9036 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009037 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009038echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
9039 fi
9040else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009041 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009042echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
9043fi;
9044
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009045
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009046# Check whether --enable-g711-codec or --disable-g711-codec was given.
9047if test "${enable_g711_codec+set}" = set; then
9048 enableval="$enable_g711_codec"
9049 if test "$enable_g711_codec" = "no"; then
9050 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009051 cat >>confdefs.h <<\_ACEOF
9052#define PJMEDIA_HAS_G711_CODEC 0
9053_ACEOF
9054
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009055 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009056echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
9057 fi
9058else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009059 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009060echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
9061fi;
9062
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009063
9064
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009065# Check whether --enable-l16-codec or --disable-l16-codec was given.
9066if test "${enable_l16_codec+set}" = set; then
9067 enableval="$enable_l16_codec"
9068 if test "$enable_l16_codec" = "no"; then
9069 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009070 cat >>confdefs.h <<\_ACEOF
9071#define PJMEDIA_HAS_L16_CODEC 0
9072_ACEOF
9073
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009074 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009075echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
9076 fi
9077else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009078 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00009079echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009080fi;
9081
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009082
9083
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009084# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
9085if test "${enable_gsm_codec+set}" = set; then
9086 enableval="$enable_gsm_codec"
9087 if test "$enable_gsm_codec" = "no"; then
9088 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009089 cat >>confdefs.h <<\_ACEOF
9090#define PJMEDIA_HAS_GSM_CODEC 0
9091_ACEOF
9092
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009093 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009094echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
9095 fi
9096else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009097 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009098echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
9099fi;
9100
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009101
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009102# Check whether --enable-speex-codec or --disable-speex-codec was given.
9103if test "${enable_speex_codec+set}" = set; then
9104 enableval="$enable_speex_codec"
9105 if test "$enable_speex_codec" = "no"; then
9106 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009107 cat >>confdefs.h <<\_ACEOF
9108#define PJMEDIA_HAS_SPEEX_CODEC 0
9109_ACEOF
9110
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009111 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009112echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
9113 fi
9114else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009115 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009116echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
9117fi;
9118
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009119
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009120# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
9121if test "${enable_ilbc_codec+set}" = set; then
9122 enableval="$enable_ilbc_codec"
9123 if test "$enable_ilbc_codec" = "no"; then
9124 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009125 cat >>confdefs.h <<\_ACEOF
9126#define PJMEDIA_HAS_ILBC_CODEC 0
9127_ACEOF
9128
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009129 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009130echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
9131 fi
9132else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009133 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009134echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
9135fi;
9136
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009137
9138
9139
9140
9141# Check whether --enable-ssl or --disable-ssl was given.
9142if test "${enable_ssl+set}" = set; then
9143 enableval="$enable_ssl"
9144
9145 if test "$enable_ssl" = "no"; then
9146 ac_no_ssl=1
9147 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
9148echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
9149 fi
9150
9151else
9152
9153 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
9154echo "${ECHO_T}checking for OpenSSL installations.." >&6
9155
9156
9157
9158 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9159 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9160echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9161if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163fi
9164echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9165echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9166else
9167 # Is the header compilable?
9168echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9169echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9170cat >conftest.$ac_ext <<_ACEOF
9171/* confdefs.h. */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h. */
9176$ac_includes_default
9177#include <openssl/ssl.h>
9178_ACEOF
9179rm -f conftest.$ac_objext
9180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9181 (eval $ac_compile) 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -z "$ac_c_werror_flag"
9189 || test ! -s conftest.err'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; } &&
9195 { ac_try='test -s conftest.$ac_objext'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9201 ac_header_compiler=yes
9202else
9203 echo "$as_me: failed program was:" >&5
9204sed 's/^/| /' conftest.$ac_ext >&5
9205
9206ac_header_compiler=no
9207fi
9208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9210echo "${ECHO_T}$ac_header_compiler" >&6
9211
9212# Is the header present?
9213echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9214echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9215cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221#include <openssl/ssl.h>
9222_ACEOF
9223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } >/dev/null; then
9231 if test -s conftest.err; then
9232 ac_cpp_err=$ac_c_preproc_warn_flag
9233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9234 else
9235 ac_cpp_err=
9236 fi
9237else
9238 ac_cpp_err=yes
9239fi
9240if test -z "$ac_cpp_err"; then
9241 ac_header_preproc=yes
9242else
9243 echo "$as_me: failed program was:" >&5
9244sed 's/^/| /' conftest.$ac_ext >&5
9245
9246 ac_header_preproc=no
9247fi
9248rm -f conftest.err conftest.$ac_ext
9249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9250echo "${ECHO_T}$ac_header_preproc" >&6
9251
9252# So? What about this header?
9253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9254 yes:no: )
9255 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9256echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9258echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9259 ac_header_preproc=yes
9260 ;;
9261 no:yes:* )
9262 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9263echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9265echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9267echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9269echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9271echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9273echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9274 (
9275 cat <<\_ASBOX
9276## ------------------------------------ ##
9277## Report this to the pjproject lists. ##
9278## ------------------------------------ ##
9279_ASBOX
9280 ) |
9281 sed "s/^/$as_me: WARNING: /" >&2
9282 ;;
9283esac
9284echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9285echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9286if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9290fi
9291echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9292echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9293
9294fi
9295if test $ac_cv_header_openssl_ssl_h = yes; then
9296 openssl_h_present=1
9297fi
9298
9299
9300 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9301echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
9302if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304else
9305 ac_check_lib_save_LIBS=$LIBS
9306LIBS="-lssl $LIBS"
9307cat >conftest.$ac_ext <<_ACEOF
9308/* confdefs.h. */
9309_ACEOF
9310cat confdefs.h >>conftest.$ac_ext
9311cat >>conftest.$ac_ext <<_ACEOF
9312/* end confdefs.h. */
9313
9314/* Override any gcc2 internal prototype to avoid an error. */
9315#ifdef __cplusplus
9316extern "C"
9317#endif
9318/* We use char because int might match the return type of a gcc2
9319 builtin and then its argument prototype would still apply. */
9320char SSL_library_init ();
9321int
9322main ()
9323{
9324SSL_library_init ();
9325 ;
9326 return 0;
9327}
9328_ACEOF
9329rm -f conftest.$ac_objext conftest$ac_exeext
9330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>conftest.er1
9332 ac_status=$?
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
9338 { ac_try='test -z "$ac_c_werror_flag"
9339 || test ! -s conftest.err'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } &&
9345 { ac_try='test -s conftest$ac_exeext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_lib_ssl_SSL_library_init=yes
9352else
9353 echo "$as_me: failed program was:" >&5
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
9356ac_cv_lib_ssl_SSL_library_init=no
9357fi
9358rm -f conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360LIBS=$ac_check_lib_save_LIBS
9361fi
9362echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9363echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
9364if test $ac_cv_lib_ssl_SSL_library_init = yes; then
9365 libssl_present=1 && LIBS="$LIBS -lssl"
9366fi
9367
9368 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
9369echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
9370if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9372else
9373 ac_check_lib_save_LIBS=$LIBS
9374LIBS="-lcrypto $LIBS"
9375cat >conftest.$ac_ext <<_ACEOF
9376/* confdefs.h. */
9377_ACEOF
9378cat confdefs.h >>conftest.$ac_ext
9379cat >>conftest.$ac_ext <<_ACEOF
9380/* end confdefs.h. */
9381
9382/* Override any gcc2 internal prototype to avoid an error. */
9383#ifdef __cplusplus
9384extern "C"
9385#endif
9386/* We use char because int might match the return type of a gcc2
9387 builtin and then its argument prototype would still apply. */
9388char ERR_load_BIO_strings ();
9389int
9390main ()
9391{
9392ERR_load_BIO_strings ();
9393 ;
9394 return 0;
9395}
9396_ACEOF
9397rm -f conftest.$ac_objext conftest$ac_exeext
9398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try='test -z "$ac_c_werror_flag"
9407 || test ! -s conftest.err'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; } &&
9413 { ac_try='test -s conftest$ac_exeext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
9420else
9421 echo "$as_me: failed program was:" >&5
9422sed 's/^/| /' conftest.$ac_ext >&5
9423
9424ac_cv_lib_crypto_ERR_load_BIO_strings=no
9425fi
9426rm -f conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428LIBS=$ac_check_lib_save_LIBS
9429fi
9430echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
9431echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
9432if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
9433 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
9434fi
9435
9436 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
9437 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
9438echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
9439 cat >>confdefs.h <<\_ACEOF
9440#define PJSIP_HAS_TLS_TRANSPORT 1
9441_ACEOF
9442
9443 else
9444 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
9445echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
9446 fi
9447
9448fi;
9449
9450
9451
9452
9453echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009454echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009455case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009456 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009457#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009458_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009459
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009460 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009461echo "${ECHO_T}yes" >&6
9462 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009463 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009464#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009465_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009466
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009467 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009468echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009469 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009470echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
9471 ;;
9472esac
9473
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009474echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009475echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
9476case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009477 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009478#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009479_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009480
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009481 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009482echo "${ECHO_T}yes" >&6
9483 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009484 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009485#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009486_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009487
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009488 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009489echo "${ECHO_T}no (default)" >&6
9490 ;;
9491esac
9492
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009493echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009494echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
9495case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009496 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009497#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009498_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009499
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009500 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009501echo "${ECHO_T}yes" >&6
9502 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009503 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009504#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009505_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009506
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009507 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009508echo "${ECHO_T}no (default)" >&6
9509 ;;
9510esac
9511
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009512case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009513 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009514 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009515#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009516_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009517
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009518 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009519 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009520#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009521_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009522
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009523 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009524echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
9525 ;;
9526esac
9527
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009528case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009529 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009530 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009531#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009532_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009533
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009534 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009535 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009536#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009537_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009538
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009539 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009540echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
9541 ;;
9542esac
9543
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009544
9545
9546
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009547if test "$build" = "$host"; then
9548 ac_cross_compile=
9549else
Benny Prijono5b818b22006-09-17 22:58:51 +00009550 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009551fi
9552ac_linux_poll=select
9553
9554ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009555
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009556
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009557case $target in
9558 *rtems*)
9559 ac_main_obj=main_rtems.o
9560 ;;
9561 *)
9562 ac_main_obj=main.o
9563 ;;
9564esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009565
9566cat >confcache <<\_ACEOF
9567# This file is a shell script that caches the results of configure
9568# tests run on this system so they can be shared between configure
9569# scripts and configure runs, see configure's option --config-cache.
9570# It is not useful on other systems. If it contains results you don't
9571# want to keep, you may remove or edit it.
9572#
9573# config.status only pays attention to the cache file if you give it
9574# the --recheck option to rerun configure.
9575#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009576# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009577# loading this file, other *unset* `ac_cv_foo' will be assigned the
9578# following values.
9579
9580_ACEOF
9581
9582# The following way of writing the cache mishandles newlines in values,
9583# but we know of no workaround that is simple, portable, and efficient.
9584# So, don't put newlines in cache variables' values.
9585# Ultrix sh set writes to stderr and can't be redirected directly,
9586# and sets the high bit in the cache file unless we assign to the vars.
9587{
9588 (set) 2>&1 |
9589 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9590 *ac_space=\ *)
9591 # `set' does not quote correctly, so add quotes (double-quote
9592 # substitution turns \\\\ into \\, and sed turns \\ into \).
9593 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009594 "s/'/'\\\\''/g;
9595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009596 ;;
9597 *)
9598 # `set' quotes correctly as required by POSIX, so do not add quotes.
9599 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009600 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009601 ;;
9602 esac;
9603} |
9604 sed '
9605 t clear
9606 : clear
9607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9608 t end
9609 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9610 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009611if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009612 if test -w $cache_file; then
9613 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9614 cat confcache >$cache_file
9615 else
9616 echo "not updating unwritable cache $cache_file"
9617 fi
9618fi
9619rm -f confcache
9620
9621test "x$prefix" = xNONE && prefix=$ac_default_prefix
9622# Let make expand exec_prefix.
9623test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9624
9625# VPATH may cause trouble with some makes, so we remove $(srcdir),
9626# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9627# trailing colons and then remove the whole line if VPATH becomes empty
9628# (actually we leave an empty line to preserve line numbers).
9629if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009630 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009631s/:*\$(srcdir):*/:/;
9632s/:*\${srcdir}:*/:/;
9633s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009634s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009635s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009636s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009637}'
9638fi
9639
9640DEFS=-DHAVE_CONFIG_H
9641
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009642ac_libobjs=
9643ac_ltlibobjs=
9644for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9645 # 1. Remove the extension, and $U if already installed.
9646 ac_i=`echo "$ac_i" |
9647 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9648 # 2. Add them.
9649 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9650 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9651done
9652LIBOBJS=$ac_libobjs
9653
9654LTLIBOBJS=$ac_ltlibobjs
9655
9656
9657
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009658: ${CONFIG_STATUS=./config.status}
9659ac_clean_files_save=$ac_clean_files
9660ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009661{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009662echo "$as_me: creating $CONFIG_STATUS" >&6;}
9663cat >$CONFIG_STATUS <<_ACEOF
9664#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009665# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009666# Run this file to recreate the current configuration.
9667# Compiler output produced by configure, useful for debugging
9668# configure, is in config.log if it exists.
9669
9670debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009671ac_cs_recheck=false
9672ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009673SHELL=\${CONFIG_SHELL-$SHELL}
9674_ACEOF
9675
9676cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009677## --------------------- ##
9678## M4sh Initialization. ##
9679## --------------------- ##
9680
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009681# Be Bourne compatible
9682if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9683 emulate sh
9684 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009685 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9686 # is contrary to our usage. Disable this feature.
9687 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009688elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9689 set -o posix
9690fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009691DUALCASE=1; export DUALCASE # for MKS sh
9692
9693# Support unset when possible.
9694if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9695 as_unset=unset
9696else
9697 as_unset=false
9698fi
9699
9700
9701# Work around bugs in pre-3.0 UWIN ksh.
9702$as_unset ENV MAIL MAILPATH
9703PS1='$ '
9704PS2='> '
9705PS4='+ '
9706
9707# NLS nuisances.
9708for as_var in \
9709 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9710 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9711 LC_TELEPHONE LC_TIME
9712do
9713 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9714 eval $as_var=C; export $as_var
9715 else
9716 $as_unset $as_var
9717 fi
9718done
9719
9720# Required to use basename.
9721if expr a : '\(a\)' >/dev/null 2>&1; then
9722 as_expr=expr
9723else
9724 as_expr=false
9725fi
9726
9727if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9728 as_basename=basename
9729else
9730 as_basename=false
9731fi
9732
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009733
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009734# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009735as_me=`$as_basename "$0" ||
9736$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9737 X"$0" : 'X\(//\)$' \| \
9738 X"$0" : 'X\(/\)$' \| \
9739 . : '\(.\)' 2>/dev/null ||
9740echo X/"$0" |
9741 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9742 /^X\/\(\/\/\)$/{ s//\1/; q; }
9743 /^X\/\(\/\).*/{ s//\1/; q; }
9744 s/.*/./; q'`
9745
9746
9747# PATH needs CR, and LINENO needs CR and PATH.
9748# Avoid depending upon Character Ranges.
9749as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9750as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9751as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9752as_cr_digits='0123456789'
9753as_cr_alnum=$as_cr_Letters$as_cr_digits
9754
9755# The user is always right.
9756if test "${PATH_SEPARATOR+set}" != set; then
9757 echo "#! /bin/sh" >conf$$.sh
9758 echo "exit 0" >>conf$$.sh
9759 chmod +x conf$$.sh
9760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9761 PATH_SEPARATOR=';'
9762 else
9763 PATH_SEPARATOR=:
9764 fi
9765 rm -f conf$$.sh
9766fi
9767
9768
9769 as_lineno_1=$LINENO
9770 as_lineno_2=$LINENO
9771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9772 test "x$as_lineno_1" != "x$as_lineno_2" &&
9773 test "x$as_lineno_3" = "x$as_lineno_2" || {
9774 # Find who we are. Look in the path if we contain no path at all
9775 # relative or not.
9776 case $0 in
9777 *[\\/]* ) as_myself=$0 ;;
9778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779for as_dir in $PATH
9780do
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9784done
9785
9786 ;;
9787 esac
9788 # We did not find ourselves, most probably we were run as `sh COMMAND'
9789 # in which case we are not to be found in the path.
9790 if test "x$as_myself" = x; then
9791 as_myself=$0
9792 fi
9793 if test ! -f "$as_myself"; then
9794 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9795echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9796 { (exit 1); exit 1; }; }
9797 fi
9798 case $CONFIG_SHELL in
9799 '')
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9802do
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
9805 for as_base in sh bash ksh sh5; do
9806 case $as_dir in
9807 /*)
9808 if ("$as_dir/$as_base" -c '
9809 as_lineno_1=$LINENO
9810 as_lineno_2=$LINENO
9811 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9812 test "x$as_lineno_1" != "x$as_lineno_2" &&
9813 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9814 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9815 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9816 CONFIG_SHELL=$as_dir/$as_base
9817 export CONFIG_SHELL
9818 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9819 fi;;
9820 esac
9821 done
9822done
9823;;
9824 esac
9825
9826 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9827 # uniformly replaced by the line number. The first 'sed' inserts a
9828 # line-number line before each line; the second 'sed' does the real
9829 # work. The second script uses 'N' to pair each line-number line
9830 # with the numbered line, and appends trailing '-' during
9831 # substitution so that $LINENO is not a special case at line end.
9832 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9833 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9834 sed '=' <$as_myself |
9835 sed '
9836 N
9837 s,$,-,
9838 : loop
9839 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9840 t loop
9841 s,-$,,
9842 s,^['$as_cr_digits']*\n,,
9843 ' >$as_me.lineno &&
9844 chmod +x $as_me.lineno ||
9845 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9846echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9847 { (exit 1); exit 1; }; }
9848
9849 # Don't try to exec as it changes $[0], causing all sort of problems
9850 # (the dirname of $[0] is not the place where we might find the
9851 # original and so on. Autoconf is especially sensible to this).
9852 . ./$as_me.lineno
9853 # Exit status is that of the last command.
9854 exit
9855}
9856
9857
9858case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9859 *c*,-n*) ECHO_N= ECHO_C='
9860' ECHO_T=' ' ;;
9861 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9862 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9863esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009864
9865if expr a : '\(a\)' >/dev/null 2>&1; then
9866 as_expr=expr
9867else
9868 as_expr=false
9869fi
9870
9871rm -f conf$$ conf$$.exe conf$$.file
9872echo >conf$$.file
9873if ln -s conf$$.file conf$$ 2>/dev/null; then
9874 # We could just check for DJGPP; but this test a) works b) is more generic
9875 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9876 if test -f conf$$.exe; then
9877 # Don't use ln at all; we don't have any links
9878 as_ln_s='cp -p'
9879 else
9880 as_ln_s='ln -s'
9881 fi
9882elif ln conf$$.file conf$$ 2>/dev/null; then
9883 as_ln_s=ln
9884else
9885 as_ln_s='cp -p'
9886fi
9887rm -f conf$$ conf$$.exe conf$$.file
9888
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009889if mkdir -p . 2>/dev/null; then
9890 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +00009891else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009892 test -d ./-p && rmdir ./-p
9893 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00009894fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009896as_executable_p="test -f"
9897
9898# Sed expression to map a string onto a valid CPP name.
9899as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9900
9901# Sed expression to map a string onto a valid variable name.
9902as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9903
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009904
9905# IFS
9906# We need space, tab and new line, in precisely that order.
9907as_nl='
9908'
9909IFS=" $as_nl"
9910
9911# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009912$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009913
9914exec 6>&1
9915
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009916# Open the log real soon, to keep \$[0] and so on meaningful, and to
9917# report actual input values of CONFIG_FILES etc. instead of their
9918# values after options handling. Logging --version etc. is OK.
9919exec 5>>config.log
9920{
9921 echo
9922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9923## Running $as_me. ##
9924_ASBOX
9925} >&5
9926cat >&5 <<_CSEOF
9927
Benny Prijono27c98722007-04-09 21:28:15 +00009928This file was extended by pjproject $as_me 0.6.0, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009929generated by GNU Autoconf 2.59. Invocation command line was
9930
9931 CONFIG_FILES = $CONFIG_FILES
9932 CONFIG_HEADERS = $CONFIG_HEADERS
9933 CONFIG_LINKS = $CONFIG_LINKS
9934 CONFIG_COMMANDS = $CONFIG_COMMANDS
9935 $ $0 $@
9936
9937_CSEOF
9938echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9939echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009940_ACEOF
9941
9942# Files that config.status was made for.
9943if test -n "$ac_config_files"; then
9944 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9945fi
9946
9947if test -n "$ac_config_headers"; then
9948 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9949fi
9950
9951if test -n "$ac_config_links"; then
9952 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9953fi
9954
9955if test -n "$ac_config_commands"; then
9956 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9957fi
9958
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009959cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009960
9961ac_cs_usage="\
9962\`$as_me' instantiates files from templates according to the
9963current configuration.
9964
9965Usage: $0 [OPTIONS] [FILE]...
9966
9967 -h, --help print this help, then exit
9968 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009969 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009970 -d, --debug don't remove temporary files
9971 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009972 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009973 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009974 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009975 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009976
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009977Configuration files:
9978$config_files
9979
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009980Configuration headers:
9981$config_headers
9982
9983Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009984_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009985
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009986cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009987ac_cs_version="\\
Benny Prijono27c98722007-04-09 21:28:15 +00009988pjproject config.status 0.6.0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009989configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009990 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9991
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009992Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009993This config.status script is free software; the Free Software Foundation
9994gives unlimited permission to copy, distribute and modify it."
9995srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009996_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009997
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009998cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009999# If no file are specified by the user, then we need to provide default
10000# value. By we need to know if files were specified by the user.
10001ac_need_defaults=:
10002while test $# != 0
10003do
10004 case $1 in
10005 --*=*)
10006 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10007 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010008 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010009 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010010 -*)
10011 ac_option=$1
10012 ac_optarg=$2
10013 ac_shift=shift
10014 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010015 *) # This is not an option, so the user has probably given explicit
10016 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010017 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010018 ac_need_defaults=false;;
10019 esac
10020
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010021 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010022 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010023_ACEOF
10024cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010026 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010027 --version | --vers* | -V )
10028 echo "$ac_cs_version"; exit 0 ;;
10029 --he | --h)
10030 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010031 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010032Try \`$0 --help' for more information." >&5
10033echo "$as_me: error: ambiguous option: $1
10034Try \`$0 --help' for more information." >&2;}
10035 { (exit 1); exit 1; }; };;
10036 --help | --hel | -h )
10037 echo "$ac_cs_usage"; exit 0 ;;
10038 --debug | --d* | -d )
10039 debug=: ;;
10040 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010041 $ac_shift
10042 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010043 ac_need_defaults=false;;
10044 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010045 $ac_shift
10046 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010047 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10050 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010051
10052 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010053 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010054Try \`$0 --help' for more information." >&5
10055echo "$as_me: error: unrecognized option: $1
10056Try \`$0 --help' for more information." >&2;}
10057 { (exit 1); exit 1; }; } ;;
10058
10059 *) ac_config_targets="$ac_config_targets $1" ;;
10060
10061 esac
10062 shift
10063done
10064
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010065ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010066
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010067if $ac_cs_silent; then
10068 exec 6>/dev/null
10069 ac_configure_extra_args="$ac_configure_extra_args --silent"
10070fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010071
10072_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010073cat >>$CONFIG_STATUS <<_ACEOF
10074if \$ac_cs_recheck; then
10075 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10076 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10077fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010078
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010079_ACEOF
10080
10081
10082
10083
10084
10085cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010086for ac_config_target in $ac_config_targets
10087do
10088 case "$ac_config_target" in
10089 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010090 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
10091 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
10092 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
10093 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
10094 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
10095 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod1872312007-04-09 20:54:12 +000010096 "third_party/build/portaudio/Makefile" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/Makefile" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010097 "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 +000010098 "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 +000010099 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
10100 "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 +000010101 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
10102 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010103echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10104 { (exit 1); exit 1; }; };;
10105 esac
10106done
10107
10108# If the user did not use the arguments to specify the items to instantiate,
10109# then the envvar interface is used. Set only those that are not.
10110# We use the long form for the default assignment because of an extremely
10111# bizarre bug on SunOS 4.1.3.
10112if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10115fi
10116
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010117# Have a temporary directory for convenience. Make it in the build tree
10118# simply because there is no reason to put it here, and in addition,
10119# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010120# Create a temporary directory, and hook for its removal unless debugging.
10121$debug ||
10122{
10123 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10124 trap '{ (exit 1); exit 1; }' 1 2 13 15
10125}
10126
10127# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010128
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010129{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010130 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010131 test -n "$tmp" && test -d "$tmp"
10132} ||
10133{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010134 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010135 (umask 077 && mkdir $tmp)
10136} ||
10137{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010138 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010139 { (exit 1); exit 1; }
10140}
10141
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010142_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010143
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010144cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010145
10146#
10147# CONFIG_FILES section.
10148#
10149
10150# No need to generate the scripts if there are no CONFIG_FILES.
10151# This happens for instance when ./config.status config.h
10152if test -n "\$CONFIG_FILES"; then
10153 # Protect against being on the right side of a sed subst in config.status.
10154 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10155 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10156s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010157s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10158s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10159s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10160s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10161s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10162s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010163s,@exec_prefix@,$exec_prefix,;t t
10164s,@prefix@,$prefix,;t t
10165s,@program_transform_name@,$program_transform_name,;t t
10166s,@bindir@,$bindir,;t t
10167s,@sbindir@,$sbindir,;t t
10168s,@libexecdir@,$libexecdir,;t t
10169s,@datadir@,$datadir,;t t
10170s,@sysconfdir@,$sysconfdir,;t t
10171s,@sharedstatedir@,$sharedstatedir,;t t
10172s,@localstatedir@,$localstatedir,;t t
10173s,@libdir@,$libdir,;t t
10174s,@includedir@,$includedir,;t t
10175s,@oldincludedir@,$oldincludedir,;t t
10176s,@infodir@,$infodir,;t t
10177s,@mandir@,$mandir,;t t
10178s,@build_alias@,$build_alias,;t t
10179s,@host_alias@,$host_alias,;t t
10180s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010181s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010182s,@ECHO_C@,$ECHO_C,;t t
10183s,@ECHO_N@,$ECHO_N,;t t
10184s,@ECHO_T@,$ECHO_T,;t t
10185s,@LIBS@,$LIBS,;t t
10186s,@build@,$build,;t t
10187s,@build_cpu@,$build_cpu,;t t
10188s,@build_vendor@,$build_vendor,;t t
10189s,@build_os@,$build_os,;t t
10190s,@host@,$host,;t t
10191s,@host_cpu@,$host_cpu,;t t
10192s,@host_vendor@,$host_vendor,;t t
10193s,@host_os@,$host_os,;t t
10194s,@target@,$target,;t t
10195s,@target_cpu@,$target_cpu,;t t
10196s,@target_vendor@,$target_vendor,;t t
10197s,@target_os@,$target_os,;t t
10198s,@CC@,$CC,;t t
10199s,@CFLAGS@,$CFLAGS,;t t
10200s,@LDFLAGS@,$LDFLAGS,;t t
10201s,@CPPFLAGS@,$CPPFLAGS,;t t
10202s,@ac_ct_CC@,$ac_ct_CC,;t t
10203s,@EXEEXT@,$EXEEXT,;t t
10204s,@OBJEXT@,$OBJEXT,;t t
10205s,@CXX@,$CXX,;t t
10206s,@CXXFLAGS@,$CXXFLAGS,;t t
10207s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +000010208s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010209s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010210s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010211s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010212s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +000010213s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010214s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
10215s,@ac_no_small_filter@,$ac_no_small_filter,;t t
10216s,@ac_no_large_filter@,$ac_no_large_filter,;t t
10217s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t
10218s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
10219s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
10220s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
10221s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
10222s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
10223s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010224s,@ac_no_ssl@,$ac_no_ssl,;t t
10225s,@openssl_h_present@,$openssl_h_present,;t t
10226s,@libssl_present@,$libssl_present,;t t
10227s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010228s,@ac_cross_compile@,$ac_cross_compile,;t t
10229s,@ac_linux_poll@,$ac_linux_poll,;t t
10230s,@ac_host@,$ac_host,;t t
10231s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010232s,@LIBOBJS@,$LIBOBJS,;t t
10233s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010234CEOF
10235
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010236_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010237
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010238 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010239 # Split the substitutions into bite-sized pieces for seds with
10240 # small command number limits, like on Digital OSF/1 and HP-UX.
10241 ac_max_sed_lines=48
10242 ac_sed_frag=1 # Number of current file.
10243 ac_beg=1 # First line for current file.
10244 ac_end=$ac_max_sed_lines # Line after last line for current file.
10245 ac_more_lines=:
10246 ac_sed_cmds=
10247 while $ac_more_lines; do
10248 if test $ac_beg -gt 1; then
10249 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10250 else
10251 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10252 fi
10253 if test ! -s $tmp/subs.frag; then
10254 ac_more_lines=false
10255 else
10256 # The purpose of the label and of the branching condition is to
10257 # speed up the sed processing (if there are no `@' at all, there
10258 # is no need to browse any of the substitutions).
10259 # These are the two extra sed commands mentioned above.
10260 (echo ':t
10261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10262 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010263 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010264 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010265 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010266 fi
10267 ac_sed_frag=`expr $ac_sed_frag + 1`
10268 ac_beg=$ac_end
10269 ac_end=`expr $ac_end + $ac_max_sed_lines`
10270 fi
10271 done
10272 if test -z "$ac_sed_cmds"; then
10273 ac_sed_cmds=cat
10274 fi
10275fi # test -n "$CONFIG_FILES"
10276
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010277_ACEOF
10278cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010279for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10280 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10281 case $ac_file in
10282 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010283 cat >$tmp/stdin
10284 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10285 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010286 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010287 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010288 * ) ac_file_in=$ac_file.in ;;
10289 esac
10290
10291 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010292 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10293$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10294 X"$ac_file" : 'X\(//\)[^/]' \| \
10295 X"$ac_file" : 'X\(//\)$' \| \
10296 X"$ac_file" : 'X\(/\)' \| \
10297 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010298echo X"$ac_file" |
10299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10301 /^X\(\/\/\)$/{ s//\1/; q; }
10302 /^X\(\/\).*/{ s//\1/; q; }
10303 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010304 { if $as_mkdir_p; then
10305 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010306 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010307 as_dir="$ac_dir"
10308 as_dirs=
10309 while test ! -d "$as_dir"; do
10310 as_dirs="$as_dir $as_dirs"
10311 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10312$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10313 X"$as_dir" : 'X\(//\)[^/]' \| \
10314 X"$as_dir" : 'X\(//\)$' \| \
10315 X"$as_dir" : 'X\(/\)' \| \
10316 . : '\(.\)' 2>/dev/null ||
10317echo X"$as_dir" |
10318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10320 /^X\(\/\/\)$/{ s//\1/; q; }
10321 /^X\(\/\).*/{ s//\1/; q; }
10322 s/.*/./; q'`
10323 done
10324 test ! -n "$as_dirs" || mkdir $as_dirs
10325 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10326echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10327 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010328
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010329 ac_builddir=.
10330
10331if test "$ac_dir" != .; then
10332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10333 # A "../" for each directory in $ac_dir_suffix.
10334 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10335else
10336 ac_dir_suffix= ac_top_builddir=
10337fi
10338
10339case $srcdir in
10340 .) # No --srcdir option. We are building in place.
10341 ac_srcdir=.
10342 if test -z "$ac_top_builddir"; then
10343 ac_top_srcdir=.
10344 else
10345 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10346 fi ;;
10347 [\\/]* | ?:[\\/]* ) # Absolute path.
10348 ac_srcdir=$srcdir$ac_dir_suffix;
10349 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010350 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010351 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10352 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10353esac
10354
10355# Do not use `cd foo && pwd` to compute absolute paths, because
10356# the directories may not exist.
10357case `pwd` in
10358.) ac_abs_builddir="$ac_dir";;
10359*)
10360 case "$ac_dir" in
10361 .) ac_abs_builddir=`pwd`;;
10362 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10363 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10364 esac;;
10365esac
10366case $ac_abs_builddir in
10367.) ac_abs_top_builddir=${ac_top_builddir}.;;
10368*)
10369 case ${ac_top_builddir}. in
10370 .) ac_abs_top_builddir=$ac_abs_builddir;;
10371 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10372 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10373 esac;;
10374esac
10375case $ac_abs_builddir in
10376.) ac_abs_srcdir=$ac_srcdir;;
10377*)
10378 case $ac_srcdir in
10379 .) ac_abs_srcdir=$ac_abs_builddir;;
10380 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10381 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10382 esac;;
10383esac
10384case $ac_abs_builddir in
10385.) ac_abs_top_srcdir=$ac_top_srcdir;;
10386*)
10387 case $ac_top_srcdir in
10388 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10389 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10390 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10391 esac;;
10392esac
10393
10394
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010395
10396 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010397 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010398echo "$as_me: creating $ac_file" >&6;}
10399 rm -f "$ac_file"
10400 fi
10401 # Let's still pretend it is `configure' which instantiates (i.e., don't
10402 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010403 # /* config.h. Generated by config.status. */
10404 if test x"$ac_file" = x-; then
10405 configure_input=
10406 else
10407 configure_input="$ac_file. "
10408 fi
10409 configure_input=$configure_input"Generated from `echo $ac_file_in |
10410 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010411
10412 # First look for the input files in the build tree, otherwise in the
10413 # src tree.
10414 ac_file_inputs=`IFS=:
10415 for f in $ac_file_in; do
10416 case $f in
10417 -) echo $tmp/stdin ;;
10418 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010419 # Absolute (can't be DOS-style, as IFS=:)
10420 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010421echo "$as_me: error: cannot find input file: $f" >&2;}
10422 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010423 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010424 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010425 if test -f "$f"; then
10426 # Build tree
10427 echo "$f"
10428 elif test -f "$srcdir/$f"; then
10429 # Source tree
10430 echo "$srcdir/$f"
10431 else
10432 # /dev/null tree
10433 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010434echo "$as_me: error: cannot find input file: $f" >&2;}
10435 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010436 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010437 esac
10438 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010439_ACEOF
10440cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010441 sed "$ac_vpsub
10442$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010443_ACEOF
10444cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010445:t
10446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10447s,@configure_input@,$configure_input,;t t
10448s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010449s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010450s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010451s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10452s,@builddir@,$ac_builddir,;t t
10453s,@abs_builddir@,$ac_abs_builddir,;t t
10454s,@top_builddir@,$ac_top_builddir,;t t
10455s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010456" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10457 rm -f $tmp/stdin
10458 if test x"$ac_file" != x-; then
10459 mv $tmp/out $ac_file
10460 else
10461 cat $tmp/out
10462 rm -f $tmp/out
10463 fi
10464
10465done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010466_ACEOF
10467cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010468
10469#
10470# CONFIG_HEADER section.
10471#
10472
10473# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10474# NAME is the cpp macro being defined and VALUE is the value it is being given.
10475#
10476# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010477ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10478ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010479ac_dC=' '
10480ac_dD=',;t'
10481# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010482ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010483ac_uB='$,\1#\2define\3'
10484ac_uC=' '
10485ac_uD=',;t'
10486
10487for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10488 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10489 case $ac_file in
10490 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010491 cat >$tmp/stdin
10492 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10493 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010494 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010495 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010496 * ) ac_file_in=$ac_file.in ;;
10497 esac
10498
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010499 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010500echo "$as_me: creating $ac_file" >&6;}
10501
10502 # First look for the input files in the build tree, otherwise in the
10503 # src tree.
10504 ac_file_inputs=`IFS=:
10505 for f in $ac_file_in; do
10506 case $f in
10507 -) echo $tmp/stdin ;;
10508 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010509 # Absolute (can't be DOS-style, as IFS=:)
10510 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010511echo "$as_me: error: cannot find input file: $f" >&2;}
10512 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010513 # Do quote $f, to prevent DOS paths from being IFS'd.
10514 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010515 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010516 if test -f "$f"; then
10517 # Build tree
10518 echo "$f"
10519 elif test -f "$srcdir/$f"; then
10520 # Source tree
10521 echo "$srcdir/$f"
10522 else
10523 # /dev/null tree
10524 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010525echo "$as_me: error: cannot find input file: $f" >&2;}
10526 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010527 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010528 esac
10529 done` || { (exit 1); exit 1; }
10530 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010531 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010532
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010533_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010534
10535# Transform confdefs.h into two sed scripts, `conftest.defines' and
10536# `conftest.undefs', that substitutes the proper values into
10537# config.h.in to produce config.h. The first handles `#define'
10538# templates, and the second `#undef' templates.
10539# And first: Protect against being on the right side of a sed subst in
10540# config.status. Protect against being in an unquoted here document
10541# in config.status.
10542rm -f conftest.defines conftest.undefs
10543# Using a here document instead of a string reduces the quoting nightmare.
10544# Putting comments in sed scripts is not portable.
10545#
10546# `end' is used to avoid that the second main sed command (meant for
10547# 0-ary CPP macros) applies to n-ary macro definitions.
10548# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010549cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010550s/[\\&,]/\\&/g
10551s,[\\$`],\\&,g
10552t clear
10553: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010554s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010555t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010556s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010557: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010558_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010559# If some macros were called several times there might be several times
10560# the same #defines, which is useless. Nevertheless, we may not want to
10561# sort them, since we want the *last* AC-DEFINE to be honored.
10562uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10563sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10564rm -f confdef2sed.sed
10565
10566# This sed command replaces #undef with comments. This is necessary, for
10567# example, in the case of _POSIX_SOURCE, which is predefined and required
10568# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010569cat >>conftest.undefs <<\_ACEOF
10570s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10571_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010572
10573# Break up conftest.defines because some shells have a limit on the size
10574# of here documents, and old seds have small limits too (100 cmds).
10575echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010576echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010577echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10578echo ' :' >>$CONFIG_STATUS
10579rm -f conftest.tail
10580while grep . conftest.defines >/dev/null
10581do
10582 # Write a limited-size here document to $tmp/defines.sed.
10583 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10584 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010585 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010586 # Work around the forget-to-reset-the-flag bug.
10587 echo 't clr' >>$CONFIG_STATUS
10588 echo ': clr' >>$CONFIG_STATUS
10589 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10590 echo 'CEOF
10591 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10592 rm -f $tmp/in
10593 mv $tmp/out $tmp/in
10594' >>$CONFIG_STATUS
10595 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10596 rm -f conftest.defines
10597 mv conftest.tail conftest.defines
10598done
10599rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010600echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010601echo >>$CONFIG_STATUS
10602
10603# Break up conftest.undefs because some shells have a limit on the size
10604# of here documents, and old seds have small limits too (100 cmds).
10605echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10606rm -f conftest.tail
10607while grep . conftest.undefs >/dev/null
10608do
10609 # Write a limited-size here document to $tmp/undefs.sed.
10610 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10611 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010612 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010613 # Work around the forget-to-reset-the-flag bug.
10614 echo 't clr' >>$CONFIG_STATUS
10615 echo ': clr' >>$CONFIG_STATUS
10616 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10617 echo 'CEOF
10618 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10619 rm -f $tmp/in
10620 mv $tmp/out $tmp/in
10621' >>$CONFIG_STATUS
10622 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10623 rm -f conftest.undefs
10624 mv conftest.tail conftest.undefs
10625done
10626rm -f conftest.undefs
10627
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010628cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010629 # Let's still pretend it is `configure' which instantiates (i.e., don't
10630 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010631 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010632 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010633 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010634 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010635 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010636 fi
10637 cat $tmp/in >>$tmp/config.h
10638 rm -f $tmp/in
10639 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010640 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10641 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010642echo "$as_me: $ac_file is unchanged" >&6;}
10643 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010644 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10645$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10646 X"$ac_file" : 'X\(//\)[^/]' \| \
10647 X"$ac_file" : 'X\(//\)$' \| \
10648 X"$ac_file" : 'X\(/\)' \| \
10649 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010650echo X"$ac_file" |
10651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10653 /^X\(\/\/\)$/{ s//\1/; q; }
10654 /^X\(\/\).*/{ s//\1/; q; }
10655 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010656 { if $as_mkdir_p; then
10657 mkdir -p "$ac_dir"
10658 else
10659 as_dir="$ac_dir"
10660 as_dirs=
10661 while test ! -d "$as_dir"; do
10662 as_dirs="$as_dir $as_dirs"
10663 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10665 X"$as_dir" : 'X\(//\)[^/]' \| \
10666 X"$as_dir" : 'X\(//\)$' \| \
10667 X"$as_dir" : 'X\(/\)' \| \
10668 . : '\(.\)' 2>/dev/null ||
10669echo X"$as_dir" |
10670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10672 /^X\(\/\/\)$/{ s//\1/; q; }
10673 /^X\(\/\).*/{ s//\1/; q; }
10674 s/.*/./; q'`
10675 done
10676 test ! -n "$as_dirs" || mkdir $as_dirs
10677 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10678echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10679 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010680
10681 rm -f $ac_file
10682 mv $tmp/config.h $ac_file
10683 fi
10684 else
10685 cat $tmp/config.h
10686 rm -f $tmp/config.h
10687 fi
10688done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010689_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010690
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010691cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010692
10693{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010694_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010695chmod +x $CONFIG_STATUS
10696ac_clean_files=$ac_clean_files_save
10697
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010698
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010699# configure is writing to config.log, and then calls config.status.
10700# config.status does its own redirection, appending to config.log.
10701# Unfortunately, on DOS this fails, as config.log is still kept open
10702# by configure, so config.status won't be able to write to it; its
10703# output is simply discarded. So we exec the FD to /dev/null,
10704# effectively closing config.log, so it can be properly (re)opened and
10705# appended to by config.status. When coming back to configure, we
10706# need to make the FD available again.
10707if test "$no_create" != yes; then
10708 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010709 ac_config_status_args=
10710 test "$silent" = yes &&
10711 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010712 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010714 exec 5>>config.log
10715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10716 # would make configure fail if this is the last instruction.
10717 $ac_cs_success || { (exit 1); exit 1; }
10718fi
10719
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010720