blob: 9d8286c848269a8c594083366dd316cc15429fc3 [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 Prijonod9627842007-04-18 09:24:31 +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_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
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000862 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
863 --disable-g711-codec Exclude G.711 codecs from the build
864 --disable-l16-codec Exclude Linear/L16 codec family from the build
865 --disable-gsm-codec Exclude GSM codec in the build
866 --disable-speex-codec Exclude Speex codecs in the build
867 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijonoce1db762007-02-14 02:21:08 +0000868 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000869
870
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000871Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000878 CXX C++ compiler command
879 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000885_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000886fi
887
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000894
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000902
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
957
958 cd $ac_dir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000959 # Check for guested configure; otherwise get Cygnus style configure.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000960 if test -f $ac_srcdir/configure.gnu; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000961 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000964 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000968 echo
969 $ac_configure --help
970 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000972 fi
973 cd $ac_popdir
974 done
975fi
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000979 cat <<\_ACEOF
Benny Prijono27c98722007-04-09 21:28:15 +0000980pjproject configure 0.6.0
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000981generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000982
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000983Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000984This configure script is free software; the Free Software Foundation
985gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000986_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000987 exit 0
988fi
989exec 5>config.log
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000990cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000991This file contains any messages produced by compilers while
992running configure, to aid debugging if configure makes a mistake.
993
Benny Prijono27c98722007-04-09 21:28:15 +0000994It was created by pjproject $as_me 0.6.0, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000995generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000996
997 $ $0 $@
998
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000999_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001000{
1001cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001002## --------- ##
1003## Platform. ##
1004## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001005
1006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001024
1025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026for as_dir in $PATH
1027do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031done
1032
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001033} >&5
1034
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001035cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001037
1038## ----------- ##
1039## Core tests. ##
1040## ----------- ##
1041
1042_ACEOF
1043
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001044
1045# Keep a trace of the command line.
1046# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001047# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001048# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001049# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001050ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001051ac_configure_args0=
1052ac_configure_args1=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001053ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001054ac_must_keep_next=false
1055for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001056do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1089 ;;
1090 esac
1091 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001092done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001093$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094$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 +00001095
1096# When interrupted or exit'd, cleanup temporary files, and complete
1097# config.log. We remove comments because anyway the quotes in there
1098# would cause problems or look ugly.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001099# WARNING: Be sure not to use single quotes in there, as some shells,
1100# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001101trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107## ---------------- ##
1108## Cache variables. ##
1109## ---------------- ##
1110_ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001113{
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001120 ;;
1121 *)
1122 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001124 ;;
1125 esac;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001126}
1127 echo
1128
1129 cat <<\_ASBOX
1130## ----------------- ##
1131## Output variables. ##
1132## ----------------- ##
1133_ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144## ------------- ##
1145## Output files. ##
1146## ------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159## ----------- ##
1160## confdefs.h. ##
1161## ----------- ##
1162_ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001173 exit $exit_status
1174 ' 0
1175for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177done
1178ac_signal=0
1179
1180# confdefs.h avoids OS command line length limits that DEFS can exceed.
1181rm -rf conftest* confdefs.h
1182# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183echo >confdefs.h
1184
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001185# Predefined preprocessor variables.
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_NAME "$PACKAGE_NAME"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_VERSION "$PACKAGE_VERSION"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_STRING "$PACKAGE_STRING"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209_ACEOF
1210
1211
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001212# Let the site file select an alternate cache file if it wants to.
1213# Prefer explicitly selected file to automatically selected ones.
1214if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220fi
1221for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001224echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001225 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001226 . "$ac_site_file"
1227 fi
1228done
1229
1230if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001235echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001243echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245fi
1246
1247# Check that the precious variables saved in the cache have kept the same
1248# value.
1249ac_cache_corrupted=false
1250for ac_var in `(set) 2>&1 |
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001258 { 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 +00001259echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001263echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001269echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001271echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001273echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275 fi;;
1276 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001277 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001287 esac
1288 fi
1289done
1290if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001292echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001294echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296fi
1297
1298ac_ext=c
1299ac_cpp='$CPP $CPPFLAGS'
1300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
Benny Prijono5b818b22006-09-17 22:58:51 +00001330
1331host_orig="$host"
1332
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001333ac_aux_dir=
1334for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1335 if test -f $ac_dir/install-sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 break
1339 elif test -f $ac_dir/install.sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 break
1343 elif test -f $ac_dir/shtool; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1346 break
1347 fi
1348done
1349if test -z "$ac_aux_dir"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001351echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1352 { (exit 1); exit 1; }; }
1353fi
1354ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1357
1358# Make sure we can run config.sub.
1359$ac_config_sub sun4 >/dev/null 2>&1 ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001360 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001361echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1362 { (exit 1); exit 1; }; }
1363
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001364echo "$as_me:$LINENO: checking build system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001365echo $ECHO_N "checking build system type... $ECHO_C" >&6
1366if test "${ac_cv_build+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368else
1369 ac_cv_build_alias=$build_alias
1370test -z "$ac_cv_build_alias" &&
1371 ac_cv_build_alias=`$ac_config_guess`
1372test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001373 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001374echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1375 { (exit 1); exit 1; }; }
1376ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1378echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001379 { (exit 1); exit 1; }; }
1380
1381fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001382echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001383echo "${ECHO_T}$ac_cv_build" >&6
1384build=$ac_cv_build
1385build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001389
1390echo "$as_me:$LINENO: checking host system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001391echo $ECHO_N "checking host system type... $ECHO_C" >&6
1392if test "${ac_cv_host+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1394else
1395 ac_cv_host_alias=$host_alias
1396test -z "$ac_cv_host_alias" &&
1397 ac_cv_host_alias=$ac_cv_build_alias
1398ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001399 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001400echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1401 { (exit 1); exit 1; }; }
1402
1403fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001404echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001405echo "${ECHO_T}$ac_cv_host" >&6
1406host=$ac_cv_host
1407host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001411
1412echo "$as_me:$LINENO: checking target system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001413echo $ECHO_N "checking target system type... $ECHO_C" >&6
1414if test "${ac_cv_target+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416else
1417 ac_cv_target_alias=$target_alias
1418test "x$ac_cv_target_alias" = "x" &&
1419 ac_cv_target_alias=$ac_cv_host_alias
1420ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001422echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1424
1425fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001426echo "$as_me:$LINENO: result: $ac_cv_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001427echo "${ECHO_T}$ac_cv_target" >&6
1428target=$ac_cv_target
1429target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001433
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001434# The aliases save the names the user supplied, while $host etc.
1435# will get canonicalized.
1436test -n "$target_alias" &&
1437 test "$program_prefix$program_suffix$program_transform_name" = \
1438 NONENONEs,x,x, &&
1439 program_prefix=${target_alias}-
Benny Prijono06d1d0e2007-01-27 18:09:28 +00001440 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 +00001441
Benny Prijonod9627842007-04-18 09:24:31 +00001442 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/os-auto.mak third_party/build/os-auto.mak"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001443
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001444
Benny Prijono12483112007-03-12 10:44:38 +00001445
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001446if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001447 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001448else
1449 CFLAGS="$CFLAGS"
1450fi
1451
1452CXXFLAGS="$CFLAGS $CXXFLAGS"
1453
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459if test -n "$ac_tool_prefix"; then
1460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1461set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001462echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1464if test "${ac_cv_prog_CC+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1466else
1467 if test -n "$CC"; then
1468 ac_cv_prog_CC="$CC" # Let the user override the test.
1469else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471for as_dir in $PATH
1472do
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 for ac_exec_ext in '' $ac_executable_extensions; do
1476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1479 break 2
1480 fi
1481done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001482done
1483
1484fi
1485fi
1486CC=$ac_cv_prog_CC
1487if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001488 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001489echo "${ECHO_T}$CC" >&6
1490else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001491 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001492echo "${ECHO_T}no" >&6
1493fi
1494
1495fi
1496if test -z "$ac_cv_prog_CC"; then
1497 ac_ct_CC=$CC
1498 # Extract the first word of "gcc", so it can be a program name with args.
1499set dummy gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001500echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504else
1505 if test -n "$ac_ct_CC"; then
1506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509for as_dir in $PATH
1510do
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_ac_ct_CC="gcc"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 break 2
1518 fi
1519done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001520done
1521
1522fi
1523fi
1524ac_ct_CC=$ac_cv_prog_ac_ct_CC
1525if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001526 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001527echo "${ECHO_T}$ac_ct_CC" >&6
1528else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001529 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001530echo "${ECHO_T}no" >&6
1531fi
1532
1533 CC=$ac_ct_CC
1534else
1535 CC="$ac_cv_prog_CC"
1536fi
1537
1538if test -z "$CC"; then
1539 if test -n "$ac_tool_prefix"; then
1540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1541set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001542echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546else
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1549else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551for as_dir in $PATH
1552do
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="${ac_tool_prefix}cc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001562done
1563
1564fi
1565fi
1566CC=$ac_cv_prog_CC
1567if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001568 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001569echo "${ECHO_T}$CC" >&6
1570else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001571 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001572echo "${ECHO_T}no" >&6
1573fi
1574
1575fi
1576if test -z "$ac_cv_prog_CC"; then
1577 ac_ct_CC=$CC
1578 # Extract the first word of "cc", so it can be a program name with args.
1579set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001580echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 if test -n "$ac_ct_CC"; then
1586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589for as_dir in $PATH
1590do
1591 IFS=$as_save_IFS
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_ac_ct_CC="cc"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 break 2
1598 fi
1599done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001600done
1601
1602fi
1603fi
1604ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001607echo "${ECHO_T}$ac_ct_CC" >&6
1608else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001609 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001610echo "${ECHO_T}no" >&6
1611fi
1612
1613 CC=$ac_ct_CC
1614else
1615 CC="$ac_cv_prog_CC"
1616fi
1617
1618fi
1619if test -z "$CC"; then
1620 # Extract the first word of "cc", so it can be a program name with args.
1621set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001622echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629else
1630 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632for as_dir in $PATH
1633do
1634 IFS=$as_save_IFS
1635 test -z "$as_dir" && as_dir=.
1636 for ac_exec_ext in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1639 ac_prog_rejected=yes
1640 continue
1641 fi
1642 ac_cv_prog_CC="cc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1645 fi
1646done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001647done
1648
1649if test $ac_prog_rejected = yes; then
1650 # We found a bogon in the path, so make sure we never use it.
1651 set dummy $ac_cv_prog_CC
1652 shift
1653 if test $# != 0; then
1654 # We chose a different compiler from the bogus one.
1655 # However, it has the same basename, so the bogon will be chosen
1656 # first if we set CC to just the basename; use the full file name.
1657 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001659 fi
1660fi
1661fi
1662fi
1663CC=$ac_cv_prog_CC
1664if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001665 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001666echo "${ECHO_T}$CC" >&6
1667else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001668 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001669echo "${ECHO_T}no" >&6
1670fi
1671
1672fi
1673if test -z "$CC"; then
1674 if test -n "$ac_tool_prefix"; then
1675 for ac_prog in cl
1676 do
1677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001679echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681if test "${ac_cv_prog_CC+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683else
1684 if test -n "$CC"; then
1685 ac_cv_prog_CC="$CC" # Let the user override the test.
1686else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688for as_dir in $PATH
1689do
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 break 2
1697 fi
1698done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001699done
1700
1701fi
1702fi
1703CC=$ac_cv_prog_CC
1704if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001705 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001706echo "${ECHO_T}$CC" >&6
1707else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001708 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001709echo "${ECHO_T}no" >&6
1710fi
1711
1712 test -n "$CC" && break
1713 done
1714fi
1715if test -z "$CC"; then
1716 ac_ct_CC=$CC
1717 for ac_prog in cl
1718do
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001721echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726 if test -n "$ac_ct_CC"; then
1727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_ac_ct_CC="$ac_prog"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1739 fi
1740done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001741done
1742
1743fi
1744fi
1745ac_ct_CC=$ac_cv_prog_ac_ct_CC
1746if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001747 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001748echo "${ECHO_T}$ac_ct_CC" >&6
1749else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001750 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001751echo "${ECHO_T}no" >&6
1752fi
1753
1754 test -n "$ac_ct_CC" && break
1755done
1756
1757 CC=$ac_ct_CC
1758fi
1759
1760fi
1761
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001762
1763test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1764See \`config.log' for more details." >&5
1765echo "$as_me: error: no acceptable C compiler found in \$PATH
1766See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001767 { (exit 1); exit 1; }; }
1768
1769# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001770echo "$as_me:$LINENO:" \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001771 "checking for C compiler version" >&5
1772ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001773{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001774 (eval $ac_compiler --version </dev/null >&5) 2>&5
1775 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001777 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001778{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001779 (eval $ac_compiler -v </dev/null >&5) 2>&5
1780 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001782 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001783{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001784 (eval $ac_compiler -V </dev/null >&5) 2>&5
1785 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001787 (exit $ac_status); }
1788
1789cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001790/* confdefs.h. */
1791_ACEOF
1792cat confdefs.h >>conftest.$ac_ext
1793cat >>conftest.$ac_ext <<_ACEOF
1794/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001795
1796int
1797main ()
1798{
1799
1800 ;
1801 return 0;
1802}
1803_ACEOF
1804ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001805ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001806# Try to create an executable without -o first, disregard a.out.
1807# It will help us diagnose broken compilers, and finding out an intuition
1808# of exeext.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001809echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1810echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001811ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001812if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001813 (eval $ac_link_default) 2>&5
1814 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001816 (exit $ac_status); }; then
1817 # Find the output, starting from the most likely. This scheme is
1818# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1819# resort.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001820
1821# Be careful to initialize this variable, since it used to be cached.
1822# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1823ac_cv_exeext=
1824# b.out is created by i960 compilers.
1825for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1826do
1827 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001828 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1830 ;;
1831 conftest.$ac_ext )
1832 # This is the source file.
1833 ;;
1834 [ab].out )
1835 # We found the default executable, but exeext='' is most
1836 # certainly right.
1837 break;;
1838 *.* )
1839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840 # FIXME: I believe we export ac_cv_exeext for Libtool,
1841 # but it would be cool to find out if it's true. Does anybody
1842 # maintain Libtool? --akim.
1843 export ac_cv_exeext
1844 break;;
1845 * )
1846 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001847 esac
1848done
1849else
1850 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1854See \`config.log' for more details." >&5
1855echo "$as_me: error: C compiler cannot create executables
1856See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001857 { (exit 77); exit 77; }; }
1858fi
1859
1860ac_exeext=$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001861echo "$as_me:$LINENO: result: $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001862echo "${ECHO_T}$ac_file" >&6
1863
1864# Check the compiler produces executables we can run. If not, either
1865# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001866echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001867echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1868# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1869# If not cross compiling, check that we can run a simple program.
1870if test "$cross_compiling" != yes; then
1871 if { ac_try='./$ac_file'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001873 (eval $ac_try) 2>&5
1874 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001876 (exit $ac_status); }; }; then
1877 cross_compiling=no
1878 else
1879 if test "$cross_compiling" = maybe; then
1880 cross_compiling=yes
1881 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001882 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1883If you meant to cross compile, use \`--host'.
1884See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001885echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001886If you meant to cross compile, use \`--host'.
1887See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001888 { (exit 1); exit 1; }; }
1889 fi
1890 fi
1891fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001892echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001893echo "${ECHO_T}yes" >&6
1894
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001895rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001896ac_clean_files=$ac_clean_files_save
1897# Check the compiler produces executables we can run. If not, either
1898# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001899echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001900echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001901echo "$as_me:$LINENO: result: $cross_compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902echo "${ECHO_T}$cross_compiling" >&6
1903
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001904echo "$as_me:$LINENO: checking for suffix of executables" >&5
1905echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001907 (eval $ac_link) 2>&5
1908 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001910 (exit $ac_status); }; then
1911 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1912# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1913# work properly (i.e., refer to `conftest.exe'), while it won't with
1914# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001915for ac_file in conftest.exe conftest conftest.*; do
1916 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001917 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001920 export ac_cv_exeext
1921 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001922 * ) break;;
1923 esac
1924done
1925else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001926 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1927See \`config.log' for more details." >&5
1928echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1929See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001930 { (exit 1); exit 1; }; }
1931fi
1932
1933rm -f conftest$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001934echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001935echo "${ECHO_T}$ac_cv_exeext" >&6
1936
1937rm -f conftest.$ac_ext
1938EXEEXT=$ac_cv_exeext
1939ac_exeext=$EXEEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001940echo "$as_me:$LINENO: checking for suffix of object files" >&5
1941echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001942if test "${ac_cv_objext+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001951
1952int
1953main ()
1954{
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960rm -f conftest.o conftest.obj
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001962 (eval $ac_compile) 2>&5
1963 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001965 (exit $ac_status); }; then
1966 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1967 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1970 break;;
1971 esac
1972done
1973else
1974 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1978See \`config.log' for more details." >&5
1979echo "$as_me: error: cannot compute suffix of object files: cannot compile
1980See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001981 { (exit 1); exit 1; }; }
1982fi
1983
1984rm -f conftest.$ac_cv_objext conftest.$ac_ext
1985fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001986echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001987echo "${ECHO_T}$ac_cv_objext" >&6
1988OBJEXT=$ac_cv_objext
1989ac_objext=$OBJEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001990echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001991echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1992if test "${ac_cv_c_compiler_gnu+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001996/* confdefs.h. */
1997_ACEOF
1998cat confdefs.h >>conftest.$ac_ext
1999cat >>conftest.$ac_ext <<_ACEOF
2000/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002001
2002int
2003main ()
2004{
2005#ifndef __GNUC__
2006 choke me
2007#endif
2008
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002016 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002017 grep -v '^ *+' conftest.er1 >conftest.err
2018 rm -f conftest.er1
2019 cat conftest.err >&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002021 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002022 { ac_try='test -z "$ac_c_werror_flag"
2023 || test ! -s conftest.err'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002025 (eval $ac_try) 2>&5
2026 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; } &&
2029 { ac_try='test -s conftest.$ac_objext'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002034 (exit $ac_status); }; }; then
2035 ac_compiler_gnu=yes
2036else
2037 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002038sed 's/^/| /' conftest.$ac_ext >&5
2039
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002040ac_compiler_gnu=no
2041fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002043ac_cv_c_compiler_gnu=$ac_compiler_gnu
2044
2045fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002046echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002047echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2048GCC=`test $ac_compiler_gnu = yes && echo yes`
2049ac_test_CFLAGS=${CFLAGS+set}
2050ac_save_CFLAGS=$CFLAGS
2051CFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002052echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002053echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2054if test "${ac_cv_prog_cc_g+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002058/* confdefs.h. */
2059_ACEOF
2060cat confdefs.h >>conftest.$ac_ext
2061cat >>conftest.$ac_ext <<_ACEOF
2062/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002063
2064int
2065main ()
2066{
2067
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2074 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002075 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002076 grep -v '^ *+' conftest.er1 >conftest.err
2077 rm -f conftest.er1
2078 cat conftest.err >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002080 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002081 { ac_try='test -z "$ac_c_werror_flag"
2082 || test ! -s conftest.err'
2083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002084 (eval $ac_try) 2>&5
2085 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002093 (exit $ac_status); }; }; then
2094 ac_cv_prog_cc_g=yes
2095else
2096 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002097sed 's/^/| /' conftest.$ac_ext >&5
2098
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002099ac_cv_prog_cc_g=no
2100fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002102fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002103echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002104echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2105if test "$ac_test_CFLAGS" = set; then
2106 CFLAGS=$ac_save_CFLAGS
2107elif test $ac_cv_prog_cc_g = yes; then
2108 if test "$GCC" = yes; then
2109 CFLAGS="-g -O2"
2110 else
2111 CFLAGS="-g"
2112 fi
2113else
2114 if test "$GCC" = yes; then
2115 CFLAGS="-O2"
2116 else
2117 CFLAGS=
2118 fi
2119fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002120echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2121echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2122if test "${ac_cv_prog_cc_stdc+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125 ac_cv_prog_cc_stdc=no
2126ac_save_CC=$CC
2127cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h. */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h. */
2133#include <stdarg.h>
2134#include <stdio.h>
2135#include <sys/types.h>
2136#include <sys/stat.h>
2137/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2138struct buf { int x; };
2139FILE * (*rcsopen) (struct buf *, struct stat *, int);
2140static char *e (p, i)
2141 char **p;
2142 int i;
2143{
2144 return p[i];
2145}
2146static char *f (char * (*g) (char **, int), char **p, ...)
2147{
2148 char *s;
2149 va_list v;
2150 va_start (v,p);
2151 s = g (p, va_arg (v,int));
2152 va_end (v);
2153 return s;
2154}
2155
2156/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2157 function prototypes and stuff, but not '\xHH' hex character constants.
2158 These don't provoke an error unfortunately, instead are silently treated
2159 as 'x'. The following induces an error, until -std1 is added to get
2160 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2161 array size at least. It's necessary to write '\x00'==0 to get something
2162 that's true only with -std1. */
2163int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2164
2165int test (int i, double x);
2166struct s1 {int (*f) (int a);};
2167struct s2 {int (*f) (double a);};
2168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2169int argc;
2170char **argv;
2171int
2172main ()
2173{
2174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179# Don't try gcc -ansi; that turns off useful extensions and
2180# breaks some systems' header files.
2181# AIX -qlanglvl=ansi
2182# Ultrix and OSF/1 -std1
2183# HP-UX 10.20 and later -Ae
2184# HP-UX older versions -Aa -D_HPUX_SOURCE
2185# SVR4 -Xc -D__EXTENSIONS__
2186for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2187do
2188 CC="$ac_save_CC $ac_arg"
2189 rm -f conftest.$ac_objext
2190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>conftest.er1
2192 ac_status=$?
2193 grep -v '^ *+' conftest.er1 >conftest.err
2194 rm -f conftest.er1
2195 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -z "$ac_c_werror_flag"
2199 || test ! -s conftest.err'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 (eval $ac_try) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; } &&
2205 { ac_try='test -s conftest.$ac_objext'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2211 ac_cv_prog_cc_stdc=$ac_arg
2212break
2213else
2214 echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217fi
2218rm -f conftest.err conftest.$ac_objext
2219done
2220rm -f conftest.$ac_ext conftest.$ac_objext
2221CC=$ac_save_CC
2222
2223fi
2224
2225case "x$ac_cv_prog_cc_stdc" in
2226 x|xno)
2227 echo "$as_me:$LINENO: result: none needed" >&5
2228echo "${ECHO_T}none needed" >&6 ;;
2229 *)
2230 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2231echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2232 CC="$CC $ac_cv_prog_cc_stdc" ;;
2233esac
2234
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002235# Some people use a C++ compiler to compile C. Since we use `exit',
2236# in C++ we need to declare it. In case someone uses the same compiler
2237# for both compiling C and C++ we need to have the C++ compiler decide
2238# the declaration of exit, since it's the most demanding environment.
2239cat >conftest.$ac_ext <<_ACEOF
2240#ifndef __cplusplus
2241 choke me
2242#endif
2243_ACEOF
2244rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002247 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002248 grep -v '^ *+' conftest.er1 >conftest.err
2249 rm -f conftest.er1
2250 cat conftest.err >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002252 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002253 { ac_try='test -z "$ac_c_werror_flag"
2254 || test ! -s conftest.err'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002256 (eval $ac_try) 2>&5
2257 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002265 (exit $ac_status); }; }; then
2266 for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002267 '' \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002268 'extern "C" void std::exit (int) throw (); using std::exit;' \
2269 'extern "C" void std::exit (int); using std::exit;' \
2270 'extern "C" void exit (int) throw ();' \
2271 'extern "C" void exit (int);' \
2272 'void exit (int);'
2273do
2274 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002275/* confdefs.h. */
2276_ACEOF
2277cat confdefs.h >>conftest.$ac_ext
2278cat >>conftest.$ac_ext <<_ACEOF
2279/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002280$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002281#include <stdlib.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002282int
2283main ()
2284{
2285exit (42);
2286 ;
2287 return 0;
2288}
2289_ACEOF
2290rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002293 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002294 grep -v '^ *+' conftest.er1 >conftest.err
2295 rm -f conftest.er1
2296 cat conftest.err >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002298 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002299 { ac_try='test -z "$ac_c_werror_flag"
2300 || test ! -s conftest.err'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002302 (eval $ac_try) 2>&5
2303 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; } &&
2306 { ac_try='test -s conftest.$ac_objext'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002311 (exit $ac_status); }; }; then
2312 :
2313else
2314 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002315sed 's/^/| /' conftest.$ac_ext >&5
2316
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002317continue
2318fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002320 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002321/* confdefs.h. */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002326$ac_declaration
2327int
2328main ()
2329{
2330exit (42);
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002338 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002339 grep -v '^ *+' conftest.er1 >conftest.err
2340 rm -f conftest.er1
2341 cat conftest.err >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002343 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002344 { ac_try='test -z "$ac_c_werror_flag"
2345 || test ! -s conftest.err'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002347 (eval $ac_try) 2>&5
2348 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002356 (exit $ac_status); }; }; then
2357 break
2358else
2359 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002360sed 's/^/| /' conftest.$ac_ext >&5
2361
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002362fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002364done
2365rm -f conftest*
2366if test -n "$ac_declaration"; then
2367 echo '#ifdef __cplusplus' >>confdefs.h
2368 echo $ac_declaration >>confdefs.h
2369 echo '#endif' >>confdefs.h
2370fi
2371
2372else
2373 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002374sed 's/^/| /' conftest.$ac_ext >&5
2375
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002376fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002378ac_ext=c
2379ac_cpp='$CPP $CPPFLAGS'
2380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002384ac_ext=cc
2385ac_cpp='$CXXCPP $CPPFLAGS'
2386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2389if test -n "$ac_tool_prefix"; then
2390 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2391 do
2392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002394echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396if test "${ac_cv_prog_CXX+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399 if test -n "$CXX"; then
2400 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2401else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002414done
2415
2416fi
2417fi
2418CXX=$ac_cv_prog_CXX
2419if test -n "$CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002420 echo "$as_me:$LINENO: result: $CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002421echo "${ECHO_T}$CXX" >&6
2422else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002423 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002424echo "${ECHO_T}no" >&6
2425fi
2426
2427 test -n "$CXX" && break
2428 done
2429fi
2430if test -z "$CXX"; then
2431 ac_ct_CXX=$CXX
2432 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2433do
2434 # Extract the first word of "$ac_prog", so it can be a program name with args.
2435set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002436echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2438if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441 if test -n "$ac_ct_CXX"; then
2442 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2443else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 ac_cv_prog_ac_ct_CXX="$ac_prog"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002456done
2457
2458fi
2459fi
2460ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2461if test -n "$ac_ct_CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002462 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002463echo "${ECHO_T}$ac_ct_CXX" >&6
2464else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002465 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002466echo "${ECHO_T}no" >&6
2467fi
2468
2469 test -n "$ac_ct_CXX" && break
2470done
2471test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2472
2473 CXX=$ac_ct_CXX
2474fi
2475
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002476
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002477# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002478echo "$as_me:$LINENO:" \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002479 "checking for C++ compiler version" >&5
2480ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002481{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002482 (eval $ac_compiler --version </dev/null >&5) 2>&5
2483 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002485 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002486{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002487 (eval $ac_compiler -v </dev/null >&5) 2>&5
2488 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002490 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002491{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002492 (eval $ac_compiler -V </dev/null >&5) 2>&5
2493 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002495 (exit $ac_status); }
2496
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002497echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002498echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2499if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002503/* confdefs.h. */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002508
2509int
2510main ()
2511{
2512#ifndef __GNUC__
2513 choke me
2514#endif
2515
2516 ;
2517 return 0;
2518}
2519_ACEOF
2520rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002523 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002528 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002529 { ac_try='test -z "$ac_cxx_werror_flag"
2530 || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002532 (eval $ac_try) 2>&5
2533 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002541 (exit $ac_status); }; }; then
2542 ac_compiler_gnu=yes
2543else
2544 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002545sed 's/^/| /' conftest.$ac_ext >&5
2546
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002547ac_compiler_gnu=no
2548fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002550ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2551
2552fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002553echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002554echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2555GXX=`test $ac_compiler_gnu = yes && echo yes`
2556ac_test_CXXFLAGS=${CXXFLAGS+set}
2557ac_save_CXXFLAGS=$CXXFLAGS
2558CXXFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002559echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002560echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2561if test "${ac_cv_prog_cxx_g+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002565/* confdefs.h. */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
2569/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002570
2571int
2572main ()
2573{
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002582 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002587 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002588 { ac_try='test -z "$ac_cxx_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002591 (eval $ac_try) 2>&5
2592 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002600 (exit $ac_status); }; }; then
2601 ac_cv_prog_cxx_g=yes
2602else
2603 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002604sed 's/^/| /' conftest.$ac_ext >&5
2605
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002606ac_cv_prog_cxx_g=no
2607fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002609fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002610echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002611echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2612if test "$ac_test_CXXFLAGS" = set; then
2613 CXXFLAGS=$ac_save_CXXFLAGS
2614elif test $ac_cv_prog_cxx_g = yes; then
2615 if test "$GXX" = yes; then
2616 CXXFLAGS="-g -O2"
2617 else
2618 CXXFLAGS="-g"
2619 fi
2620else
2621 if test "$GXX" = yes; then
2622 CXXFLAGS="-O2"
2623 else
2624 CXXFLAGS=
2625 fi
2626fi
2627for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002628 '' \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002629 'extern "C" void std::exit (int) throw (); using std::exit;' \
2630 'extern "C" void std::exit (int); using std::exit;' \
2631 'extern "C" void exit (int) throw ();' \
2632 'extern "C" void exit (int);' \
2633 'void exit (int);'
2634do
2635 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002641$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002642#include <stdlib.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002643int
2644main ()
2645{
2646exit (42);
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002654 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002659 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002660 { ac_try='test -z "$ac_cxx_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002663 (eval $ac_try) 2>&5
2664 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest.$ac_objext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002672 (exit $ac_status); }; }; then
2673 :
2674else
2675 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002676sed 's/^/| /' conftest.$ac_ext >&5
2677
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002678continue
2679fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002681 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002682/* confdefs.h. */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002687$ac_declaration
2688int
2689main ()
2690{
2691exit (42);
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002699 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002704 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002705 { ac_try='test -z "$ac_cxx_werror_flag"
2706 || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002708 (eval $ac_try) 2>&5
2709 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002717 (exit $ac_status); }; }; then
2718 break
2719else
2720 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002721sed 's/^/| /' conftest.$ac_ext >&5
2722
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002723fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002725done
2726rm -f conftest*
2727if test -n "$ac_declaration"; then
2728 echo '#ifdef __cplusplus' >>confdefs.h
2729 echo $ac_declaration >>confdefs.h
2730 echo '#endif' >>confdefs.h
2731fi
2732
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002733ac_ext=c
2734ac_cpp='$CPP $CPPFLAGS'
2735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002745
2746
Benny Prijono12483112007-03-12 10:44:38 +00002747ac_pjdir=`pwd`
2748
2749
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002750
2751echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002752echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2753if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756 ac_check_lib_save_LIBS=$LIBS
2757LIBS="-lpthread $LIBS"
2758cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002759/* confdefs.h. */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002764
2765/* Override any gcc2 internal prototype to avoid an error. */
2766#ifdef __cplusplus
2767extern "C"
2768#endif
2769/* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2771char pthread_create ();
2772int
2773main ()
2774{
2775pthread_create ();
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2782 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002783 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002788 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002792 (eval $ac_try) 2>&5
2793 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest$ac_exeext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002801 (exit $ac_status); }; }; then
2802 ac_cv_lib_pthread_pthread_create=yes
2803else
2804 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002805sed 's/^/| /' conftest.$ac_ext >&5
2806
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002807ac_cv_lib_pthread_pthread_create=no
2808fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002809rm -f conftest.err conftest.$ac_objext \
2810 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002811LIBS=$ac_check_lib_save_LIBS
2812fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002813echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002814echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2815if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002816 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002817#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002818_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002819
2820 LIBS="-lpthread $LIBS"
2821
2822fi
2823
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002824
2825echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002826echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
2827if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830 ac_check_lib_save_LIBS=$LIBS
2831LIBS="-lwsock32 $LIBS"
2832cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002833/* confdefs.h. */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002838
2839/* Override any gcc2 internal prototype to avoid an error. */
2840#ifdef __cplusplus
2841extern "C"
2842#endif
2843/* We use char because int might match the return type of a gcc2
2844 builtin and then its argument prototype would still apply. */
2845char puts ();
2846int
2847main ()
2848{
2849puts ();
2850 ;
2851 return 0;
2852}
2853_ACEOF
2854rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2856 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002857 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002858 grep -v '^ *+' conftest.er1 >conftest.err
2859 rm -f conftest.er1
2860 cat conftest.err >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002862 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002863 { ac_try='test -z "$ac_c_werror_flag"
2864 || test ! -s conftest.err'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002866 (eval $ac_try) 2>&5
2867 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; } &&
2870 { ac_try='test -s conftest$ac_exeext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002875 (exit $ac_status); }; }; then
2876 ac_cv_lib_wsock32_puts=yes
2877else
2878 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002879sed 's/^/| /' conftest.$ac_ext >&5
2880
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002881ac_cv_lib_wsock32_puts=no
2882fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002883rm -f conftest.err conftest.$ac_objext \
2884 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002885LIBS=$ac_check_lib_save_LIBS
2886fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002887echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002888echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
2889if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002890 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002891#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002892_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002893
2894 LIBS="-lwsock32 $LIBS"
2895
2896fi
2897
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002898
2899echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002900echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
2901if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903else
2904 ac_check_lib_save_LIBS=$LIBS
2905LIBS="-lws2_32 $LIBS"
2906cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002912
2913/* Override any gcc2 internal prototype to avoid an error. */
2914#ifdef __cplusplus
2915extern "C"
2916#endif
2917/* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2919char puts ();
2920int
2921main ()
2922{
2923puts ();
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002931 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002936 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002937 { ac_try='test -z "$ac_c_werror_flag"
2938 || test ! -s conftest.err'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002940 (eval $ac_try) 2>&5
2941 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest$ac_exeext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002949 (exit $ac_status); }; }; then
2950 ac_cv_lib_ws2_32_puts=yes
2951else
2952 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002953sed 's/^/| /' conftest.$ac_ext >&5
2954
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002955ac_cv_lib_ws2_32_puts=no
2956fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002957rm -f conftest.err conftest.$ac_objext \
2958 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002959LIBS=$ac_check_lib_save_LIBS
2960fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002961echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002962echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
2963if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002964 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002965#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002966_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002967
2968 LIBS="-lws2_32 $LIBS"
2969
2970fi
2971
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002972
2973echo "$as_me:$LINENO: checking for puts in -lole32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002974echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
2975if test "${ac_cv_lib_ole32_puts+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977else
2978 ac_check_lib_save_LIBS=$LIBS
2979LIBS="-lole32 $LIBS"
2980cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002986
2987/* Override any gcc2 internal prototype to avoid an error. */
2988#ifdef __cplusplus
2989extern "C"
2990#endif
2991/* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2993char puts ();
2994int
2995main ()
2996{
2997puts ();
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3004 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003005 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003010 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003011 { ac_try='test -z "$ac_c_werror_flag"
3012 || test ! -s conftest.err'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003014 (eval $ac_try) 2>&5
3015 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest$ac_exeext'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 (eval $ac_try) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003023 (exit $ac_status); }; }; then
3024 ac_cv_lib_ole32_puts=yes
3025else
3026 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003027sed 's/^/| /' conftest.$ac_ext >&5
3028
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003029ac_cv_lib_ole32_puts=no
3030fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003031rm -f conftest.err conftest.$ac_objext \
3032 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003033LIBS=$ac_check_lib_save_LIBS
3034fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003035echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003036echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
3037if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003038 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003039#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003040_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003041
3042 LIBS="-lole32 $LIBS"
3043
3044fi
3045
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003046
3047echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003048echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
3049if test "${ac_cv_lib_winmm_puts+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052 ac_check_lib_save_LIBS=$LIBS
3053LIBS="-lwinmm $LIBS"
3054cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003060
3061/* Override any gcc2 internal prototype to avoid an error. */
3062#ifdef __cplusplus
3063extern "C"
3064#endif
3065/* We use char because int might match the return type of a gcc2
3066 builtin and then its argument prototype would still apply. */
3067char puts ();
3068int
3069main ()
3070{
3071puts ();
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003079 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003084 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003088 (eval $ac_try) 2>&5
3089 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest$ac_exeext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003097 (exit $ac_status); }; }; then
3098 ac_cv_lib_winmm_puts=yes
3099else
3100 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003101sed 's/^/| /' conftest.$ac_ext >&5
3102
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003103ac_cv_lib_winmm_puts=no
3104fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003105rm -f conftest.err conftest.$ac_objext \
3106 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003107LIBS=$ac_check_lib_save_LIBS
3108fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003109echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003110echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
3111if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003113#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003115
3116 LIBS="-lwinmm $LIBS"
3117
3118fi
3119
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003120
3121echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003122echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
3123if test "${ac_cv_lib_socket_puts+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 ac_check_lib_save_LIBS=$LIBS
3127LIBS="-lsocket $LIBS"
3128cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003134
3135/* Override any gcc2 internal prototype to avoid an error. */
3136#ifdef __cplusplus
3137extern "C"
3138#endif
3139/* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3141char puts ();
3142int
3143main ()
3144{
3145puts ();
3146 ;
3147 return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3152 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003153 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003158 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003159 { ac_try='test -z "$ac_c_werror_flag"
3160 || test ! -s conftest.err'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003162 (eval $ac_try) 2>&5
3163 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest$ac_exeext'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 (eval $ac_try) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003171 (exit $ac_status); }; }; then
3172 ac_cv_lib_socket_puts=yes
3173else
3174 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003175sed 's/^/| /' conftest.$ac_ext >&5
3176
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003177ac_cv_lib_socket_puts=no
3178fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003179rm -f conftest.err conftest.$ac_objext \
3180 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003181LIBS=$ac_check_lib_save_LIBS
3182fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003183echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003184echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
3185if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003186 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003187#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003188_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003189
3190 LIBS="-lsocket $LIBS"
3191
3192fi
3193
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003194
3195echo "$as_me:$LINENO: checking for puts in -lrt" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003196echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
3197if test "${ac_cv_lib_rt_puts+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200 ac_check_lib_save_LIBS=$LIBS
3201LIBS="-lrt $LIBS"
3202cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003203/* confdefs.h. */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003208
3209/* Override any gcc2 internal prototype to avoid an error. */
3210#ifdef __cplusplus
3211extern "C"
3212#endif
3213/* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3215char puts ();
3216int
3217main ()
3218{
3219puts ();
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3226 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003227 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003232 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003233 { ac_try='test -z "$ac_c_werror_flag"
3234 || test ! -s conftest.err'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003236 (eval $ac_try) 2>&5
3237 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003245 (exit $ac_status); }; }; then
3246 ac_cv_lib_rt_puts=yes
3247else
3248 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003249sed 's/^/| /' conftest.$ac_ext >&5
3250
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003251ac_cv_lib_rt_puts=no
3252fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003253rm -f conftest.err conftest.$ac_objext \
3254 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003255LIBS=$ac_check_lib_save_LIBS
3256fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003257echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003258echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
3259if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003260 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003261#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003262_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003263
3264 LIBS="-lrt $LIBS"
3265
3266fi
3267
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003268
3269echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003270echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
3271if test "${ac_cv_lib_nsl_puts+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274 ac_check_lib_save_LIBS=$LIBS
3275LIBS="-lnsl $LIBS"
3276cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003282
3283/* Override any gcc2 internal prototype to avoid an error. */
3284#ifdef __cplusplus
3285extern "C"
3286#endif
3287/* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3289char puts ();
3290int
3291main ()
3292{
3293puts ();
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3300 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003301 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003306 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003307 { ac_try='test -z "$ac_c_werror_flag"
3308 || test ! -s conftest.err'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003310 (eval $ac_try) 2>&5
3311 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest$ac_exeext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003319 (exit $ac_status); }; }; then
3320 ac_cv_lib_nsl_puts=yes
3321else
3322 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003323sed 's/^/| /' conftest.$ac_ext >&5
3324
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003325ac_cv_lib_nsl_puts=no
3326fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003327rm -f conftest.err conftest.$ac_objext \
3328 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003329LIBS=$ac_check_lib_save_LIBS
3330fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003331echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003332echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
3333if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003334 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003335#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003336_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003337
3338 LIBS="-lnsl $LIBS"
3339
3340fi
3341
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003342
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003343echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3344echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
3345cat >>confdefs.h <<_ACEOF
3346#define PJ_M_NAME "$target_cpu"
3347_ACEOF
3348
3349
3350echo "$as_me:$LINENO: checking memory alignment" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003351echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
3352case $target in
3353 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003354 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003355#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003356_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003357
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003358 echo "$as_me:$LINENO: result: 8 bytes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003359echo "${ECHO_T}8 bytes" >&6
3360 ;;
3361 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003362 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003363#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003364_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003365
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003366 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003367echo "${ECHO_T}4 bytes (default)" >&6
3368 ;;
3369esac
3370
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003371
3372echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003373echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3374if test "${ac_cv_c_bigendian+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003377 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003378cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003379/* confdefs.h. */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003384#include <sys/types.h>
3385#include <sys/param.h>
3386
3387int
3388main ()
3389{
3390#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3391 bogus endian macros
3392#endif
3393
3394 ;
3395 return 0;
3396}
3397_ACEOF
3398rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003401 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003406 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003410 (eval $ac_try) 2>&5
3411 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003419 (exit $ac_status); }; }; then
3420 # It does; now see whether it defined to BIG_ENDIAN or not.
3421cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003422/* confdefs.h. */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
3426/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003427#include <sys/types.h>
3428#include <sys/param.h>
3429
3430int
3431main ()
3432{
3433#if BYTE_ORDER != BIG_ENDIAN
3434 not big endian
3435#endif
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003444 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003449 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003450 { ac_try='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003453 (eval $ac_try) 2>&5
3454 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003462 (exit $ac_status); }; }; then
3463 ac_cv_c_bigendian=yes
3464else
3465 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003466sed 's/^/| /' conftest.$ac_ext >&5
3467
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003468ac_cv_c_bigendian=no
3469fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003471else
3472 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003476if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003477 # try to guess the endianness by grepping values into an object file
3478 ac_cv_c_bigendian=unknown
3479 cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h. */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h. */
3485short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3486short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3487void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3488short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3489short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3490void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3491int
3492main ()
3493{
3494 _ascii (); _ebcdic ();
3495 ;
3496 return 0;
3497}
3498_ACEOF
3499rm -f conftest.$ac_objext
3500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_c_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3522 ac_cv_c_bigendian=yes
3523fi
3524if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3525 if test "$ac_cv_c_bigendian" = unknown; then
3526 ac_cv_c_bigendian=no
3527 else
3528 # finding both strings is unlikely to happen, but who knows?
3529 ac_cv_c_bigendian=unknown
3530 fi
3531fi
3532else
3533 echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536fi
3537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003538else
3539 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003545int
3546main ()
3547{
3548 /* Are we little or big endian? From Harbison&Steele. */
3549 union
3550 {
3551 long l;
3552 char c[sizeof (long)];
3553 } u;
3554 u.l = 1;
3555 exit (u.c[sizeof (long) - 1] == 1);
3556}
3557_ACEOF
3558rm -f conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003560 (eval $ac_link) 2>&5
3561 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003565 (eval $ac_try) 2>&5
3566 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003568 (exit $ac_status); }; }; then
3569 ac_cv_c_bigendian=no
3570else
3571 echo "$as_me: program exited with status $ac_status" >&5
3572echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003576ac_cv_c_bigendian=yes
3577fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003579fi
3580fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003582fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003583echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003584echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003585case $ac_cv_c_bigendian in
3586 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003587
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003588cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003589#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003590_ACEOF
3591 ;;
3592 no)
3593 ;;
3594 *)
3595 { { echo "$as_me:$LINENO: error: unknown endianness
3596presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3597echo "$as_me: error: unknown endianness
3598presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3599 { (exit 1); exit 1; }; } ;;
3600esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003601
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003602
3603case $target in
3604 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003605 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003606#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003607_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003608
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003609 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003610#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003611_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003612
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003613 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003614#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003615_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003616
3617 ;;
3618 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003619 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003620#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003621_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003622
3623 ;;
3624 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003625 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003626#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003627_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003628
3629 ;;
3630 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003631 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003632#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003633_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003634
3635 ;;
3636 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003637 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003638#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003639_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003640
3641 ;;
3642 *)
3643 ;;
3644esac
3645
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003646
3647
3648
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003649# Check whether --enable-floating-point or --disable-floating-point was given.
3650if test "${enable_floating_point+set}" = set; then
3651 enableval="$enable_floating_point"
3652 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003653 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003654#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003655_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003656
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003657 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003658echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
3659 fi
3660else
3661
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003662 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003663#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003664_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003665
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003666 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003667echo "${ECHO_T}Checking if floating point is disabled... no" >&6
3668
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003669echo "$as_me:$LINENO: checking for fmod in -lm" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003670echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
3671if test "${ac_cv_lib_m_fmod+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 ac_check_lib_save_LIBS=$LIBS
3675LIBS="-lm $LIBS"
3676cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003682
3683/* Override any gcc2 internal prototype to avoid an error. */
3684#ifdef __cplusplus
3685extern "C"
3686#endif
3687/* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3689char fmod ();
3690int
3691main ()
3692{
3693fmod ();
3694 ;
3695 return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003701 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003706 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003707 { ac_try='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003710 (eval $ac_try) 2>&5
3711 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest$ac_exeext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003719 (exit $ac_status); }; }; then
3720 ac_cv_lib_m_fmod=yes
3721else
3722 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003723sed 's/^/| /' conftest.$ac_ext >&5
3724
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003725ac_cv_lib_m_fmod=no
3726fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003727rm -f conftest.err conftest.$ac_objext \
3728 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003729LIBS=$ac_check_lib_save_LIBS
3730fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003731echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003732echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
3733if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003734 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003735#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003736_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003737
3738 LIBS="-lm $LIBS"
3739
3740fi
3741
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003742
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003743fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003744
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003745
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003746ac_ext=c
3747ac_cpp='$CPP $CPPFLAGS'
3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003751echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003752echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3753# On Suns, sometimes $CPP names a directory.
3754if test -n "$CPP" && test -d "$CPP"; then
3755 CPP=
3756fi
3757if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763 do
3764 ac_preproc_ok=false
3765for ac_c_preproc_warn_flag in '' yes
3766do
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003776cat confdefs.h >>conftest.$ac_ext
3777cat >>conftest.$ac_ext <<_ACEOF
3778/* end confdefs.h. */
3779#ifdef __STDC__
3780# include <limits.h>
3781#else
3782# include <assert.h>
3783#endif
3784 Syntax error
3785_ACEOF
3786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3788 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003789 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003790 rm -f conftest.er1
3791 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003793 (exit $ac_status); } >/dev/null; then
3794 if test -s conftest.err; then
3795 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003797 else
3798 ac_cpp_err=
3799 fi
3800else
3801 ac_cpp_err=yes
3802fi
3803if test -z "$ac_cpp_err"; then
3804 :
3805else
3806 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003807sed 's/^/| /' conftest.$ac_ext >&5
3808
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003809 # Broken: fails on valid input.
3810continue
3811fi
3812rm -f conftest.err conftest.$ac_ext
3813
3814 # OK, works on sane cases. Now check whether non-existent headers
3815 # can be detected and how.
3816 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003817/* confdefs.h. */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003822#include <ac_nonexistent.h>
3823_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3826 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003827 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003828 rm -f conftest.er1
3829 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003831 (exit $ac_status); } >/dev/null; then
3832 if test -s conftest.err; then
3833 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003835 else
3836 ac_cpp_err=
3837 fi
3838else
3839 ac_cpp_err=yes
3840fi
3841if test -z "$ac_cpp_err"; then
3842 # Broken: success on invalid input.
3843continue
3844else
3845 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003846sed 's/^/| /' conftest.$ac_ext >&5
3847
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003848 # Passes both tests.
3849ac_preproc_ok=:
3850break
3851fi
3852rm -f conftest.err conftest.$ac_ext
3853
3854done
3855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856rm -f conftest.err conftest.$ac_ext
3857if $ac_preproc_ok; then
3858 break
3859fi
3860
3861 done
3862 ac_cv_prog_CPP=$CPP
3863
3864fi
3865 CPP=$ac_cv_prog_CPP
3866else
3867 ac_cv_prog_CPP=$CPP
3868fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003869echo "$as_me:$LINENO: result: $CPP" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003870echo "${ECHO_T}$CPP" >&6
3871ac_preproc_ok=false
3872for ac_c_preproc_warn_flag in '' yes
3873do
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003881/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003882_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003883cat confdefs.h >>conftest.$ac_ext
3884cat >>conftest.$ac_ext <<_ACEOF
3885/* end confdefs.h. */
3886#ifdef __STDC__
3887# include <limits.h>
3888#else
3889# include <assert.h>
3890#endif
3891 Syntax error
3892_ACEOF
3893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003896 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003897 rm -f conftest.er1
3898 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003900 (exit $ac_status); } >/dev/null; then
3901 if test -s conftest.err; then
3902 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003904 else
3905 ac_cpp_err=
3906 fi
3907else
3908 ac_cpp_err=yes
3909fi
3910if test -z "$ac_cpp_err"; then
3911 :
3912else
3913 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003914sed 's/^/| /' conftest.$ac_ext >&5
3915
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003916 # Broken: fails on valid input.
3917continue
3918fi
3919rm -f conftest.err conftest.$ac_ext
3920
3921 # OK, works on sane cases. Now check whether non-existent headers
3922 # can be detected and how.
3923 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003929#include <ac_nonexistent.h>
3930_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3933 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003934 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003935 rm -f conftest.er1
3936 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003938 (exit $ac_status); } >/dev/null; then
3939 if test -s conftest.err; then
3940 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003942 else
3943 ac_cpp_err=
3944 fi
3945else
3946 ac_cpp_err=yes
3947fi
3948if test -z "$ac_cpp_err"; then
3949 # Broken: success on invalid input.
3950continue
3951else
3952 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003953sed 's/^/| /' conftest.$ac_ext >&5
3954
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003955 # Passes both tests.
3956ac_preproc_ok=:
3957break
3958fi
3959rm -f conftest.err conftest.$ac_ext
3960
3961done
3962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3963rm -f conftest.err conftest.$ac_ext
3964if $ac_preproc_ok; then
3965 :
3966else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003967 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3968See \`config.log' for more details." >&5
3969echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3970See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003971 { (exit 1); exit 1; }; }
3972fi
3973
3974ac_ext=c
3975ac_cpp='$CPP $CPPFLAGS'
3976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003980
3981echo "$as_me:$LINENO: checking for egrep" >&5
3982echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3983if test "${ac_cv_prog_egrep+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3987 then ac_cv_prog_egrep='grep -E'
3988 else ac_cv_prog_egrep='egrep'
3989 fi
3990fi
3991echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3992echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3993 EGREP=$ac_cv_prog_egrep
3994
3995
3996echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3997echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3998if test "${ac_cv_header_stdc+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
4007#include <stdlib.h>
4008#include <stdarg.h>
4009#include <string.h>
4010#include <float.h>
4011
4012int
4013main ()
4014{
4015
4016 ;
4017 return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext
4021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag"
4030 || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 ac_cv_header_stdc=yes
4043else
4044 echo "$as_me: failed program was:" >&5
4045sed 's/^/| /' conftest.$ac_ext >&5
4046
4047ac_cv_header_stdc=no
4048fi
4049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050
4051if test $ac_cv_header_stdc = yes; then
4052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4053 cat >conftest.$ac_ext <<_ACEOF
4054/* confdefs.h. */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h. */
4059#include <string.h>
4060
4061_ACEOF
4062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063 $EGREP "memchr" >/dev/null 2>&1; then
4064 :
4065else
4066 ac_cv_header_stdc=no
4067fi
4068rm -f conftest*
4069
4070fi
4071
4072if test $ac_cv_header_stdc = yes; then
4073 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4074 cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
4080#include <stdlib.h>
4081
4082_ACEOF
4083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4084 $EGREP "free" >/dev/null 2>&1; then
4085 :
4086else
4087 ac_cv_header_stdc=no
4088fi
4089rm -f conftest*
4090
4091fi
4092
4093if test $ac_cv_header_stdc = yes; then
4094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4095 if test "$cross_compiling" = yes; then
4096 :
4097else
4098 cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104#include <ctype.h>
4105#if ((' ' & 0x0FF) == 0x020)
4106# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4107# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4108#else
4109# define ISLOWER(c) \
4110 (('a' <= (c) && (c) <= 'i') \
4111 || ('j' <= (c) && (c) <= 'r') \
4112 || ('s' <= (c) && (c) <= 'z'))
4113# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4114#endif
4115
4116#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4117int
4118main ()
4119{
4120 int i;
4121 for (i = 0; i < 256; i++)
4122 if (XOR (islower (i), ISLOWER (i))
4123 || toupper (i) != TOUPPER (i))
4124 exit(2);
4125 exit (0);
4126}
4127_ACEOF
4128rm -f conftest$ac_exeext
4129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4130 (eval $ac_link) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 :
4140else
4141 echo "$as_me: program exited with status $ac_status" >&5
4142echo "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145( exit $ac_status )
4146ac_cv_header_stdc=no
4147fi
4148rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4149fi
4150fi
4151fi
4152echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4153echo "${ECHO_T}$ac_cv_header_stdc" >&6
4154if test $ac_cv_header_stdc = yes; then
4155
4156cat >>confdefs.h <<\_ACEOF
4157#define STDC_HEADERS 1
4158_ACEOF
4159
4160fi
4161
4162# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4173 inttypes.h stdint.h unistd.h
4174do
4175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4176echo "$as_me:$LINENO: checking for $ac_header" >&5
4177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181 cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h. */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h. */
4187$ac_includes_default
4188
4189#include <$ac_header>
4190_ACEOF
4191rm -f conftest.$ac_objext
4192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_c_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 eval "$as_ac_Header=yes"
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218eval "$as_ac_Header=no"
4219fi
4220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221fi
4222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4224if test `eval echo '${'$as_ac_Header'}'` = yes; then
4225 cat >>confdefs.h <<_ACEOF
4226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4227_ACEOF
4228
4229fi
4230
4231done
4232
4233
4234if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4235 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4236echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4237if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239fi
4240echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4241echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4242else
4243 # Is the header compilable?
4244echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4245echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
4246cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252$ac_includes_default
4253#include <arpa/inet.h>
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag"
4265 || test ! -s conftest.err'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 ac_header_compiler=yes
4278else
4279 echo "$as_me: failed program was:" >&5
4280sed 's/^/| /' conftest.$ac_ext >&5
4281
4282ac_header_compiler=no
4283fi
4284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4286echo "${ECHO_T}$ac_header_compiler" >&6
4287
4288# Is the header present?
4289echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4290echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
4291cat >conftest.$ac_ext <<_ACEOF
4292/* confdefs.h. */
4293_ACEOF
4294cat confdefs.h >>conftest.$ac_ext
4295cat >>conftest.$ac_ext <<_ACEOF
4296/* end confdefs.h. */
4297#include <arpa/inet.h>
4298_ACEOF
4299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } >/dev/null; then
4307 if test -s conftest.err; then
4308 ac_cpp_err=$ac_c_preproc_warn_flag
4309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4310 else
4311 ac_cpp_err=
4312 fi
4313else
4314 ac_cpp_err=yes
4315fi
4316if test -z "$ac_cpp_err"; then
4317 ac_header_preproc=yes
4318else
4319 echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 ac_header_preproc=no
4323fi
4324rm -f conftest.err conftest.$ac_ext
4325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4326echo "${ECHO_T}$ac_header_preproc" >&6
4327
4328# So? What about this header?
4329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4330 yes:no: )
4331 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4332echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4333 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4334echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4335 ac_header_preproc=yes
4336 ;;
4337 no:yes:* )
4338 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4339echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4340 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4341echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4342 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4343echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4344 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4345echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4346 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4347echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4348 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4349echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
4350 (
4351 cat <<\_ASBOX
4352## ------------------------------------ ##
4353## Report this to the pjproject lists. ##
4354## ------------------------------------ ##
4355_ASBOX
4356 ) |
4357 sed "s/^/$as_me: WARNING: /" >&2
4358 ;;
4359esac
4360echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004361echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4362if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004364else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004365 ac_cv_header_arpa_inet_h=$ac_header_preproc
4366fi
4367echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4368echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4369
4370fi
4371if test $ac_cv_header_arpa_inet_h = yes; then
4372 cat >>confdefs.h <<\_ACEOF
4373#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004374_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004375
4376fi
4377
4378
4379if test "${ac_cv_header_assert_h+set}" = set; then
4380 echo "$as_me:$LINENO: checking for assert.h" >&5
4381echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4382if test "${ac_cv_header_assert_h+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384fi
4385echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4386echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4387else
4388 # Is the header compilable?
4389echo "$as_me:$LINENO: checking assert.h usability" >&5
4390echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
4391cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
4397$ac_includes_default
4398#include <assert.h>
4399_ACEOF
4400rm -f conftest.$ac_objext
4401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004403 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004404 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004405 rm -f conftest.er1
4406 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_header_compiler=yes
4423else
4424 echo "$as_me: failed program was:" >&5
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
4427ac_header_compiler=no
4428fi
4429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4431echo "${ECHO_T}$ac_header_compiler" >&6
4432
4433# Is the header present?
4434echo "$as_me:$LINENO: checking assert.h presence" >&5
4435echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
4436cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442#include <assert.h>
4443_ACEOF
4444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004451 (exit $ac_status); } >/dev/null; then
4452 if test -s conftest.err; then
4453 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004455 else
4456 ac_cpp_err=
4457 fi
4458else
4459 ac_cpp_err=yes
4460fi
4461if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004462 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004463else
4464 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004468fi
4469rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4471echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004472
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004473# So? What about this header?
4474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4475 yes:no: )
4476 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4477echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4478 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4479echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4480 ac_header_preproc=yes
4481 ;;
4482 no:yes:* )
4483 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4484echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4486echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4488echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4490echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4492echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4494echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
4495 (
4496 cat <<\_ASBOX
4497## ------------------------------------ ##
4498## Report this to the pjproject lists. ##
4499## ------------------------------------ ##
4500_ASBOX
4501 ) |
4502 sed "s/^/$as_me: WARNING: /" >&2
4503 ;;
4504esac
4505echo "$as_me:$LINENO: checking for assert.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004506echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4507if test "${ac_cv_header_assert_h+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004509else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004510 ac_cv_header_assert_h=$ac_header_preproc
4511fi
4512echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4513echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4514
4515fi
4516if test $ac_cv_header_assert_h = yes; then
4517 cat >>confdefs.h <<\_ACEOF
4518#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004519_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004520
4521fi
4522
4523
4524if test "${ac_cv_header_ctype_h+set}" = set; then
4525 echo "$as_me:$LINENO: checking for ctype.h" >&5
4526echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4527if test "${ac_cv_header_ctype_h+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529fi
4530echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4531echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4532else
4533 # Is the header compilable?
4534echo "$as_me:$LINENO: checking ctype.h usability" >&5
4535echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
4536cat >conftest.$ac_ext <<_ACEOF
4537/* confdefs.h. */
4538_ACEOF
4539cat confdefs.h >>conftest.$ac_ext
4540cat >>conftest.$ac_ext <<_ACEOF
4541/* end confdefs.h. */
4542$ac_includes_default
4543#include <ctype.h>
4544_ACEOF
4545rm -f conftest.$ac_objext
4546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004548 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004549 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004550 rm -f conftest.er1
4551 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag"
4555 || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_header_compiler=yes
4568else
4569 echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572ac_header_compiler=no
4573fi
4574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4576echo "${ECHO_T}$ac_header_compiler" >&6
4577
4578# Is the header present?
4579echo "$as_me:$LINENO: checking ctype.h presence" >&5
4580echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
4581cat >conftest.$ac_ext <<_ACEOF
4582/* confdefs.h. */
4583_ACEOF
4584cat confdefs.h >>conftest.$ac_ext
4585cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h. */
4587#include <ctype.h>
4588_ACEOF
4589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004596 (exit $ac_status); } >/dev/null; then
4597 if test -s conftest.err; then
4598 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004600 else
4601 ac_cpp_err=
4602 fi
4603else
4604 ac_cpp_err=yes
4605fi
4606if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004607 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004608else
4609 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004613fi
4614rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4616echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004617
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004618# So? What about this header?
4619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4620 yes:no: )
4621 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4622echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4623 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4624echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4625 ac_header_preproc=yes
4626 ;;
4627 no:yes:* )
4628 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4629echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4630 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4631echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4632 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4633echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4634 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4635echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4636 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4637echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4638 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4639echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
4640 (
4641 cat <<\_ASBOX
4642## ------------------------------------ ##
4643## Report this to the pjproject lists. ##
4644## ------------------------------------ ##
4645_ASBOX
4646 ) |
4647 sed "s/^/$as_me: WARNING: /" >&2
4648 ;;
4649esac
4650echo "$as_me:$LINENO: checking for ctype.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004651echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4652if test "${ac_cv_header_ctype_h+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004654else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004655 ac_cv_header_ctype_h=$ac_header_preproc
4656fi
4657echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4658echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4659
4660fi
4661if test $ac_cv_header_ctype_h = yes; then
4662 cat >>confdefs.h <<\_ACEOF
4663#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004664_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004665
4666fi
4667
4668
4669
4670case $target in
4671 *mingw* | *cygw* | *win32* | *w32* )
4672 cat >>confdefs.h <<\_ACEOF
4673#define PJ_HAS_ERRNO_H 0
4674_ACEOF
4675
4676 ;;
4677 *)
4678 if test "${ac_cv_header_errno_h+set}" = set; then
4679 echo "$as_me:$LINENO: checking for errno.h" >&5
4680echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4681if test "${ac_cv_header_errno_h+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683fi
4684echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4685echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4686else
4687 # Is the header compilable?
4688echo "$as_me:$LINENO: checking errno.h usability" >&5
4689echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4690cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4696$ac_includes_default
4697#include <errno.h>
4698_ACEOF
4699rm -f conftest.$ac_objext
4700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004702 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004703 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004704 rm -f conftest.er1
4705 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_header_compiler=yes
4722else
4723 echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
4726ac_header_compiler=no
4727fi
4728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4729echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4730echo "${ECHO_T}$ac_header_compiler" >&6
4731
4732# Is the header present?
4733echo "$as_me:$LINENO: checking errno.h presence" >&5
4734echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4735cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
4741#include <errno.h>
4742_ACEOF
4743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004750 (exit $ac_status); } >/dev/null; then
4751 if test -s conftest.err; then
4752 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004754 else
4755 ac_cpp_err=
4756 fi
4757else
4758 ac_cpp_err=yes
4759fi
4760if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004761 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004762else
4763 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004764sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004767fi
4768rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004769echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4770echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004771
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004772# So? What about this header?
4773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4774 yes:no: )
4775 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4776echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4777 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4778echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4779 ac_header_preproc=yes
4780 ;;
4781 no:yes:* )
4782 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4783echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4784 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4785echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4787echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4789echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4791echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4792 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4793echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4794 (
4795 cat <<\_ASBOX
4796## ------------------------------------ ##
4797## Report this to the pjproject lists. ##
4798## ------------------------------------ ##
4799_ASBOX
4800 ) |
4801 sed "s/^/$as_me: WARNING: /" >&2
4802 ;;
4803esac
4804echo "$as_me:$LINENO: checking for errno.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004805echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4806if test "${ac_cv_header_errno_h+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004808else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004809 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004810fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004811echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004812echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004813
4814fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004815if test $ac_cv_header_errno_h = yes; then
4816 cat >>confdefs.h <<\_ACEOF
4817#define PJ_HAS_ERRNO_H 1
4818_ACEOF
4819
4820fi
4821
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004822
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004823 ;;
4824esac
4825
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004826if test "${ac_cv_header_linux_socket_h+set}" = set; then
4827 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4828echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4829if test "${ac_cv_header_linux_socket_h+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831fi
4832echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4833echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4834else
4835 # Is the header compilable?
4836echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
4837echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
4838cat >conftest.$ac_ext <<_ACEOF
4839/* confdefs.h. */
4840_ACEOF
4841cat confdefs.h >>conftest.$ac_ext
4842cat >>conftest.$ac_ext <<_ACEOF
4843/* end confdefs.h. */
4844$ac_includes_default
4845#include <linux/socket.h>
4846_ACEOF
4847rm -f conftest.$ac_objext
4848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -z "$ac_c_werror_flag"
4857 || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler=yes
4870else
4871 echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
4874ac_header_compiler=no
4875fi
4876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878echo "${ECHO_T}$ac_header_compiler" >&6
4879
4880# Is the header present?
4881echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
4882echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
4883cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h. */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h. */
4889#include <linux/socket.h>
4890_ACEOF
4891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } >/dev/null; then
4899 if test -s conftest.err; then
4900 ac_cpp_err=$ac_c_preproc_warn_flag
4901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4902 else
4903 ac_cpp_err=
4904 fi
4905else
4906 ac_cpp_err=yes
4907fi
4908if test -z "$ac_cpp_err"; then
4909 ac_header_preproc=yes
4910else
4911 echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 ac_header_preproc=no
4915fi
4916rm -f conftest.err conftest.$ac_ext
4917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918echo "${ECHO_T}$ac_header_preproc" >&6
4919
4920# So? What about this header?
4921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4922 yes:no: )
4923 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
4924echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
4926echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
4927 ac_header_preproc=yes
4928 ;;
4929 no:yes:* )
4930 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
4931echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
4933echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
4935echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
4936 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
4937echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
4939echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
4941echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
4942 (
4943 cat <<\_ASBOX
4944## ------------------------------------ ##
4945## Report this to the pjproject lists. ##
4946## ------------------------------------ ##
4947_ASBOX
4948 ) |
4949 sed "s/^/$as_me: WARNING: /" >&2
4950 ;;
4951esac
4952echo "$as_me:$LINENO: checking for linux/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004953echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4954if test "${ac_cv_header_linux_socket_h+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004956else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004957 ac_cv_header_linux_socket_h=$ac_header_preproc
4958fi
4959echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4960echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4961
4962fi
4963if test $ac_cv_header_linux_socket_h = yes; then
4964 cat >>confdefs.h <<\_ACEOF
4965#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004966_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004967
4968fi
4969
4970
4971if test "${ac_cv_header_malloc_h+set}" = set; then
4972 echo "$as_me:$LINENO: checking for malloc.h" >&5
4973echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
4974if test "${ac_cv_header_malloc_h+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976fi
4977echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
4978echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
4979else
4980 # Is the header compilable?
4981echo "$as_me:$LINENO: checking malloc.h usability" >&5
4982echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
4983cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989$ac_includes_default
4990#include <malloc.h>
4991_ACEOF
4992rm -f conftest.$ac_objext
4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004995 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004996 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004997 rm -f conftest.er1
4998 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 ac_header_compiler=yes
5015else
5016 echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019ac_header_compiler=no
5020fi
5021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5023echo "${ECHO_T}$ac_header_compiler" >&6
5024
5025# Is the header present?
5026echo "$as_me:$LINENO: checking malloc.h presence" >&5
5027echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
5028cat >conftest.$ac_ext <<_ACEOF
5029/* confdefs.h. */
5030_ACEOF
5031cat confdefs.h >>conftest.$ac_ext
5032cat >>conftest.$ac_ext <<_ACEOF
5033/* end confdefs.h. */
5034#include <malloc.h>
5035_ACEOF
5036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005043 (exit $ac_status); } >/dev/null; then
5044 if test -s conftest.err; then
5045 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005047 else
5048 ac_cpp_err=
5049 fi
5050else
5051 ac_cpp_err=yes
5052fi
5053if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005054 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005055else
5056 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005060fi
5061rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5063echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005064
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005065# So? What about this header?
5066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5067 yes:no: )
5068 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5069echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5070 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5071echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5072 ac_header_preproc=yes
5073 ;;
5074 no:yes:* )
5075 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5076echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5078echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5080echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5081 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5082echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5084echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5086echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5087 (
5088 cat <<\_ASBOX
5089## ------------------------------------ ##
5090## Report this to the pjproject lists. ##
5091## ------------------------------------ ##
5092_ASBOX
5093 ) |
5094 sed "s/^/$as_me: WARNING: /" >&2
5095 ;;
5096esac
5097echo "$as_me:$LINENO: checking for malloc.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005098echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5099if test "${ac_cv_header_malloc_h+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005101else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005102 ac_cv_header_malloc_h=$ac_header_preproc
5103fi
5104echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5105echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5106
5107fi
5108if test $ac_cv_header_malloc_h = yes; then
5109 cat >>confdefs.h <<\_ACEOF
5110#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005111_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005112
5113fi
5114
5115
5116if test "${ac_cv_header_netdb_h+set}" = set; then
5117 echo "$as_me:$LINENO: checking for netdb.h" >&5
5118echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5119if test "${ac_cv_header_netdb_h+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121fi
5122echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5123echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5124else
5125 # Is the header compilable?
5126echo "$as_me:$LINENO: checking netdb.h usability" >&5
5127echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
5128cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h. */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h. */
5134$ac_includes_default
5135#include <netdb.h>
5136_ACEOF
5137rm -f conftest.$ac_objext
5138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005140 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005141 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005142 rm -f conftest.er1
5143 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_c_werror_flag"
5147 || test ! -s conftest.err'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; } &&
5153 { ac_try='test -s conftest.$ac_objext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 (eval $ac_try) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_header_compiler=yes
5160else
5161 echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
5164ac_header_compiler=no
5165fi
5166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5168echo "${ECHO_T}$ac_header_compiler" >&6
5169
5170# Is the header present?
5171echo "$as_me:$LINENO: checking netdb.h presence" >&5
5172echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
5173cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h. */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h. */
5179#include <netdb.h>
5180_ACEOF
5181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005188 (exit $ac_status); } >/dev/null; then
5189 if test -s conftest.err; then
5190 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005192 else
5193 ac_cpp_err=
5194 fi
5195else
5196 ac_cpp_err=yes
5197fi
5198if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005199 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005200else
5201 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005205fi
5206rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5208echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005209
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005210# So? What about this header?
5211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5212 yes:no: )
5213 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5214echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5216echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5217 ac_header_preproc=yes
5218 ;;
5219 no:yes:* )
5220 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5221echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5223echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5225echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5227echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5229echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5231echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
5232 (
5233 cat <<\_ASBOX
5234## ------------------------------------ ##
5235## Report this to the pjproject lists. ##
5236## ------------------------------------ ##
5237_ASBOX
5238 ) |
5239 sed "s/^/$as_me: WARNING: /" >&2
5240 ;;
5241esac
5242echo "$as_me:$LINENO: checking for netdb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005243echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5244if test "${ac_cv_header_netdb_h+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005246else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005247 ac_cv_header_netdb_h=$ac_header_preproc
5248fi
5249echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5250echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5251
5252fi
5253if test $ac_cv_header_netdb_h = yes; then
5254 cat >>confdefs.h <<\_ACEOF
5255#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005256_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005257
5258fi
5259
5260
5261if test "${ac_cv_header_netinet_in_h+set}" = set; then
5262 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5263echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5264if test "${ac_cv_header_netinet_in_h+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266fi
5267echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5268echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5269else
5270 # Is the header compilable?
5271echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5272echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5273cat >conftest.$ac_ext <<_ACEOF
5274/* confdefs.h. */
5275_ACEOF
5276cat confdefs.h >>conftest.$ac_ext
5277cat >>conftest.$ac_ext <<_ACEOF
5278/* end confdefs.h. */
5279$ac_includes_default
5280#include <netinet/in.h>
5281_ACEOF
5282rm -f conftest.$ac_objext
5283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5284 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005285 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005286 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005287 rm -f conftest.er1
5288 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } &&
5291 { ac_try='test -z "$ac_c_werror_flag"
5292 || test ! -s conftest.err'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; } &&
5298 { ac_try='test -s conftest.$ac_objext'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5304 ac_header_compiler=yes
5305else
5306 echo "$as_me: failed program was:" >&5
5307sed 's/^/| /' conftest.$ac_ext >&5
5308
5309ac_header_compiler=no
5310fi
5311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5313echo "${ECHO_T}$ac_header_compiler" >&6
5314
5315# Is the header present?
5316echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5317echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5318cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h. */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h. */
5324#include <netinet/in.h>
5325_ACEOF
5326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005333 (exit $ac_status); } >/dev/null; then
5334 if test -s conftest.err; then
5335 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005337 else
5338 ac_cpp_err=
5339 fi
5340else
5341 ac_cpp_err=yes
5342fi
5343if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005344 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005345else
5346 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005350fi
5351rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5353echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005354
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005355# So? What about this header?
5356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5357 yes:no: )
5358 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5359echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5361echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5362 ac_header_preproc=yes
5363 ;;
5364 no:yes:* )
5365 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5366echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5367 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5368echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5370echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5372echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5374echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5376echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5377 (
5378 cat <<\_ASBOX
5379## ------------------------------------ ##
5380## Report this to the pjproject lists. ##
5381## ------------------------------------ ##
5382_ASBOX
5383 ) |
5384 sed "s/^/$as_me: WARNING: /" >&2
5385 ;;
5386esac
5387echo "$as_me:$LINENO: checking for netinet/in.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005388echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5389if test "${ac_cv_header_netinet_in_h+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005391else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005392 ac_cv_header_netinet_in_h=$ac_header_preproc
5393fi
5394echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5395echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5396
5397fi
5398if test $ac_cv_header_netinet_in_h = yes; then
5399 cat >>confdefs.h <<\_ACEOF
5400#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005401_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005402
5403fi
5404
5405
Benny Prijonof63a2552007-02-01 00:36:52 +00005406if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5407 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5408echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5409if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411fi
5412echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5413echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5414else
5415 # Is the header compilable?
5416echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5417echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
5418cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424$ac_includes_default
5425#include <netinet/ip.h>
5426_ACEOF
5427rm -f conftest.$ac_objext
5428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429 (eval $ac_compile) 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -z "$ac_c_werror_flag"
5437 || test ! -s conftest.err'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; } &&
5443 { ac_try='test -s conftest.$ac_objext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 ac_header_compiler=yes
5450else
5451 echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454ac_header_compiler=no
5455fi
5456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5458echo "${ECHO_T}$ac_header_compiler" >&6
5459
5460# Is the header present?
5461echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5462echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
5463cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h. */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h. */
5469#include <netinet/ip.h>
5470_ACEOF
5471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } >/dev/null; then
5479 if test -s conftest.err; then
5480 ac_cpp_err=$ac_c_preproc_warn_flag
5481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5482 else
5483 ac_cpp_err=
5484 fi
5485else
5486 ac_cpp_err=yes
5487fi
5488if test -z "$ac_cpp_err"; then
5489 ac_header_preproc=yes
5490else
5491 echo "$as_me: failed program was:" >&5
5492sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 ac_header_preproc=no
5495fi
5496rm -f conftest.err conftest.$ac_ext
5497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5498echo "${ECHO_T}$ac_header_preproc" >&6
5499
5500# So? What about this header?
5501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5502 yes:no: )
5503 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5504echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5506echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5507 ac_header_preproc=yes
5508 ;;
5509 no:yes:* )
5510 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5511echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5513echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5515echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5517echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5519echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5521echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
5522 (
5523 cat <<\_ASBOX
5524## ------------------------------------ ##
5525## Report this to the pjproject lists. ##
5526## ------------------------------------ ##
5527_ASBOX
5528 ) |
5529 sed "s/^/$as_me: WARNING: /" >&2
5530 ;;
5531esac
5532echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5533echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5534if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537 ac_cv_header_netinet_ip_h=$ac_header_preproc
5538fi
5539echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5540echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5541
5542fi
5543if test $ac_cv_header_netinet_ip_h = yes; then
5544 cat >>confdefs.h <<\_ACEOF
5545#define PJ_HAS_NETINET_IP_H 1
5546_ACEOF
5547
5548fi
5549
5550
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005551if test "${ac_cv_header_setjmp_h+set}" = set; then
5552 echo "$as_me:$LINENO: checking for setjmp.h" >&5
5553echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5554if test "${ac_cv_header_setjmp_h+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556fi
5557echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5558echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5559else
5560 # Is the header compilable?
5561echo "$as_me:$LINENO: checking setjmp.h usability" >&5
5562echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
5563cat >conftest.$ac_ext <<_ACEOF
5564/* confdefs.h. */
5565_ACEOF
5566cat confdefs.h >>conftest.$ac_ext
5567cat >>conftest.$ac_ext <<_ACEOF
5568/* end confdefs.h. */
5569$ac_includes_default
5570#include <setjmp.h>
5571_ACEOF
5572rm -f conftest.$ac_objext
5573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005575 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005576 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005577 rm -f conftest.er1
5578 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -z "$ac_c_werror_flag"
5582 || test ! -s conftest.err'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 (eval $ac_try) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try='test -s conftest.$ac_objext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 ac_header_compiler=yes
5595else
5596 echo "$as_me: failed program was:" >&5
5597sed 's/^/| /' conftest.$ac_ext >&5
5598
5599ac_header_compiler=no
5600fi
5601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5603echo "${ECHO_T}$ac_header_compiler" >&6
5604
5605# Is the header present?
5606echo "$as_me:$LINENO: checking setjmp.h presence" >&5
5607echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
5608cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h. */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h. */
5614#include <setjmp.h>
5615_ACEOF
5616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005623 (exit $ac_status); } >/dev/null; then
5624 if test -s conftest.err; then
5625 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005627 else
5628 ac_cpp_err=
5629 fi
5630else
5631 ac_cpp_err=yes
5632fi
5633if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005634 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005635else
5636 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005640fi
5641rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5643echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005644
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005645# So? What about this header?
5646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5647 yes:no: )
5648 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5649echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
5651echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
5652 ac_header_preproc=yes
5653 ;;
5654 no:yes:* )
5655 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
5656echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
5658echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
5660echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
5661 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
5662echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
5664echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
5666echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
5667 (
5668 cat <<\_ASBOX
5669## ------------------------------------ ##
5670## Report this to the pjproject lists. ##
5671## ------------------------------------ ##
5672_ASBOX
5673 ) |
5674 sed "s/^/$as_me: WARNING: /" >&2
5675 ;;
5676esac
5677echo "$as_me:$LINENO: checking for setjmp.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005678echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5679if test "${ac_cv_header_setjmp_h+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005681else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005682 ac_cv_header_setjmp_h=$ac_header_preproc
5683fi
5684echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5685echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5686
5687fi
5688if test $ac_cv_header_setjmp_h = yes; then
5689 cat >>confdefs.h <<\_ACEOF
5690#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005691_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005692
5693fi
5694
5695
5696if test "${ac_cv_header_stdarg_h+set}" = set; then
5697 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5698echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5699if test "${ac_cv_header_stdarg_h+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701fi
5702echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5703echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5704else
5705 # Is the header compilable?
5706echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5707echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
5708cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714$ac_includes_default
5715#include <stdarg.h>
5716_ACEOF
5717rm -f conftest.$ac_objext
5718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005720 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005721 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005722 rm -f conftest.er1
5723 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest.$ac_objext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_header_compiler=yes
5740else
5741 echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744ac_header_compiler=no
5745fi
5746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5748echo "${ECHO_T}$ac_header_compiler" >&6
5749
5750# Is the header present?
5751echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5752echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5753cat >conftest.$ac_ext <<_ACEOF
5754/* confdefs.h. */
5755_ACEOF
5756cat confdefs.h >>conftest.$ac_ext
5757cat >>conftest.$ac_ext <<_ACEOF
5758/* end confdefs.h. */
5759#include <stdarg.h>
5760_ACEOF
5761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005768 (exit $ac_status); } >/dev/null; then
5769 if test -s conftest.err; then
5770 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005772 else
5773 ac_cpp_err=
5774 fi
5775else
5776 ac_cpp_err=yes
5777fi
5778if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005779 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005780else
5781 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005785fi
5786rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5788echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005789
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005790# So? What about this header?
5791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5792 yes:no: )
5793 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5794echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5796echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5797 ac_header_preproc=yes
5798 ;;
5799 no:yes:* )
5800 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5801echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5802 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5803echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5804 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5805echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5806 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5807echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5808 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5809echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5810 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5811echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5812 (
5813 cat <<\_ASBOX
5814## ------------------------------------ ##
5815## Report this to the pjproject lists. ##
5816## ------------------------------------ ##
5817_ASBOX
5818 ) |
5819 sed "s/^/$as_me: WARNING: /" >&2
5820 ;;
5821esac
5822echo "$as_me:$LINENO: checking for stdarg.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005823echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5824if test "${ac_cv_header_stdarg_h+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005826else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005827 ac_cv_header_stdarg_h=$ac_header_preproc
5828fi
5829echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5830echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5831
5832fi
5833if test $ac_cv_header_stdarg_h = yes; then
5834 cat >>confdefs.h <<\_ACEOF
5835#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005836_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005837
5838fi
5839
5840
5841if test "${ac_cv_header_stddef_h+set}" = set; then
5842 echo "$as_me:$LINENO: checking for stddef.h" >&5
5843echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5844if test "${ac_cv_header_stddef_h+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846fi
5847echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5848echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5849else
5850 # Is the header compilable?
5851echo "$as_me:$LINENO: checking stddef.h usability" >&5
5852echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
5853cat >conftest.$ac_ext <<_ACEOF
5854/* confdefs.h. */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
5858/* end confdefs.h. */
5859$ac_includes_default
5860#include <stddef.h>
5861_ACEOF
5862rm -f conftest.$ac_objext
5863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005865 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005866 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005867 rm -f conftest.er1
5868 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_header_compiler=yes
5885else
5886 echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889ac_header_compiler=no
5890fi
5891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5893echo "${ECHO_T}$ac_header_compiler" >&6
5894
5895# Is the header present?
5896echo "$as_me:$LINENO: checking stddef.h presence" >&5
5897echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
5898cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h. */
5904#include <stddef.h>
5905_ACEOF
5906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005913 (exit $ac_status); } >/dev/null; then
5914 if test -s conftest.err; then
5915 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005917 else
5918 ac_cpp_err=
5919 fi
5920else
5921 ac_cpp_err=yes
5922fi
5923if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005924 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005925else
5926 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005930fi
5931rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5933echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005934
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005935# So? What about this header?
5936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5937 yes:no: )
5938 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
5939echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5940 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
5941echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
5942 ac_header_preproc=yes
5943 ;;
5944 no:yes:* )
5945 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
5946echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
5948echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
5950echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
5951 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
5952echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
5954echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
5956echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
5957 (
5958 cat <<\_ASBOX
5959## ------------------------------------ ##
5960## Report this to the pjproject lists. ##
5961## ------------------------------------ ##
5962_ASBOX
5963 ) |
5964 sed "s/^/$as_me: WARNING: /" >&2
5965 ;;
5966esac
5967echo "$as_me:$LINENO: checking for stddef.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005968echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5969if test "${ac_cv_header_stddef_h+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005971else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005972 ac_cv_header_stddef_h=$ac_header_preproc
5973fi
5974echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5975echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5976
5977fi
5978if test $ac_cv_header_stddef_h = yes; then
5979 cat >>confdefs.h <<\_ACEOF
5980#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005981_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005982
5983fi
5984
5985
5986if test "${ac_cv_header_stdio_h+set}" = set; then
5987 echo "$as_me:$LINENO: checking for stdio.h" >&5
5988echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
5989if test "${ac_cv_header_stdio_h+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991fi
5992echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
5993echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
5994else
5995 # Is the header compilable?
5996echo "$as_me:$LINENO: checking stdio.h usability" >&5
5997echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
5998cat >conftest.$ac_ext <<_ACEOF
5999/* confdefs.h. */
6000_ACEOF
6001cat confdefs.h >>conftest.$ac_ext
6002cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h. */
6004$ac_includes_default
6005#include <stdio.h>
6006_ACEOF
6007rm -f conftest.$ac_objext
6008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006010 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006011 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006012 rm -f conftest.er1
6013 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_header_compiler=yes
6030else
6031 echo "$as_me: failed program was:" >&5
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
6034ac_header_compiler=no
6035fi
6036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6038echo "${ECHO_T}$ac_header_compiler" >&6
6039
6040# Is the header present?
6041echo "$as_me:$LINENO: checking stdio.h presence" >&5
6042echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
6043cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049#include <stdio.h>
6050_ACEOF
6051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006058 (exit $ac_status); } >/dev/null; then
6059 if test -s conftest.err; then
6060 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006062 else
6063 ac_cpp_err=
6064 fi
6065else
6066 ac_cpp_err=yes
6067fi
6068if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006069 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006070else
6071 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006075fi
6076rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006077echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6078echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006079
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006080# So? What about this header?
6081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6082 yes:no: )
6083 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6084echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6086echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6087 ac_header_preproc=yes
6088 ;;
6089 no:yes:* )
6090 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6091echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6093echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6095echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6097echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6099echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6101echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
6102 (
6103 cat <<\_ASBOX
6104## ------------------------------------ ##
6105## Report this to the pjproject lists. ##
6106## ------------------------------------ ##
6107_ASBOX
6108 ) |
6109 sed "s/^/$as_me: WARNING: /" >&2
6110 ;;
6111esac
6112echo "$as_me:$LINENO: checking for stdio.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006113echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6114if test "${ac_cv_header_stdio_h+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006116else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006117 ac_cv_header_stdio_h=$ac_header_preproc
6118fi
6119echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6120echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6121
6122fi
6123if test $ac_cv_header_stdio_h = yes; then
6124 cat >>confdefs.h <<\_ACEOF
6125#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006126_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006127
6128fi
6129
6130
6131if test "${ac_cv_header_stdlib_h+set}" = set; then
6132 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6133echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6134if test "${ac_cv_header_stdlib_h+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136fi
6137echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6138echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6139else
6140 # Is the header compilable?
6141echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6142echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
6143cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149$ac_includes_default
6150#include <stdlib.h>
6151_ACEOF
6152rm -f conftest.$ac_objext
6153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6154 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006155 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006156 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006157 rm -f conftest.er1
6158 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -z "$ac_c_werror_flag"
6162 || test ! -s conftest.err'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; } &&
6168 { ac_try='test -s conftest.$ac_objext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_header_compiler=yes
6175else
6176 echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179ac_header_compiler=no
6180fi
6181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6183echo "${ECHO_T}$ac_header_compiler" >&6
6184
6185# Is the header present?
6186echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6187echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
6188cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
6194#include <stdlib.h>
6195_ACEOF
6196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006203 (exit $ac_status); } >/dev/null; then
6204 if test -s conftest.err; then
6205 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006207 else
6208 ac_cpp_err=
6209 fi
6210else
6211 ac_cpp_err=yes
6212fi
6213if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006214 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006215else
6216 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006217sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006220fi
6221rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6223echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006224
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006225# So? What about this header?
6226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6227 yes:no: )
6228 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6229echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6231echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6232 ac_header_preproc=yes
6233 ;;
6234 no:yes:* )
6235 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6236echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6238echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6239 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6240echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6242echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6244echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6246echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
6247 (
6248 cat <<\_ASBOX
6249## ------------------------------------ ##
6250## Report this to the pjproject lists. ##
6251## ------------------------------------ ##
6252_ASBOX
6253 ) |
6254 sed "s/^/$as_me: WARNING: /" >&2
6255 ;;
6256esac
6257echo "$as_me:$LINENO: checking for stdlib.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006258echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6259if test "${ac_cv_header_stdlib_h+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006261else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006262 ac_cv_header_stdlib_h=$ac_header_preproc
6263fi
6264echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6265echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6266
6267fi
6268if test $ac_cv_header_stdlib_h = yes; then
6269 cat >>confdefs.h <<\_ACEOF
6270#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006271_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006272
6273fi
6274
6275
6276if test "${ac_cv_header_string_h+set}" = set; then
6277 echo "$as_me:$LINENO: checking for string.h" >&5
6278echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6279if test "${ac_cv_header_string_h+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281fi
6282echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6283echo "${ECHO_T}$ac_cv_header_string_h" >&6
6284else
6285 # Is the header compilable?
6286echo "$as_me:$LINENO: checking string.h usability" >&5
6287echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
6288cat >conftest.$ac_ext <<_ACEOF
6289/* confdefs.h. */
6290_ACEOF
6291cat confdefs.h >>conftest.$ac_ext
6292cat >>conftest.$ac_ext <<_ACEOF
6293/* end confdefs.h. */
6294$ac_includes_default
6295#include <string.h>
6296_ACEOF
6297rm -f conftest.$ac_objext
6298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006300 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006301 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006302 rm -f conftest.er1
6303 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try='test -z "$ac_c_werror_flag"
6307 || test ! -s conftest.err'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest.$ac_objext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_header_compiler=yes
6320else
6321 echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324ac_header_compiler=no
6325fi
6326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6328echo "${ECHO_T}$ac_header_compiler" >&6
6329
6330# Is the header present?
6331echo "$as_me:$LINENO: checking string.h presence" >&5
6332echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
6333cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
6339#include <string.h>
6340_ACEOF
6341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006348 (exit $ac_status); } >/dev/null; then
6349 if test -s conftest.err; then
6350 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006352 else
6353 ac_cpp_err=
6354 fi
6355else
6356 ac_cpp_err=yes
6357fi
6358if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006359 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006360else
6361 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006362sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006365fi
6366rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6368echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006369
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006370# So? What about this header?
6371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6372 yes:no: )
6373 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6374echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6376echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6377 ac_header_preproc=yes
6378 ;;
6379 no:yes:* )
6380 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6381echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6383echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6385echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6387echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6389echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6391echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6392 (
6393 cat <<\_ASBOX
6394## ------------------------------------ ##
6395## Report this to the pjproject lists. ##
6396## ------------------------------------ ##
6397_ASBOX
6398 ) |
6399 sed "s/^/$as_me: WARNING: /" >&2
6400 ;;
6401esac
6402echo "$as_me:$LINENO: checking for string.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006403echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6404if test "${ac_cv_header_string_h+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006406else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006407 ac_cv_header_string_h=$ac_header_preproc
6408fi
6409echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6410echo "${ECHO_T}$ac_cv_header_string_h" >&6
6411
6412fi
6413if test $ac_cv_header_string_h = yes; then
6414 cat >>confdefs.h <<\_ACEOF
6415#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006416_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006417
6418fi
6419
6420
6421if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6422 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
6423echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6424if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426fi
6427echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6428echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6429else
6430 # Is the header compilable?
6431echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
6432echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
6433cat >conftest.$ac_ext <<_ACEOF
6434/* confdefs.h. */
6435_ACEOF
6436cat confdefs.h >>conftest.$ac_ext
6437cat >>conftest.$ac_ext <<_ACEOF
6438/* end confdefs.h. */
6439$ac_includes_default
6440#include <sys/ioctl.h>
6441_ACEOF
6442rm -f conftest.$ac_objext
6443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6444 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006445 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006446 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006447 rm -f conftest.er1
6448 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } &&
6451 { ac_try='test -z "$ac_c_werror_flag"
6452 || test ! -s conftest.err'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_header_compiler=yes
6465else
6466 echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6468
6469ac_header_compiler=no
6470fi
6471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6473echo "${ECHO_T}$ac_header_compiler" >&6
6474
6475# Is the header present?
6476echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
6477echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
6478cat >conftest.$ac_ext <<_ACEOF
6479/* confdefs.h. */
6480_ACEOF
6481cat confdefs.h >>conftest.$ac_ext
6482cat >>conftest.$ac_ext <<_ACEOF
6483/* end confdefs.h. */
6484#include <sys/ioctl.h>
6485_ACEOF
6486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006493 (exit $ac_status); } >/dev/null; then
6494 if test -s conftest.err; then
6495 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006497 else
6498 ac_cpp_err=
6499 fi
6500else
6501 ac_cpp_err=yes
6502fi
6503if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006504 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006505else
6506 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006507sed 's/^/| /' conftest.$ac_ext >&5
6508
6509 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006510fi
6511rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6513echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006514
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006515# So? What about this header?
6516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6517 yes:no: )
6518 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6519echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
6521echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
6522 ac_header_preproc=yes
6523 ;;
6524 no:yes:* )
6525 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
6526echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
6528echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
6530echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
6532echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
6534echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
6536echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
6537 (
6538 cat <<\_ASBOX
6539## ------------------------------------ ##
6540## Report this to the pjproject lists. ##
6541## ------------------------------------ ##
6542_ASBOX
6543 ) |
6544 sed "s/^/$as_me: WARNING: /" >&2
6545 ;;
6546esac
6547echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006548echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6549if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006551else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006552 ac_cv_header_sys_ioctl_h=$ac_header_preproc
6553fi
6554echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6555echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6556
6557fi
6558if test $ac_cv_header_sys_ioctl_h = yes; then
6559 cat >>confdefs.h <<\_ACEOF
6560#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006561_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006562
6563fi
6564
6565
6566if test "${ac_cv_header_sys_select_h+set}" = set; then
6567 echo "$as_me:$LINENO: checking for sys/select.h" >&5
6568echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6569if test "${ac_cv_header_sys_select_h+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571fi
6572echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6573echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6574else
6575 # Is the header compilable?
6576echo "$as_me:$LINENO: checking sys/select.h usability" >&5
6577echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
6578cat >conftest.$ac_ext <<_ACEOF
6579/* confdefs.h. */
6580_ACEOF
6581cat confdefs.h >>conftest.$ac_ext
6582cat >>conftest.$ac_ext <<_ACEOF
6583/* end confdefs.h. */
6584$ac_includes_default
6585#include <sys/select.h>
6586_ACEOF
6587rm -f conftest.$ac_objext
6588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006590 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006591 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006592 rm -f conftest.er1
6593 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_header_compiler=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614ac_header_compiler=no
6615fi
6616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6618echo "${ECHO_T}$ac_header_compiler" >&6
6619
6620# Is the header present?
6621echo "$as_me:$LINENO: checking sys/select.h presence" >&5
6622echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
6623cat >conftest.$ac_ext <<_ACEOF
6624/* confdefs.h. */
6625_ACEOF
6626cat confdefs.h >>conftest.$ac_ext
6627cat >>conftest.$ac_ext <<_ACEOF
6628/* end confdefs.h. */
6629#include <sys/select.h>
6630_ACEOF
6631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006638 (exit $ac_status); } >/dev/null; then
6639 if test -s conftest.err; then
6640 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006642 else
6643 ac_cpp_err=
6644 fi
6645else
6646 ac_cpp_err=yes
6647fi
6648if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006649 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006650else
6651 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006652sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006655fi
6656rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006659
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006660# So? What about this header?
6661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6662 yes:no: )
6663 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
6664echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
6666echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
6667 ac_header_preproc=yes
6668 ;;
6669 no:yes:* )
6670 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
6671echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
6673echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
6675echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
6677echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
6679echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
6681echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
6682 (
6683 cat <<\_ASBOX
6684## ------------------------------------ ##
6685## Report this to the pjproject lists. ##
6686## ------------------------------------ ##
6687_ASBOX
6688 ) |
6689 sed "s/^/$as_me: WARNING: /" >&2
6690 ;;
6691esac
6692echo "$as_me:$LINENO: checking for sys/select.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006693echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6694if test "${ac_cv_header_sys_select_h+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006696else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006697 ac_cv_header_sys_select_h=$ac_header_preproc
6698fi
6699echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6700echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6701
6702fi
6703if test $ac_cv_header_sys_select_h = yes; then
6704 cat >>confdefs.h <<\_ACEOF
6705#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006706_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006707
6708fi
6709
6710
6711if test "${ac_cv_header_sys_socket_h+set}" = set; then
6712 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6713echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6714if test "${ac_cv_header_sys_socket_h+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716fi
6717echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6718echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6719else
6720 # Is the header compilable?
6721echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
6722echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
6723cat >conftest.$ac_ext <<_ACEOF
6724/* confdefs.h. */
6725_ACEOF
6726cat confdefs.h >>conftest.$ac_ext
6727cat >>conftest.$ac_ext <<_ACEOF
6728/* end confdefs.h. */
6729$ac_includes_default
6730#include <sys/socket.h>
6731_ACEOF
6732rm -f conftest.$ac_objext
6733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006735 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006736 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006737 rm -f conftest.er1
6738 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -z "$ac_c_werror_flag"
6742 || test ! -s conftest.err'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 (eval $ac_try) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; } &&
6748 { ac_try='test -s conftest.$ac_objext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 ac_header_compiler=yes
6755else
6756 echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
6758
6759ac_header_compiler=no
6760fi
6761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6763echo "${ECHO_T}$ac_header_compiler" >&6
6764
6765# Is the header present?
6766echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
6767echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
6768cat >conftest.$ac_ext <<_ACEOF
6769/* confdefs.h. */
6770_ACEOF
6771cat confdefs.h >>conftest.$ac_ext
6772cat >>conftest.$ac_ext <<_ACEOF
6773/* end confdefs.h. */
6774#include <sys/socket.h>
6775_ACEOF
6776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006783 (exit $ac_status); } >/dev/null; then
6784 if test -s conftest.err; then
6785 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006787 else
6788 ac_cpp_err=
6789 fi
6790else
6791 ac_cpp_err=yes
6792fi
6793if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006794 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006795else
6796 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006797sed 's/^/| /' conftest.$ac_ext >&5
6798
6799 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006800fi
6801rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006802echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6803echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006804
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006805# So? What about this header?
6806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6807 yes:no: )
6808 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6809echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6811echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6812 ac_header_preproc=yes
6813 ;;
6814 no:yes:* )
6815 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6816echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
6818echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6820echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6821 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
6822echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
6823 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6824echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6825 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6826echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
6827 (
6828 cat <<\_ASBOX
6829## ------------------------------------ ##
6830## Report this to the pjproject lists. ##
6831## ------------------------------------ ##
6832_ASBOX
6833 ) |
6834 sed "s/^/$as_me: WARNING: /" >&2
6835 ;;
6836esac
6837echo "$as_me:$LINENO: checking for sys/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006838echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6839if test "${ac_cv_header_sys_socket_h+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006841else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006842 ac_cv_header_sys_socket_h=$ac_header_preproc
6843fi
6844echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6845echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6846
6847fi
6848if test $ac_cv_header_sys_socket_h = yes; then
6849 cat >>confdefs.h <<\_ACEOF
6850#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006851_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006852
6853fi
6854
6855
6856if test "${ac_cv_header_sys_time_h+set}" = set; then
6857 echo "$as_me:$LINENO: checking for sys/time.h" >&5
6858echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
6859if test "${ac_cv_header_sys_time_h+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861fi
6862echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
6863echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
6864else
6865 # Is the header compilable?
6866echo "$as_me:$LINENO: checking sys/time.h usability" >&5
6867echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
6868cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
6874$ac_includes_default
6875#include <sys/time.h>
6876_ACEOF
6877rm -f conftest.$ac_objext
6878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006880 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006881 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006882 rm -f conftest.er1
6883 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -z "$ac_c_werror_flag"
6887 || test ! -s conftest.err'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest.$ac_objext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_header_compiler=yes
6900else
6901 echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904ac_header_compiler=no
6905fi
6906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6908echo "${ECHO_T}$ac_header_compiler" >&6
6909
6910# Is the header present?
6911echo "$as_me:$LINENO: checking sys/time.h presence" >&5
6912echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
6913cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h. */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h. */
6919#include <sys/time.h>
6920_ACEOF
6921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006928 (exit $ac_status); } >/dev/null; then
6929 if test -s conftest.err; then
6930 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006932 else
6933 ac_cpp_err=
6934 fi
6935else
6936 ac_cpp_err=yes
6937fi
6938if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006939 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006940else
6941 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006942sed 's/^/| /' conftest.$ac_ext >&5
6943
6944 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006945fi
6946rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6948echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006949
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006950# So? What about this header?
6951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6952 yes:no: )
6953 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
6954echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
6956echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
6957 ac_header_preproc=yes
6958 ;;
6959 no:yes:* )
6960 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
6961echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
6963echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
6965echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
6966 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
6967echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
6969echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
6971echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
6972 (
6973 cat <<\_ASBOX
6974## ------------------------------------ ##
6975## Report this to the pjproject lists. ##
6976## ------------------------------------ ##
6977_ASBOX
6978 ) |
6979 sed "s/^/$as_me: WARNING: /" >&2
6980 ;;
6981esac
6982echo "$as_me:$LINENO: checking for sys/time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006983echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
6984if test "${ac_cv_header_sys_time_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006986else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006987 ac_cv_header_sys_time_h=$ac_header_preproc
6988fi
6989echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
6990echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
6991
6992fi
6993if test $ac_cv_header_sys_time_h = yes; then
6994 cat >>confdefs.h <<\_ACEOF
6995#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006996_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006997
6998fi
6999
7000
7001if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7002 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7003echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7004if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006fi
7007echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7008echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7009else
7010 # Is the header compilable?
7011echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7012echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
7013cat >conftest.$ac_ext <<_ACEOF
7014/* confdefs.h. */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h. */
7019$ac_includes_default
7020#include <sys/timeb.h>
7021_ACEOF
7022rm -f conftest.$ac_objext
7023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007025 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007026 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007027 rm -f conftest.er1
7028 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_header_compiler=yes
7045else
7046 echo "$as_me: failed program was:" >&5
7047sed 's/^/| /' conftest.$ac_ext >&5
7048
7049ac_header_compiler=no
7050fi
7051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7053echo "${ECHO_T}$ac_header_compiler" >&6
7054
7055# Is the header present?
7056echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7057echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
7058cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
7064#include <sys/timeb.h>
7065_ACEOF
7066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007073 (exit $ac_status); } >/dev/null; then
7074 if test -s conftest.err; then
7075 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007077 else
7078 ac_cpp_err=
7079 fi
7080else
7081 ac_cpp_err=yes
7082fi
7083if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007084 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007085else
7086 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007087sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007090fi
7091rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007092echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7093echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007094
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007095# So? What about this header?
7096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7097 yes:no: )
7098 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7099echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7100 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7101echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7102 ac_header_preproc=yes
7103 ;;
7104 no:yes:* )
7105 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7106echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7108echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7110echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7112echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7114echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7115 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7116echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
7117 (
7118 cat <<\_ASBOX
7119## ------------------------------------ ##
7120## Report this to the pjproject lists. ##
7121## ------------------------------------ ##
7122_ASBOX
7123 ) |
7124 sed "s/^/$as_me: WARNING: /" >&2
7125 ;;
7126esac
7127echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007128echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7129if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007131else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007132 ac_cv_header_sys_timeb_h=$ac_header_preproc
7133fi
7134echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7135echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7136
7137fi
7138if test $ac_cv_header_sys_timeb_h = yes; then
7139 cat >>confdefs.h <<\_ACEOF
7140#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007141_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007142
7143fi
7144
7145
7146if test "${ac_cv_header_sys_types_h+set}" = set; then
7147 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7148echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7149if test "${ac_cv_header_sys_types_h+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151fi
7152echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7153echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7154else
7155 # Is the header compilable?
7156echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7157echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
7158cat >conftest.$ac_ext <<_ACEOF
7159/* confdefs.h. */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h. */
7164$ac_includes_default
7165#include <sys/types.h>
7166_ACEOF
7167rm -f conftest.$ac_objext
7168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007170 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007171 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007172 rm -f conftest.er1
7173 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -z "$ac_c_werror_flag"
7177 || test ! -s conftest.err'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 (eval $ac_try) 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; } &&
7183 { ac_try='test -s conftest.$ac_objext'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; }; then
7189 ac_header_compiler=yes
7190else
7191 echo "$as_me: failed program was:" >&5
7192sed 's/^/| /' conftest.$ac_ext >&5
7193
7194ac_header_compiler=no
7195fi
7196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7198echo "${ECHO_T}$ac_header_compiler" >&6
7199
7200# Is the header present?
7201echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7202echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
7203cat >conftest.$ac_ext <<_ACEOF
7204/* confdefs.h. */
7205_ACEOF
7206cat confdefs.h >>conftest.$ac_ext
7207cat >>conftest.$ac_ext <<_ACEOF
7208/* end confdefs.h. */
7209#include <sys/types.h>
7210_ACEOF
7211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007218 (exit $ac_status); } >/dev/null; then
7219 if test -s conftest.err; then
7220 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007222 else
7223 ac_cpp_err=
7224 fi
7225else
7226 ac_cpp_err=yes
7227fi
7228if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007229 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007230else
7231 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007232sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007235fi
7236rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7238echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007239
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007240# So? What about this header?
7241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7242 yes:no: )
7243 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7244echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7245 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7246echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7247 ac_header_preproc=yes
7248 ;;
7249 no:yes:* )
7250 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7251echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7253echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7255echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7257echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7259echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7261echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
7262 (
7263 cat <<\_ASBOX
7264## ------------------------------------ ##
7265## Report this to the pjproject lists. ##
7266## ------------------------------------ ##
7267_ASBOX
7268 ) |
7269 sed "s/^/$as_me: WARNING: /" >&2
7270 ;;
7271esac
7272echo "$as_me:$LINENO: checking for sys/types.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007273echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7274if test "${ac_cv_header_sys_types_h+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007276else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007277 ac_cv_header_sys_types_h=$ac_header_preproc
7278fi
7279echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7280echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7281
7282fi
7283if test $ac_cv_header_sys_types_h = yes; then
7284 cat >>confdefs.h <<\_ACEOF
7285#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007286_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007287
7288fi
7289
7290
7291if test "${ac_cv_header_time_h+set}" = set; then
7292 echo "$as_me:$LINENO: checking for time.h" >&5
7293echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7294if test "${ac_cv_header_time_h+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296fi
7297echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7298echo "${ECHO_T}$ac_cv_header_time_h" >&6
7299else
7300 # Is the header compilable?
7301echo "$as_me:$LINENO: checking time.h usability" >&5
7302echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
7303cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h. */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h. */
7309$ac_includes_default
7310#include <time.h>
7311_ACEOF
7312rm -f conftest.$ac_objext
7313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007315 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007316 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007317 rm -f conftest.er1
7318 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -z "$ac_c_werror_flag"
7322 || test ! -s conftest.err'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; } &&
7328 { ac_try='test -s conftest.$ac_objext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_header_compiler=yes
7335else
7336 echo "$as_me: failed program was:" >&5
7337sed 's/^/| /' conftest.$ac_ext >&5
7338
7339ac_header_compiler=no
7340fi
7341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7343echo "${ECHO_T}$ac_header_compiler" >&6
7344
7345# Is the header present?
7346echo "$as_me:$LINENO: checking time.h presence" >&5
7347echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
7348cat >conftest.$ac_ext <<_ACEOF
7349/* confdefs.h. */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h. */
7354#include <time.h>
7355_ACEOF
7356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007363 (exit $ac_status); } >/dev/null; then
7364 if test -s conftest.err; then
7365 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007367 else
7368 ac_cpp_err=
7369 fi
7370else
7371 ac_cpp_err=yes
7372fi
7373if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007374 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007375else
7376 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007380fi
7381rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7383echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007384
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007385# So? What about this header?
7386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7387 yes:no: )
7388 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7389echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7390 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
7391echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
7392 ac_header_preproc=yes
7393 ;;
7394 no:yes:* )
7395 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
7396echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
7398echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
7400echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
7401 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
7402echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7403 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
7404echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
7405 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
7406echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
7407 (
7408 cat <<\_ASBOX
7409## ------------------------------------ ##
7410## Report this to the pjproject lists. ##
7411## ------------------------------------ ##
7412_ASBOX
7413 ) |
7414 sed "s/^/$as_me: WARNING: /" >&2
7415 ;;
7416esac
7417echo "$as_me:$LINENO: checking for time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007418echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7419if test "${ac_cv_header_time_h+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007421else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007422 ac_cv_header_time_h=$ac_header_preproc
7423fi
7424echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7425echo "${ECHO_T}$ac_cv_header_time_h" >&6
7426
7427fi
7428if test $ac_cv_header_time_h = yes; then
7429 cat >>confdefs.h <<\_ACEOF
7430#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007431_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007432
7433fi
7434
7435
7436if test "${ac_cv_header_unistd_h+set}" = set; then
7437 echo "$as_me:$LINENO: checking for unistd.h" >&5
7438echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7439if test "${ac_cv_header_unistd_h+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441fi
7442echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7443echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7444else
7445 # Is the header compilable?
7446echo "$as_me:$LINENO: checking unistd.h usability" >&5
7447echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
7448cat >conftest.$ac_ext <<_ACEOF
7449/* confdefs.h. */
7450_ACEOF
7451cat confdefs.h >>conftest.$ac_ext
7452cat >>conftest.$ac_ext <<_ACEOF
7453/* end confdefs.h. */
7454$ac_includes_default
7455#include <unistd.h>
7456_ACEOF
7457rm -f conftest.$ac_objext
7458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007460 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007461 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007462 rm -f conftest.er1
7463 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_header_compiler=yes
7480else
7481 echo "$as_me: failed program was:" >&5
7482sed 's/^/| /' conftest.$ac_ext >&5
7483
7484ac_header_compiler=no
7485fi
7486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7488echo "${ECHO_T}$ac_header_compiler" >&6
7489
7490# Is the header present?
7491echo "$as_me:$LINENO: checking unistd.h presence" >&5
7492echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
7493cat >conftest.$ac_ext <<_ACEOF
7494/* confdefs.h. */
7495_ACEOF
7496cat confdefs.h >>conftest.$ac_ext
7497cat >>conftest.$ac_ext <<_ACEOF
7498/* end confdefs.h. */
7499#include <unistd.h>
7500_ACEOF
7501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007508 (exit $ac_status); } >/dev/null; then
7509 if test -s conftest.err; then
7510 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007512 else
7513 ac_cpp_err=
7514 fi
7515else
7516 ac_cpp_err=yes
7517fi
7518if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007519 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007520else
7521 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007522sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007525fi
7526rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7528echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007529
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007530# So? What about this header?
7531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7532 yes:no: )
7533 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
7534echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
7536echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
7537 ac_header_preproc=yes
7538 ;;
7539 no:yes:* )
7540 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
7541echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
7543echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
7545echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
7547echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
7549echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
7551echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
7552 (
7553 cat <<\_ASBOX
7554## ------------------------------------ ##
7555## Report this to the pjproject lists. ##
7556## ------------------------------------ ##
7557_ASBOX
7558 ) |
7559 sed "s/^/$as_me: WARNING: /" >&2
7560 ;;
7561esac
7562echo "$as_me:$LINENO: checking for unistd.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007563echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7564if test "${ac_cv_header_unistd_h+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007566else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007567 ac_cv_header_unistd_h=$ac_header_preproc
7568fi
7569echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7570echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7571
7572fi
7573if test $ac_cv_header_unistd_h = yes; then
7574 cat >>confdefs.h <<\_ACEOF
7575#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007576_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007577
7578fi
7579
7580
7581if test "${ac_cv_header_mswsock_h+set}" = set; then
7582 echo "$as_me:$LINENO: checking for mswsock.h" >&5
7583echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7584if test "${ac_cv_header_mswsock_h+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586fi
7587echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7588echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7589else
7590 # Is the header compilable?
7591echo "$as_me:$LINENO: checking mswsock.h usability" >&5
7592echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
7593cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h. */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */
7599$ac_includes_default
7600#include <mswsock.h>
7601_ACEOF
7602rm -f conftest.$ac_objext
7603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7604 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007605 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007606 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007607 rm -f conftest.er1
7608 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest.$ac_objext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_header_compiler=yes
7625else
7626 echo "$as_me: failed program was:" >&5
7627sed 's/^/| /' conftest.$ac_ext >&5
7628
7629ac_header_compiler=no
7630fi
7631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7633echo "${ECHO_T}$ac_header_compiler" >&6
7634
7635# Is the header present?
7636echo "$as_me:$LINENO: checking mswsock.h presence" >&5
7637echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
7638cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644#include <mswsock.h>
7645_ACEOF
7646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007653 (exit $ac_status); } >/dev/null; then
7654 if test -s conftest.err; then
7655 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007657 else
7658 ac_cpp_err=
7659 fi
7660else
7661 ac_cpp_err=yes
7662fi
7663if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007664 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007665else
7666 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007670fi
7671rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7673echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007674
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007675# So? What about this header?
7676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7677 yes:no: )
7678 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7679echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
7681echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
7682 ac_header_preproc=yes
7683 ;;
7684 no:yes:* )
7685 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
7686echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
7688echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
7690echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
7692echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
7694echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
7696echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
7697 (
7698 cat <<\_ASBOX
7699## ------------------------------------ ##
7700## Report this to the pjproject lists. ##
7701## ------------------------------------ ##
7702_ASBOX
7703 ) |
7704 sed "s/^/$as_me: WARNING: /" >&2
7705 ;;
7706esac
7707echo "$as_me:$LINENO: checking for mswsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007708echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7709if test "${ac_cv_header_mswsock_h+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007711else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007712 ac_cv_header_mswsock_h=$ac_header_preproc
7713fi
7714echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7715echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7716
7717fi
7718if test $ac_cv_header_mswsock_h = yes; then
7719 cat >>confdefs.h <<\_ACEOF
7720#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007721_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007722
7723fi
7724
7725
7726if test "${ac_cv_header_winsock_h+set}" = set; then
7727 echo "$as_me:$LINENO: checking for winsock.h" >&5
7728echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7729if test "${ac_cv_header_winsock_h+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731fi
7732echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7733echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7734else
7735 # Is the header compilable?
7736echo "$as_me:$LINENO: checking winsock.h usability" >&5
7737echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
7738cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h. */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h. */
7744$ac_includes_default
7745#include <winsock.h>
7746_ACEOF
7747rm -f conftest.$ac_objext
7748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007750 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007751 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007752 rm -f conftest.er1
7753 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_header_compiler=yes
7770else
7771 echo "$as_me: failed program was:" >&5
7772sed 's/^/| /' conftest.$ac_ext >&5
7773
7774ac_header_compiler=no
7775fi
7776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7778echo "${ECHO_T}$ac_header_compiler" >&6
7779
7780# Is the header present?
7781echo "$as_me:$LINENO: checking winsock.h presence" >&5
7782echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
7783cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */
7789#include <winsock.h>
7790_ACEOF
7791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7793 ac_status=$?
7794 grep -v '^ *+' conftest.er1 >conftest.err
7795 rm -f conftest.er1
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007798 (exit $ac_status); } >/dev/null; then
7799 if test -s conftest.err; then
7800 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007802 else
7803 ac_cpp_err=
7804 fi
7805else
7806 ac_cpp_err=yes
7807fi
7808if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007809 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007810else
7811 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007815fi
7816rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7818echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007819
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007820# So? What about this header?
7821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7822 yes:no: )
7823 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7824echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
7826echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
7827 ac_header_preproc=yes
7828 ;;
7829 no:yes:* )
7830 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
7831echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
7833echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
7834 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
7835echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
7837echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
7839echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
7841echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
7842 (
7843 cat <<\_ASBOX
7844## ------------------------------------ ##
7845## Report this to the pjproject lists. ##
7846## ------------------------------------ ##
7847_ASBOX
7848 ) |
7849 sed "s/^/$as_me: WARNING: /" >&2
7850 ;;
7851esac
7852echo "$as_me:$LINENO: checking for winsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007853echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7854if test "${ac_cv_header_winsock_h+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007856else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007857 ac_cv_header_winsock_h=$ac_header_preproc
7858fi
7859echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7860echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7861
7862fi
7863if test $ac_cv_header_winsock_h = yes; then
7864 cat >>confdefs.h <<\_ACEOF
7865#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007866_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007867
7868fi
7869
7870
7871if test "${ac_cv_header_winsock2_h+set}" = set; then
7872 echo "$as_me:$LINENO: checking for winsock2.h" >&5
7873echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
7874if test "${ac_cv_header_winsock2_h+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876fi
7877echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
7878echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
7879else
7880 # Is the header compilable?
7881echo "$as_me:$LINENO: checking winsock2.h usability" >&5
7882echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
7883cat >conftest.$ac_ext <<_ACEOF
7884/* confdefs.h. */
7885_ACEOF
7886cat confdefs.h >>conftest.$ac_ext
7887cat >>conftest.$ac_ext <<_ACEOF
7888/* end confdefs.h. */
7889$ac_includes_default
7890#include <winsock2.h>
7891_ACEOF
7892rm -f conftest.$ac_objext
7893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7894 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007895 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007896 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007897 rm -f conftest.er1
7898 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest.$ac_objext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_header_compiler=yes
7915else
7916 echo "$as_me: failed program was:" >&5
7917sed 's/^/| /' conftest.$ac_ext >&5
7918
7919ac_header_compiler=no
7920fi
7921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7922echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7923echo "${ECHO_T}$ac_header_compiler" >&6
7924
7925# Is the header present?
7926echo "$as_me:$LINENO: checking winsock2.h presence" >&5
7927echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
7928cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h. */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h. */
7934#include <winsock2.h>
7935_ACEOF
7936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007943 (exit $ac_status); } >/dev/null; then
7944 if test -s conftest.err; then
7945 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007947 else
7948 ac_cpp_err=
7949 fi
7950else
7951 ac_cpp_err=yes
7952fi
7953if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007954 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007955else
7956 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007957sed 's/^/| /' conftest.$ac_ext >&5
7958
7959 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007960fi
7961rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007962echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7963echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007964
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007965# So? What about this header?
7966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7967 yes:no: )
7968 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7969echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7970 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
7971echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
7972 ac_header_preproc=yes
7973 ;;
7974 no:yes:* )
7975 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
7976echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
7977 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
7978echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
7979 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
7980echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
7982echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
7984echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
7986echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
7987 (
7988 cat <<\_ASBOX
7989## ------------------------------------ ##
7990## Report this to the pjproject lists. ##
7991## ------------------------------------ ##
7992_ASBOX
7993 ) |
7994 sed "s/^/$as_me: WARNING: /" >&2
7995 ;;
7996esac
7997echo "$as_me:$LINENO: checking for winsock2.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007998echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
7999if test "${ac_cv_header_winsock2_h+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008001else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008002 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008003fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008004echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008005echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008006
8007fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008008if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008009 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008010#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008011_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008012
8013fi
8014
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008015
8016
8017echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008018echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008019cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008020#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008021_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008022
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008023
8024echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008025echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008026cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008027#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008028_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008029
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008030
8031echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008032echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008033cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008034#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008035_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008037
8038echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008039echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008040cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008041#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008042_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008043
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008044
8045echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008046echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008047cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008048#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008049_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008050
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008051
8052echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008053echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008054cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008055#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008056_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008057
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008058
8059echo "$as_me:$LINENO: checking if inet_aton is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008060echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
8061cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008067#include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008068int
8069main ()
8070{
8071inet_aton(0, 0);
8072 ;
8073 return 0;
8074}
8075_ACEOF
8076rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008079 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008084 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008085 { ac_try='test -z "$ac_c_werror_flag"
8086 || test ! -s conftest.err'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008088 (eval $ac_try) 2>&5
8089 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest.$ac_objext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008097 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008098 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008099#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008100_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008101
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008102 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008103echo "${ECHO_T}yes" >&6
8104else
8105 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008106sed 's/^/| /' conftest.$ac_ext >&5
8107
8108echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008109echo "${ECHO_T}no" >&6
8110fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008112
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008113echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008114echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
8115cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008121#include <sys/types.h>
8122 #include <sys/socket.h>
8123 #include <netinet/in.h>
8124 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008125int
8126main ()
8127{
8128struct sockaddr_in a; a.sin_len=0;
8129 ;
8130 return 0;
8131}
8132_ACEOF
8133rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008136 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008141 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008145 (eval $ac_try) 2>&5
8146 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest.$ac_objext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008154 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008155 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008156#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008157_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008158
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008159 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008160echo "${ECHO_T}yes" >&6
8161else
8162 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008163sed 's/^/| /' conftest.$ac_ext >&5
8164
8165echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008166echo "${ECHO_T}no" >&6
8167fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008169
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008170echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008171echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8172cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008173/* confdefs.h. */
8174_ACEOF
8175cat confdefs.h >>conftest.$ac_ext
8176cat >>conftest.$ac_ext <<_ACEOF
8177/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008178#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008179int
8180main ()
8181{
8182socklen_t xxx = 0;
8183 ;
8184 return 0;
8185}
8186_ACEOF
8187rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008190 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008195 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008196 { ac_try='test -z "$ac_c_werror_flag"
8197 || test ! -s conftest.err'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008199 (eval $ac_try) 2>&5
8200 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; } &&
8203 { ac_try='test -s conftest.$ac_objext'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008208 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008209 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008210#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008211_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008212
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008213 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008214echo "${ECHO_T}yes" >&6
8215else
8216 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008217sed 's/^/| /' conftest.$ac_ext >&5
8218
8219echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008220echo "${ECHO_T}no" >&6
8221fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008223
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008224echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008225echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008226case $target in
8227 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008228 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008229#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008230_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008231
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008232 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008233echo "${ECHO_T}yes" >&6
8234 ;;
8235 *)
8236 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008237/* confdefs.h. */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
8241/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008242#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008243 #include <sys/socket.h>
8244 #include <netinet/in.h>
8245 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008246int
8247main ()
8248{
8249int i=SO_ERROR;
8250 ;
8251 return 0;
8252}
8253_ACEOF
8254rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8256 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008257 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008262 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008263 { ac_try='test -z "$ac_c_werror_flag"
8264 || test ! -s conftest.err'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008266 (eval $ac_try) 2>&5
8267 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; } &&
8270 { ac_try='test -s conftest.$ac_objext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008275 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008276 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008277#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008278_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008279
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008280 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008281echo "${ECHO_T}yes" >&6
8282else
8283 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008287echo "${ECHO_T}no" >&6
8288fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008290 ;;
8291esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008292
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008293
8294echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008295echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
8296cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008302#include <pthread.h>
8303int
8304main ()
8305{
8306pthread_rwlock_t *x;
8307 ;
8308 return 0;
8309}
8310_ACEOF
8311rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008314 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008319 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008320 { ac_try='test -z "$ac_c_werror_flag"
8321 || test ! -s conftest.err'
8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008323 (eval $ac_try) 2>&5
8324 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; } &&
8327 { ac_try='test -s conftest.$ac_objext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008332 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008333 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008334#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008335_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008336
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008337 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008338echo "${ECHO_T}yes" >&6
8339else
8340 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008341sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008342
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008343cat >>confdefs.h <<\_ACEOF
8344#define PJ_EMULATE_RWMUTEX 1
8345_ACEOF
8346
8347 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008348echo "${ECHO_T}no" >&6
8349fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8351
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008352
8353case $target in
8354 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00008355 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 +00008356 ;;
8357 *)
Benny Prijonoad086e02007-02-16 10:58:18 +00008358 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 +00008359 ;;
8360esac
8361
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008362
8363
8364
Benny Prijono1d971622006-09-10 22:27:40 +00008365# Check whether --enable-sound or --disable-sound was given.
8366if test "${enable_sound+set}" = set; then
8367 enableval="$enable_sound"
8368 if test "$enable_sound" = "no"; then
8369 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008370 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00008371echo "${ECHO_T}Checking if sound is disabled... yes" >&6
8372 fi
8373
8374fi;
8375
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008376
Benny Prijono27c98722007-04-09 21:28:15 +00008377if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8378 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8379echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8380if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382fi
8383echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8384echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8385else
8386 # Is the header compilable?
8387echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
8388echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
8389cat >conftest.$ac_ext <<_ACEOF
8390/* confdefs.h. */
8391_ACEOF
8392cat confdefs.h >>conftest.$ac_ext
8393cat >>conftest.$ac_ext <<_ACEOF
8394/* end confdefs.h. */
8395$ac_includes_default
8396#include <sys/soundcard.h>
8397_ACEOF
8398rm -f conftest.$ac_objext
8399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8400 (eval $ac_compile) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag"
8408 || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_header_compiler=yes
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425ac_header_compiler=no
8426fi
8427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8429echo "${ECHO_T}$ac_header_compiler" >&6
8430
8431# Is the header present?
8432echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
8433echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
8434cat >conftest.$ac_ext <<_ACEOF
8435/* confdefs.h. */
8436_ACEOF
8437cat confdefs.h >>conftest.$ac_ext
8438cat >>conftest.$ac_ext <<_ACEOF
8439/* end confdefs.h. */
8440#include <sys/soundcard.h>
8441_ACEOF
8442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } >/dev/null; then
8450 if test -s conftest.err; then
8451 ac_cpp_err=$ac_c_preproc_warn_flag
8452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8453 else
8454 ac_cpp_err=
8455 fi
8456else
8457 ac_cpp_err=yes
8458fi
8459if test -z "$ac_cpp_err"; then
8460 ac_header_preproc=yes
8461else
8462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 ac_header_preproc=no
8466fi
8467rm -f conftest.err conftest.$ac_ext
8468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8469echo "${ECHO_T}$ac_header_preproc" >&6
8470
8471# So? What about this header?
8472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8473 yes:no: )
8474 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8475echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
8477echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
8478 ac_header_preproc=yes
8479 ;;
8480 no:yes:* )
8481 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
8482echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
8484echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
8486echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8488echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
8490echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
8492echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
8493 (
8494 cat <<\_ASBOX
8495## ------------------------------------ ##
8496## Report this to the pjproject lists. ##
8497## ------------------------------------ ##
8498_ASBOX
8499 ) |
8500 sed "s/^/$as_me: WARNING: /" >&2
8501 ;;
8502esac
8503echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8504echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8505if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8507else
8508 ac_cv_header_sys_soundcard_h=$ac_header_preproc
8509fi
8510echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8511echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8512
8513fi
8514if test $ac_cv_header_sys_soundcard_h = yes; then
8515 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
8516fi
8517
8518
8519if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8520 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8521echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8522if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524fi
8525echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8526echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8527else
8528 # Is the header compilable?
8529echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
8530echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
8531cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
8537$ac_includes_default
8538#include <linux/soundcard.h>
8539_ACEOF
8540rm -f conftest.$ac_objext
8541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542 (eval $ac_compile) 2>conftest.er1
8543 ac_status=$?
8544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag"
8550 || test ! -s conftest.err'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest.$ac_objext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_header_compiler=yes
8563else
8564 echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567ac_header_compiler=no
8568fi
8569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8571echo "${ECHO_T}$ac_header_compiler" >&6
8572
8573# Is the header present?
8574echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
8575echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
8576cat >conftest.$ac_ext <<_ACEOF
8577/* confdefs.h. */
8578_ACEOF
8579cat confdefs.h >>conftest.$ac_ext
8580cat >>conftest.$ac_ext <<_ACEOF
8581/* end confdefs.h. */
8582#include <linux/soundcard.h>
8583_ACEOF
8584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } >/dev/null; then
8592 if test -s conftest.err; then
8593 ac_cpp_err=$ac_c_preproc_warn_flag
8594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8595 else
8596 ac_cpp_err=
8597 fi
8598else
8599 ac_cpp_err=yes
8600fi
8601if test -z "$ac_cpp_err"; then
8602 ac_header_preproc=yes
8603else
8604 echo "$as_me: failed program was:" >&5
8605sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 ac_header_preproc=no
8608fi
8609rm -f conftest.err conftest.$ac_ext
8610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8611echo "${ECHO_T}$ac_header_preproc" >&6
8612
8613# So? What about this header?
8614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8615 yes:no: )
8616 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8617echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8618 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
8619echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
8620 ac_header_preproc=yes
8621 ;;
8622 no:yes:* )
8623 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
8624echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
8625 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
8626echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
8627 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
8628echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
8629 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8630echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8631 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
8632echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
8633 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
8634echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
8635 (
8636 cat <<\_ASBOX
8637## ------------------------------------ ##
8638## Report this to the pjproject lists. ##
8639## ------------------------------------ ##
8640_ASBOX
8641 ) |
8642 sed "s/^/$as_me: WARNING: /" >&2
8643 ;;
8644esac
8645echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8646echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8647if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649else
8650 ac_cv_header_linux_soundcard_h=$ac_header_preproc
8651fi
8652echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8653echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8654
8655fi
8656if test $ac_cv_header_linux_soundcard_h = yes; then
8657 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
8658fi
8659
8660
8661if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8662 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
8663echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
8664if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666fi
8667echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
8668echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
8669else
8670 # Is the header compilable?
8671echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
8672echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
8673cat >conftest.$ac_ext <<_ACEOF
8674/* confdefs.h. */
8675_ACEOF
8676cat confdefs.h >>conftest.$ac_ext
8677cat >>conftest.$ac_ext <<_ACEOF
8678/* end confdefs.h. */
8679$ac_includes_default
8680#include <machine/soundcard.h>
8681_ACEOF
8682rm -f conftest.$ac_objext
8683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8684 (eval $ac_compile) 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -z "$ac_c_werror_flag"
8692 || test ! -s conftest.err'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; } &&
8698 { ac_try='test -s conftest.$ac_objext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_header_compiler=yes
8705else
8706 echo "$as_me: failed program was:" >&5
8707sed 's/^/| /' conftest.$ac_ext >&5
8708
8709ac_header_compiler=no
8710fi
8711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713echo "${ECHO_T}$ac_header_compiler" >&6
8714
8715# Is the header present?
8716echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
8717echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
8718cat >conftest.$ac_ext <<_ACEOF
8719/* confdefs.h. */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
8723/* end confdefs.h. */
8724#include <machine/soundcard.h>
8725_ACEOF
8726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } >/dev/null; then
8734 if test -s conftest.err; then
8735 ac_cpp_err=$ac_c_preproc_warn_flag
8736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8737 else
8738 ac_cpp_err=
8739 fi
8740else
8741 ac_cpp_err=yes
8742fi
8743if test -z "$ac_cpp_err"; then
8744 ac_header_preproc=yes
8745else
8746 echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
8749 ac_header_preproc=no
8750fi
8751rm -f conftest.err conftest.$ac_ext
8752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8753echo "${ECHO_T}$ac_header_preproc" >&6
8754
8755# So? What about this header?
8756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8757 yes:no: )
8758 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8759echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
8761echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
8762 ac_header_preproc=yes
8763 ;;
8764 no:yes:* )
8765 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
8766echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
8768echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
8770echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8772echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
8774echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
8776echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
8777 (
8778 cat <<\_ASBOX
8779## ------------------------------------ ##
8780## Report this to the pjproject lists. ##
8781## ------------------------------------ ##
8782_ASBOX
8783 ) |
8784 sed "s/^/$as_me: WARNING: /" >&2
8785 ;;
8786esac
8787echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
8788echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
8789if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791else
8792 ac_cv_header_machine_soundcard_h=$ac_header_preproc
8793fi
8794echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
8795echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
8796
8797fi
8798if test $ac_cv_header_machine_soundcard_h = yes; then
8799 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
8800fi
8801
8802
8803
Benny Prijono1d971622006-09-10 22:27:40 +00008804if test "$enable_sound" = "no"; then
8805 true;
8806else
8807 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00008808 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00008809 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
8810 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00008811 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00008812 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
8813 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008814 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00008815echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
8816 else
8817 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008818 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00008819echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00008820 fi
Benny Prijonob466e232006-09-10 08:53:59 +00008821 ;;
8822 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008823 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008824 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008825echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
8826 ;;
8827 *rtems*)
8828 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008829 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008830echo "${ECHO_T}Checking sound device backend... null sound" >&6
8831 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008832 *)
8833 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008834 if test "${ac_cv_header_alsa_version_h+set}" = set; then
8835 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008836echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
8837if test "${ac_cv_header_alsa_version_h+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008839fi
8840echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
8841echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008842else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008843 # Is the header compilable?
8844echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
8845echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
8846cat >conftest.$ac_ext <<_ACEOF
8847/* confdefs.h. */
8848_ACEOF
8849cat confdefs.h >>conftest.$ac_ext
8850cat >>conftest.$ac_ext <<_ACEOF
8851/* end confdefs.h. */
8852$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008853#include <alsa/version.h>
8854_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008855rm -f conftest.$ac_objext
8856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008858 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008859 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008860 rm -f conftest.er1
8861 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try='test -z "$ac_c_werror_flag"
8865 || test ! -s conftest.err'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 ac_header_compiler=yes
8878else
8879 echo "$as_me: failed program was:" >&5
8880sed 's/^/| /' conftest.$ac_ext >&5
8881
8882ac_header_compiler=no
8883fi
8884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8886echo "${ECHO_T}$ac_header_compiler" >&6
8887
8888# Is the header present?
8889echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
8890echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
8891cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h. */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h. */
8897#include <alsa/version.h>
8898_ACEOF
8899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008906 (exit $ac_status); } >/dev/null; then
8907 if test -s conftest.err; then
8908 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008910 else
8911 ac_cpp_err=
8912 fi
8913else
8914 ac_cpp_err=yes
8915fi
8916if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008917 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008918else
8919 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008923fi
8924rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8926echo "${ECHO_T}$ac_header_preproc" >&6
8927
8928# So? What about this header?
8929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8930 yes:no: )
8931 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8932echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8933 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
8934echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
8935 ac_header_preproc=yes
8936 ;;
8937 no:yes:* )
8938 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
8939echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
8941echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
8943echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
8945echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
8947echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
8948 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
8949echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
8950 (
8951 cat <<\_ASBOX
8952## ------------------------------------ ##
8953## Report this to the pjproject lists. ##
8954## ------------------------------------ ##
8955_ASBOX
8956 ) |
8957 sed "s/^/$as_me: WARNING: /" >&2
8958 ;;
8959esac
8960echo "$as_me:$LINENO: checking for alsa/version.h" >&5
8961echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
8962if test "${ac_cv_header_alsa_version_h+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008966fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008967echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008968echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008969
8970fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008971if test $ac_cv_header_alsa_version_h = yes; then
8972 ac_pa_use_alsa=1
8973
8974 LIBS="$LIBS -lasound"
8975
8976else
8977 ac_pa_use_alsa=0
8978
8979fi
8980
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008981
8982 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008983echo "${ECHO_T}Checking sound device backend... unix" >&6
8984 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00008985 esac
8986fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008987
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008988
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008989# Check whether --enable-small-filter or --disable-small-filter was given.
8990if test "${enable_small_filter+set}" = set; then
8991 enableval="$enable_small_filter"
8992 if test "$enable_small_filter" = "no"; then
8993 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008994 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008995echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
8996 fi
8997else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008998 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008999echo "${ECHO_T}Checking if small filter is disabled... no" >&6
9000fi;
9001
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009002
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009003# Check whether --enable-large-filter or --disable-large-filter was given.
9004if test "${enable_large_filter+set}" = set; then
9005 enableval="$enable_large_filter"
9006 if test "$enable_large_filter" = "no"; then
9007 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009008 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009009echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
9010 fi
9011else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009012 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009013echo "${ECHO_T}Checking if large filter is disabled... no" >&6
9014fi;
9015
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009016
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009017# Check whether --enable-speex-aec or --disable-speex-aec was given.
9018if test "${enable_speex_aec+set}" = set; then
9019 enableval="$enable_speex_aec"
9020 if test "$enable_speex_aec" = "no"; then
9021 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009022 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009023echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
9024 fi
9025else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009026 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009027echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
9028fi;
9029
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009030
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009031# Check whether --enable-g711-codec or --disable-g711-codec was given.
9032if test "${enable_g711_codec+set}" = set; then
9033 enableval="$enable_g711_codec"
9034 if test "$enable_g711_codec" = "no"; then
9035 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009036 cat >>confdefs.h <<\_ACEOF
9037#define PJMEDIA_HAS_G711_CODEC 0
9038_ACEOF
9039
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009040 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009041echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
9042 fi
9043else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009044 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009045echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
9046fi;
9047
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009048
9049
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009050# Check whether --enable-l16-codec or --disable-l16-codec was given.
9051if test "${enable_l16_codec+set}" = set; then
9052 enableval="$enable_l16_codec"
9053 if test "$enable_l16_codec" = "no"; then
9054 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009055 cat >>confdefs.h <<\_ACEOF
9056#define PJMEDIA_HAS_L16_CODEC 0
9057_ACEOF
9058
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009059 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009060echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
9061 fi
9062else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009063 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00009064echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009065fi;
9066
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009067
9068
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009069# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
9070if test "${enable_gsm_codec+set}" = set; then
9071 enableval="$enable_gsm_codec"
9072 if test "$enable_gsm_codec" = "no"; then
9073 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009074 cat >>confdefs.h <<\_ACEOF
9075#define PJMEDIA_HAS_GSM_CODEC 0
9076_ACEOF
9077
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009078 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009079echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
9080 fi
9081else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009082 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009083echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
9084fi;
9085
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009086
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009087# Check whether --enable-speex-codec or --disable-speex-codec was given.
9088if test "${enable_speex_codec+set}" = set; then
9089 enableval="$enable_speex_codec"
9090 if test "$enable_speex_codec" = "no"; then
9091 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009092 cat >>confdefs.h <<\_ACEOF
9093#define PJMEDIA_HAS_SPEEX_CODEC 0
9094_ACEOF
9095
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009096 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009097echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
9098 fi
9099else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009100 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009101echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
9102fi;
9103
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009104
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009105# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
9106if test "${enable_ilbc_codec+set}" = set; then
9107 enableval="$enable_ilbc_codec"
9108 if test "$enable_ilbc_codec" = "no"; then
9109 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009110 cat >>confdefs.h <<\_ACEOF
9111#define PJMEDIA_HAS_ILBC_CODEC 0
9112_ACEOF
9113
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009114 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009115echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
9116 fi
9117else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009118 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009119echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
9120fi;
9121
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009122
9123
9124
9125
9126# Check whether --enable-ssl or --disable-ssl was given.
9127if test "${enable_ssl+set}" = set; then
9128 enableval="$enable_ssl"
9129
9130 if test "$enable_ssl" = "no"; then
9131 ac_no_ssl=1
9132 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
9133echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
9134 fi
9135
9136else
9137
9138 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
9139echo "${ECHO_T}checking for OpenSSL installations.." >&6
9140
9141
9142
9143 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9144 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9145echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9146if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148fi
9149echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9150echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9151else
9152 # Is the header compilable?
9153echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9154echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9155cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161$ac_includes_default
9162#include <openssl/ssl.h>
9163_ACEOF
9164rm -f conftest.$ac_objext
9165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9166 (eval $ac_compile) 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_c_werror_flag"
9174 || test ! -s conftest.err'
9175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 (eval $ac_try) 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; } &&
9180 { ac_try='test -s conftest.$ac_objext'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; }; then
9186 ac_header_compiler=yes
9187else
9188 echo "$as_me: failed program was:" >&5
9189sed 's/^/| /' conftest.$ac_ext >&5
9190
9191ac_header_compiler=no
9192fi
9193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9195echo "${ECHO_T}$ac_header_compiler" >&6
9196
9197# Is the header present?
9198echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9199echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9200cat >conftest.$ac_ext <<_ACEOF
9201/* confdefs.h. */
9202_ACEOF
9203cat confdefs.h >>conftest.$ac_ext
9204cat >>conftest.$ac_ext <<_ACEOF
9205/* end confdefs.h. */
9206#include <openssl/ssl.h>
9207_ACEOF
9208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } >/dev/null; then
9216 if test -s conftest.err; then
9217 ac_cpp_err=$ac_c_preproc_warn_flag
9218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9219 else
9220 ac_cpp_err=
9221 fi
9222else
9223 ac_cpp_err=yes
9224fi
9225if test -z "$ac_cpp_err"; then
9226 ac_header_preproc=yes
9227else
9228 echo "$as_me: failed program was:" >&5
9229sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ac_header_preproc=no
9232fi
9233rm -f conftest.err conftest.$ac_ext
9234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9235echo "${ECHO_T}$ac_header_preproc" >&6
9236
9237# So? What about this header?
9238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9239 yes:no: )
9240 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9241echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9243echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9244 ac_header_preproc=yes
9245 ;;
9246 no:yes:* )
9247 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9248echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9250echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9252echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9254echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9256echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9258echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9259 (
9260 cat <<\_ASBOX
9261## ------------------------------------ ##
9262## Report this to the pjproject lists. ##
9263## ------------------------------------ ##
9264_ASBOX
9265 ) |
9266 sed "s/^/$as_me: WARNING: /" >&2
9267 ;;
9268esac
9269echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9270echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9271if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273else
9274 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9275fi
9276echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9277echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9278
9279fi
9280if test $ac_cv_header_openssl_ssl_h = yes; then
9281 openssl_h_present=1
9282fi
9283
9284
9285 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9286echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
9287if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289else
9290 ac_check_lib_save_LIBS=$LIBS
9291LIBS="-lssl $LIBS"
9292cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h. */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h. */
9298
9299/* Override any gcc2 internal prototype to avoid an error. */
9300#ifdef __cplusplus
9301extern "C"
9302#endif
9303/* We use char because int might match the return type of a gcc2
9304 builtin and then its argument prototype would still apply. */
9305char SSL_library_init ();
9306int
9307main ()
9308{
9309SSL_library_init ();
9310 ;
9311 return 0;
9312}
9313_ACEOF
9314rm -f conftest.$ac_objext conftest$ac_exeext
9315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -z "$ac_c_werror_flag"
9324 || test ! -s conftest.err'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; } &&
9330 { ac_try='test -s conftest$ac_exeext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_cv_lib_ssl_SSL_library_init=yes
9337else
9338 echo "$as_me: failed program was:" >&5
9339sed 's/^/| /' conftest.$ac_ext >&5
9340
9341ac_cv_lib_ssl_SSL_library_init=no
9342fi
9343rm -f conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext conftest.$ac_ext
9345LIBS=$ac_check_lib_save_LIBS
9346fi
9347echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9348echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
9349if test $ac_cv_lib_ssl_SSL_library_init = yes; then
9350 libssl_present=1 && LIBS="$LIBS -lssl"
9351fi
9352
9353 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
9354echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
9355if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357else
9358 ac_check_lib_save_LIBS=$LIBS
9359LIBS="-lcrypto $LIBS"
9360cat >conftest.$ac_ext <<_ACEOF
9361/* confdefs.h. */
9362_ACEOF
9363cat confdefs.h >>conftest.$ac_ext
9364cat >>conftest.$ac_ext <<_ACEOF
9365/* end confdefs.h. */
9366
9367/* Override any gcc2 internal prototype to avoid an error. */
9368#ifdef __cplusplus
9369extern "C"
9370#endif
9371/* We use char because int might match the return type of a gcc2
9372 builtin and then its argument prototype would still apply. */
9373char ERR_load_BIO_strings ();
9374int
9375main ()
9376{
9377ERR_load_BIO_strings ();
9378 ;
9379 return 0;
9380}
9381_ACEOF
9382rm -f conftest.$ac_objext conftest$ac_exeext
9383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384 (eval $ac_link) 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag"
9392 || test ! -s conftest.err'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; } &&
9398 { ac_try='test -s conftest$ac_exeext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 (eval $ac_try) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
9405else
9406 echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409ac_cv_lib_crypto_ERR_load_BIO_strings=no
9410fi
9411rm -f conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413LIBS=$ac_check_lib_save_LIBS
9414fi
9415echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
9416echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
9417if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
9418 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
9419fi
9420
9421 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
9422 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
9423echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
9424 cat >>confdefs.h <<\_ACEOF
9425#define PJSIP_HAS_TLS_TRANSPORT 1
9426_ACEOF
9427
9428 else
9429 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
9430echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
9431 fi
9432
9433fi;
9434
9435
9436
9437
9438echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009439echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009440case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009441 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009442#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009443_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009444
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009445 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009446echo "${ECHO_T}yes" >&6
9447 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009448 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009449#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009450_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009451
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009452 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009453echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009454 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009455echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
9456 ;;
9457esac
9458
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009459echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009460echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
9461case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009462 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009463#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009464_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009465
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009466 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009467echo "${ECHO_T}yes" >&6
9468 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009469 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009470#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009471_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009472
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009473 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009474echo "${ECHO_T}no (default)" >&6
9475 ;;
9476esac
9477
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009478echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009479echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
9480case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009481 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009482#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009483_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009484
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009485 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009486echo "${ECHO_T}yes" >&6
9487 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009488 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009489#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009490_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009491
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009492 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009493echo "${ECHO_T}no (default)" >&6
9494 ;;
9495esac
9496
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009497case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009498 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009499 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009500#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009501_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009502
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009503 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009504 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009505#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009506_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009507
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009508 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009509echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
9510 ;;
9511esac
9512
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009513case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009514 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009515 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009516#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009517_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009518
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009519 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009520 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009521#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009522_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009523
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009524 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009525echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
9526 ;;
9527esac
9528
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009529
9530
9531
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009532if test "$build" = "$host"; then
9533 ac_cross_compile=
9534else
Benny Prijono5b818b22006-09-17 22:58:51 +00009535 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009536fi
9537ac_linux_poll=select
9538
9539ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009540
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009541
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009542case $target in
9543 *rtems*)
9544 ac_main_obj=main_rtems.o
9545 ;;
9546 *)
9547 ac_main_obj=main.o
9548 ;;
9549esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009550
9551cat >confcache <<\_ACEOF
9552# This file is a shell script that caches the results of configure
9553# tests run on this system so they can be shared between configure
9554# scripts and configure runs, see configure's option --config-cache.
9555# It is not useful on other systems. If it contains results you don't
9556# want to keep, you may remove or edit it.
9557#
9558# config.status only pays attention to the cache file if you give it
9559# the --recheck option to rerun configure.
9560#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009561# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009562# loading this file, other *unset* `ac_cv_foo' will be assigned the
9563# following values.
9564
9565_ACEOF
9566
9567# The following way of writing the cache mishandles newlines in values,
9568# but we know of no workaround that is simple, portable, and efficient.
9569# So, don't put newlines in cache variables' values.
9570# Ultrix sh set writes to stderr and can't be redirected directly,
9571# and sets the high bit in the cache file unless we assign to the vars.
9572{
9573 (set) 2>&1 |
9574 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9575 *ac_space=\ *)
9576 # `set' does not quote correctly, so add quotes (double-quote
9577 # substitution turns \\\\ into \\, and sed turns \\ into \).
9578 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009579 "s/'/'\\\\''/g;
9580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009581 ;;
9582 *)
9583 # `set' quotes correctly as required by POSIX, so do not add quotes.
9584 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009585 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009586 ;;
9587 esac;
9588} |
9589 sed '
9590 t clear
9591 : clear
9592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9593 t end
9594 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9595 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009596if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009597 if test -w $cache_file; then
9598 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9599 cat confcache >$cache_file
9600 else
9601 echo "not updating unwritable cache $cache_file"
9602 fi
9603fi
9604rm -f confcache
9605
9606test "x$prefix" = xNONE && prefix=$ac_default_prefix
9607# Let make expand exec_prefix.
9608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9609
9610# VPATH may cause trouble with some makes, so we remove $(srcdir),
9611# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9612# trailing colons and then remove the whole line if VPATH becomes empty
9613# (actually we leave an empty line to preserve line numbers).
9614if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009615 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009616s/:*\$(srcdir):*/:/;
9617s/:*\${srcdir}:*/:/;
9618s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009619s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009620s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009621s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009622}'
9623fi
9624
9625DEFS=-DHAVE_CONFIG_H
9626
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009627ac_libobjs=
9628ac_ltlibobjs=
9629for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9630 # 1. Remove the extension, and $U if already installed.
9631 ac_i=`echo "$ac_i" |
9632 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9633 # 2. Add them.
9634 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9635 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9636done
9637LIBOBJS=$ac_libobjs
9638
9639LTLIBOBJS=$ac_ltlibobjs
9640
9641
9642
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009643: ${CONFIG_STATUS=./config.status}
9644ac_clean_files_save=$ac_clean_files
9645ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009646{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009647echo "$as_me: creating $CONFIG_STATUS" >&6;}
9648cat >$CONFIG_STATUS <<_ACEOF
9649#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009650# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009651# Run this file to recreate the current configuration.
9652# Compiler output produced by configure, useful for debugging
9653# configure, is in config.log if it exists.
9654
9655debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009656ac_cs_recheck=false
9657ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009658SHELL=\${CONFIG_SHELL-$SHELL}
9659_ACEOF
9660
9661cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009662## --------------------- ##
9663## M4sh Initialization. ##
9664## --------------------- ##
9665
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009666# Be Bourne compatible
9667if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9668 emulate sh
9669 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009670 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9671 # is contrary to our usage. Disable this feature.
9672 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009673elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9674 set -o posix
9675fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009676DUALCASE=1; export DUALCASE # for MKS sh
9677
9678# Support unset when possible.
9679if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9680 as_unset=unset
9681else
9682 as_unset=false
9683fi
9684
9685
9686# Work around bugs in pre-3.0 UWIN ksh.
9687$as_unset ENV MAIL MAILPATH
9688PS1='$ '
9689PS2='> '
9690PS4='+ '
9691
9692# NLS nuisances.
9693for as_var in \
9694 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9695 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9696 LC_TELEPHONE LC_TIME
9697do
9698 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9699 eval $as_var=C; export $as_var
9700 else
9701 $as_unset $as_var
9702 fi
9703done
9704
9705# Required to use basename.
9706if expr a : '\(a\)' >/dev/null 2>&1; then
9707 as_expr=expr
9708else
9709 as_expr=false
9710fi
9711
9712if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9713 as_basename=basename
9714else
9715 as_basename=false
9716fi
9717
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009718
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009719# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009720as_me=`$as_basename "$0" ||
9721$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9722 X"$0" : 'X\(//\)$' \| \
9723 X"$0" : 'X\(/\)$' \| \
9724 . : '\(.\)' 2>/dev/null ||
9725echo X/"$0" |
9726 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9727 /^X\/\(\/\/\)$/{ s//\1/; q; }
9728 /^X\/\(\/\).*/{ s//\1/; q; }
9729 s/.*/./; q'`
9730
9731
9732# PATH needs CR, and LINENO needs CR and PATH.
9733# Avoid depending upon Character Ranges.
9734as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9735as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9736as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9737as_cr_digits='0123456789'
9738as_cr_alnum=$as_cr_Letters$as_cr_digits
9739
9740# The user is always right.
9741if test "${PATH_SEPARATOR+set}" != set; then
9742 echo "#! /bin/sh" >conf$$.sh
9743 echo "exit 0" >>conf$$.sh
9744 chmod +x conf$$.sh
9745 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9746 PATH_SEPARATOR=';'
9747 else
9748 PATH_SEPARATOR=:
9749 fi
9750 rm -f conf$$.sh
9751fi
9752
9753
9754 as_lineno_1=$LINENO
9755 as_lineno_2=$LINENO
9756 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9757 test "x$as_lineno_1" != "x$as_lineno_2" &&
9758 test "x$as_lineno_3" = "x$as_lineno_2" || {
9759 # Find who we are. Look in the path if we contain no path at all
9760 # relative or not.
9761 case $0 in
9762 *[\\/]* ) as_myself=$0 ;;
9763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764for as_dir in $PATH
9765do
9766 IFS=$as_save_IFS
9767 test -z "$as_dir" && as_dir=.
9768 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9769done
9770
9771 ;;
9772 esac
9773 # We did not find ourselves, most probably we were run as `sh COMMAND'
9774 # in which case we are not to be found in the path.
9775 if test "x$as_myself" = x; then
9776 as_myself=$0
9777 fi
9778 if test ! -f "$as_myself"; then
9779 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9780echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9781 { (exit 1); exit 1; }; }
9782 fi
9783 case $CONFIG_SHELL in
9784 '')
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for as_base in sh bash ksh sh5; do
9791 case $as_dir in
9792 /*)
9793 if ("$as_dir/$as_base" -c '
9794 as_lineno_1=$LINENO
9795 as_lineno_2=$LINENO
9796 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9797 test "x$as_lineno_1" != "x$as_lineno_2" &&
9798 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9799 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9800 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9801 CONFIG_SHELL=$as_dir/$as_base
9802 export CONFIG_SHELL
9803 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9804 fi;;
9805 esac
9806 done
9807done
9808;;
9809 esac
9810
9811 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9812 # uniformly replaced by the line number. The first 'sed' inserts a
9813 # line-number line before each line; the second 'sed' does the real
9814 # work. The second script uses 'N' to pair each line-number line
9815 # with the numbered line, and appends trailing '-' during
9816 # substitution so that $LINENO is not a special case at line end.
9817 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9818 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9819 sed '=' <$as_myself |
9820 sed '
9821 N
9822 s,$,-,
9823 : loop
9824 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9825 t loop
9826 s,-$,,
9827 s,^['$as_cr_digits']*\n,,
9828 ' >$as_me.lineno &&
9829 chmod +x $as_me.lineno ||
9830 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9831echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9832 { (exit 1); exit 1; }; }
9833
9834 # Don't try to exec as it changes $[0], causing all sort of problems
9835 # (the dirname of $[0] is not the place where we might find the
9836 # original and so on. Autoconf is especially sensible to this).
9837 . ./$as_me.lineno
9838 # Exit status is that of the last command.
9839 exit
9840}
9841
9842
9843case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9844 *c*,-n*) ECHO_N= ECHO_C='
9845' ECHO_T=' ' ;;
9846 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9847 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9848esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009849
9850if expr a : '\(a\)' >/dev/null 2>&1; then
9851 as_expr=expr
9852else
9853 as_expr=false
9854fi
9855
9856rm -f conf$$ conf$$.exe conf$$.file
9857echo >conf$$.file
9858if ln -s conf$$.file conf$$ 2>/dev/null; then
9859 # We could just check for DJGPP; but this test a) works b) is more generic
9860 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9861 if test -f conf$$.exe; then
9862 # Don't use ln at all; we don't have any links
9863 as_ln_s='cp -p'
9864 else
9865 as_ln_s='ln -s'
9866 fi
9867elif ln conf$$.file conf$$ 2>/dev/null; then
9868 as_ln_s=ln
9869else
9870 as_ln_s='cp -p'
9871fi
9872rm -f conf$$ conf$$.exe conf$$.file
9873
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009874if mkdir -p . 2>/dev/null; then
9875 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +00009876else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009877 test -d ./-p && rmdir ./-p
9878 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00009879fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009880
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009881as_executable_p="test -f"
9882
9883# Sed expression to map a string onto a valid CPP name.
9884as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9885
9886# Sed expression to map a string onto a valid variable name.
9887as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9888
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009889
9890# IFS
9891# We need space, tab and new line, in precisely that order.
9892as_nl='
9893'
9894IFS=" $as_nl"
9895
9896# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009897$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009898
9899exec 6>&1
9900
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009901# Open the log real soon, to keep \$[0] and so on meaningful, and to
9902# report actual input values of CONFIG_FILES etc. instead of their
9903# values after options handling. Logging --version etc. is OK.
9904exec 5>>config.log
9905{
9906 echo
9907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9908## Running $as_me. ##
9909_ASBOX
9910} >&5
9911cat >&5 <<_CSEOF
9912
Benny Prijono27c98722007-04-09 21:28:15 +00009913This file was extended by pjproject $as_me 0.6.0, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009914generated by GNU Autoconf 2.59. Invocation command line was
9915
9916 CONFIG_FILES = $CONFIG_FILES
9917 CONFIG_HEADERS = $CONFIG_HEADERS
9918 CONFIG_LINKS = $CONFIG_LINKS
9919 CONFIG_COMMANDS = $CONFIG_COMMANDS
9920 $ $0 $@
9921
9922_CSEOF
9923echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9924echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009925_ACEOF
9926
9927# Files that config.status was made for.
9928if test -n "$ac_config_files"; then
9929 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9930fi
9931
9932if test -n "$ac_config_headers"; then
9933 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9934fi
9935
9936if test -n "$ac_config_links"; then
9937 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9938fi
9939
9940if test -n "$ac_config_commands"; then
9941 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9942fi
9943
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009944cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009945
9946ac_cs_usage="\
9947\`$as_me' instantiates files from templates according to the
9948current configuration.
9949
9950Usage: $0 [OPTIONS] [FILE]...
9951
9952 -h, --help print this help, then exit
9953 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009954 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009955 -d, --debug don't remove temporary files
9956 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009957 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009958 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009959 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009960 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009961
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009962Configuration files:
9963$config_files
9964
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009965Configuration headers:
9966$config_headers
9967
9968Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009969_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009970
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009971cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009972ac_cs_version="\\
Benny Prijono27c98722007-04-09 21:28:15 +00009973pjproject config.status 0.6.0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009974configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009975 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9976
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009977Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009978This config.status script is free software; the Free Software Foundation
9979gives unlimited permission to copy, distribute and modify it."
9980srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009981_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009982
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009983cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009984# If no file are specified by the user, then we need to provide default
9985# value. By we need to know if files were specified by the user.
9986ac_need_defaults=:
9987while test $# != 0
9988do
9989 case $1 in
9990 --*=*)
9991 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9992 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009993 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009994 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009995 -*)
9996 ac_option=$1
9997 ac_optarg=$2
9998 ac_shift=shift
9999 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010000 *) # This is not an option, so the user has probably given explicit
10001 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010002 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010003 ac_need_defaults=false;;
10004 esac
10005
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010006 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010007 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010008_ACEOF
10009cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010011 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010012 --version | --vers* | -V )
10013 echo "$ac_cs_version"; exit 0 ;;
10014 --he | --h)
10015 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010016 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010017Try \`$0 --help' for more information." >&5
10018echo "$as_me: error: ambiguous option: $1
10019Try \`$0 --help' for more information." >&2;}
10020 { (exit 1); exit 1; }; };;
10021 --help | --hel | -h )
10022 echo "$ac_cs_usage"; exit 0 ;;
10023 --debug | --d* | -d )
10024 debug=: ;;
10025 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010026 $ac_shift
10027 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010028 ac_need_defaults=false;;
10029 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010030 $ac_shift
10031 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010032 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10034 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10035 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010036
10037 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010038 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010039Try \`$0 --help' for more information." >&5
10040echo "$as_me: error: unrecognized option: $1
10041Try \`$0 --help' for more information." >&2;}
10042 { (exit 1); exit 1; }; } ;;
10043
10044 *) ac_config_targets="$ac_config_targets $1" ;;
10045
10046 esac
10047 shift
10048done
10049
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010050ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010051
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010052if $ac_cs_silent; then
10053 exec 6>/dev/null
10054 ac_configure_extra_args="$ac_configure_extra_args --silent"
10055fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010056
10057_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010058cat >>$CONFIG_STATUS <<_ACEOF
10059if \$ac_cs_recheck; then
10060 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10061 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10062fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010063
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010064_ACEOF
10065
10066
10067
10068
10069
10070cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010071for ac_config_target in $ac_config_targets
10072do
10073 case "$ac_config_target" in
10074 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010075 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
10076 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
10077 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
10078 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
10079 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
10080 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod9627842007-04-18 09:24:31 +000010081 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
10082 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010083 "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 +000010084 "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 +000010085 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
10086 "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 +000010087 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
10088 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010089echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10090 { (exit 1); exit 1; }; };;
10091 esac
10092done
10093
10094# If the user did not use the arguments to specify the items to instantiate,
10095# then the envvar interface is used. Set only those that are not.
10096# We use the long form for the default assignment because of an extremely
10097# bizarre bug on SunOS 4.1.3.
10098if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10101fi
10102
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010103# Have a temporary directory for convenience. Make it in the build tree
10104# simply because there is no reason to put it here, and in addition,
10105# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010106# Create a temporary directory, and hook for its removal unless debugging.
10107$debug ||
10108{
10109 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10110 trap '{ (exit 1); exit 1; }' 1 2 13 15
10111}
10112
10113# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010114
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010115{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010116 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010117 test -n "$tmp" && test -d "$tmp"
10118} ||
10119{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010120 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010121 (umask 077 && mkdir $tmp)
10122} ||
10123{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010124 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010125 { (exit 1); exit 1; }
10126}
10127
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010128_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010129
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010130cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010131
10132#
10133# CONFIG_FILES section.
10134#
10135
10136# No need to generate the scripts if there are no CONFIG_FILES.
10137# This happens for instance when ./config.status config.h
10138if test -n "\$CONFIG_FILES"; then
10139 # Protect against being on the right side of a sed subst in config.status.
10140 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10141 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10142s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010143s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10144s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10145s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10146s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10147s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10148s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010149s,@exec_prefix@,$exec_prefix,;t t
10150s,@prefix@,$prefix,;t t
10151s,@program_transform_name@,$program_transform_name,;t t
10152s,@bindir@,$bindir,;t t
10153s,@sbindir@,$sbindir,;t t
10154s,@libexecdir@,$libexecdir,;t t
10155s,@datadir@,$datadir,;t t
10156s,@sysconfdir@,$sysconfdir,;t t
10157s,@sharedstatedir@,$sharedstatedir,;t t
10158s,@localstatedir@,$localstatedir,;t t
10159s,@libdir@,$libdir,;t t
10160s,@includedir@,$includedir,;t t
10161s,@oldincludedir@,$oldincludedir,;t t
10162s,@infodir@,$infodir,;t t
10163s,@mandir@,$mandir,;t t
10164s,@build_alias@,$build_alias,;t t
10165s,@host_alias@,$host_alias,;t t
10166s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010167s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010168s,@ECHO_C@,$ECHO_C,;t t
10169s,@ECHO_N@,$ECHO_N,;t t
10170s,@ECHO_T@,$ECHO_T,;t t
10171s,@LIBS@,$LIBS,;t t
10172s,@build@,$build,;t t
10173s,@build_cpu@,$build_cpu,;t t
10174s,@build_vendor@,$build_vendor,;t t
10175s,@build_os@,$build_os,;t t
10176s,@host@,$host,;t t
10177s,@host_cpu@,$host_cpu,;t t
10178s,@host_vendor@,$host_vendor,;t t
10179s,@host_os@,$host_os,;t t
10180s,@target@,$target,;t t
10181s,@target_cpu@,$target_cpu,;t t
10182s,@target_vendor@,$target_vendor,;t t
10183s,@target_os@,$target_os,;t t
10184s,@CC@,$CC,;t t
10185s,@CFLAGS@,$CFLAGS,;t t
10186s,@LDFLAGS@,$LDFLAGS,;t t
10187s,@CPPFLAGS@,$CPPFLAGS,;t t
10188s,@ac_ct_CC@,$ac_ct_CC,;t t
10189s,@EXEEXT@,$EXEEXT,;t t
10190s,@OBJEXT@,$OBJEXT,;t t
10191s,@CXX@,$CXX,;t t
10192s,@CXXFLAGS@,$CXXFLAGS,;t t
10193s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +000010194s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010195s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010196s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010197s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010198s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +000010199s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010200s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
10201s,@ac_no_small_filter@,$ac_no_small_filter,;t t
10202s,@ac_no_large_filter@,$ac_no_large_filter,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010203s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
10204s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
10205s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
10206s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
10207s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
10208s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010209s,@ac_no_ssl@,$ac_no_ssl,;t t
10210s,@openssl_h_present@,$openssl_h_present,;t t
10211s,@libssl_present@,$libssl_present,;t t
10212s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010213s,@ac_cross_compile@,$ac_cross_compile,;t t
10214s,@ac_linux_poll@,$ac_linux_poll,;t t
10215s,@ac_host@,$ac_host,;t t
10216s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010217s,@LIBOBJS@,$LIBOBJS,;t t
10218s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010219CEOF
10220
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010221_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010222
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010223 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010224 # Split the substitutions into bite-sized pieces for seds with
10225 # small command number limits, like on Digital OSF/1 and HP-UX.
10226 ac_max_sed_lines=48
10227 ac_sed_frag=1 # Number of current file.
10228 ac_beg=1 # First line for current file.
10229 ac_end=$ac_max_sed_lines # Line after last line for current file.
10230 ac_more_lines=:
10231 ac_sed_cmds=
10232 while $ac_more_lines; do
10233 if test $ac_beg -gt 1; then
10234 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10235 else
10236 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10237 fi
10238 if test ! -s $tmp/subs.frag; then
10239 ac_more_lines=false
10240 else
10241 # The purpose of the label and of the branching condition is to
10242 # speed up the sed processing (if there are no `@' at all, there
10243 # is no need to browse any of the substitutions).
10244 # These are the two extra sed commands mentioned above.
10245 (echo ':t
10246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10247 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010248 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010249 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010250 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010251 fi
10252 ac_sed_frag=`expr $ac_sed_frag + 1`
10253 ac_beg=$ac_end
10254 ac_end=`expr $ac_end + $ac_max_sed_lines`
10255 fi
10256 done
10257 if test -z "$ac_sed_cmds"; then
10258 ac_sed_cmds=cat
10259 fi
10260fi # test -n "$CONFIG_FILES"
10261
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010262_ACEOF
10263cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010264for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10265 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10266 case $ac_file in
10267 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010268 cat >$tmp/stdin
10269 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010271 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010273 * ) ac_file_in=$ac_file.in ;;
10274 esac
10275
10276 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010277 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10278$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10279 X"$ac_file" : 'X\(//\)[^/]' \| \
10280 X"$ac_file" : 'X\(//\)$' \| \
10281 X"$ac_file" : 'X\(/\)' \| \
10282 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010283echo X"$ac_file" |
10284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10286 /^X\(\/\/\)$/{ s//\1/; q; }
10287 /^X\(\/\).*/{ s//\1/; q; }
10288 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010289 { if $as_mkdir_p; then
10290 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010291 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010292 as_dir="$ac_dir"
10293 as_dirs=
10294 while test ! -d "$as_dir"; do
10295 as_dirs="$as_dir $as_dirs"
10296 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10298 X"$as_dir" : 'X\(//\)[^/]' \| \
10299 X"$as_dir" : 'X\(//\)$' \| \
10300 X"$as_dir" : 'X\(/\)' \| \
10301 . : '\(.\)' 2>/dev/null ||
10302echo X"$as_dir" |
10303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10305 /^X\(\/\/\)$/{ s//\1/; q; }
10306 /^X\(\/\).*/{ s//\1/; q; }
10307 s/.*/./; q'`
10308 done
10309 test ! -n "$as_dirs" || mkdir $as_dirs
10310 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10311echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10312 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010313
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010314 ac_builddir=.
10315
10316if test "$ac_dir" != .; then
10317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10318 # A "../" for each directory in $ac_dir_suffix.
10319 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10320else
10321 ac_dir_suffix= ac_top_builddir=
10322fi
10323
10324case $srcdir in
10325 .) # No --srcdir option. We are building in place.
10326 ac_srcdir=.
10327 if test -z "$ac_top_builddir"; then
10328 ac_top_srcdir=.
10329 else
10330 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10331 fi ;;
10332 [\\/]* | ?:[\\/]* ) # Absolute path.
10333 ac_srcdir=$srcdir$ac_dir_suffix;
10334 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010335 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010336 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10337 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10338esac
10339
10340# Do not use `cd foo && pwd` to compute absolute paths, because
10341# the directories may not exist.
10342case `pwd` in
10343.) ac_abs_builddir="$ac_dir";;
10344*)
10345 case "$ac_dir" in
10346 .) ac_abs_builddir=`pwd`;;
10347 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10348 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10349 esac;;
10350esac
10351case $ac_abs_builddir in
10352.) ac_abs_top_builddir=${ac_top_builddir}.;;
10353*)
10354 case ${ac_top_builddir}. in
10355 .) ac_abs_top_builddir=$ac_abs_builddir;;
10356 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10357 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10358 esac;;
10359esac
10360case $ac_abs_builddir in
10361.) ac_abs_srcdir=$ac_srcdir;;
10362*)
10363 case $ac_srcdir in
10364 .) ac_abs_srcdir=$ac_abs_builddir;;
10365 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10366 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10367 esac;;
10368esac
10369case $ac_abs_builddir in
10370.) ac_abs_top_srcdir=$ac_top_srcdir;;
10371*)
10372 case $ac_top_srcdir in
10373 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10374 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10375 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10376 esac;;
10377esac
10378
10379
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010380
10381 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010382 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010383echo "$as_me: creating $ac_file" >&6;}
10384 rm -f "$ac_file"
10385 fi
10386 # Let's still pretend it is `configure' which instantiates (i.e., don't
10387 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010388 # /* config.h. Generated by config.status. */
10389 if test x"$ac_file" = x-; then
10390 configure_input=
10391 else
10392 configure_input="$ac_file. "
10393 fi
10394 configure_input=$configure_input"Generated from `echo $ac_file_in |
10395 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010396
10397 # First look for the input files in the build tree, otherwise in the
10398 # src tree.
10399 ac_file_inputs=`IFS=:
10400 for f in $ac_file_in; do
10401 case $f in
10402 -) echo $tmp/stdin ;;
10403 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010404 # Absolute (can't be DOS-style, as IFS=:)
10405 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010406echo "$as_me: error: cannot find input file: $f" >&2;}
10407 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010408 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010409 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010410 if test -f "$f"; then
10411 # Build tree
10412 echo "$f"
10413 elif test -f "$srcdir/$f"; then
10414 # Source tree
10415 echo "$srcdir/$f"
10416 else
10417 # /dev/null tree
10418 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010419echo "$as_me: error: cannot find input file: $f" >&2;}
10420 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010421 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010422 esac
10423 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010424_ACEOF
10425cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010426 sed "$ac_vpsub
10427$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010428_ACEOF
10429cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010430:t
10431/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10432s,@configure_input@,$configure_input,;t t
10433s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010434s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010435s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010436s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10437s,@builddir@,$ac_builddir,;t t
10438s,@abs_builddir@,$ac_abs_builddir,;t t
10439s,@top_builddir@,$ac_top_builddir,;t t
10440s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010441" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10442 rm -f $tmp/stdin
10443 if test x"$ac_file" != x-; then
10444 mv $tmp/out $ac_file
10445 else
10446 cat $tmp/out
10447 rm -f $tmp/out
10448 fi
10449
10450done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010451_ACEOF
10452cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010453
10454#
10455# CONFIG_HEADER section.
10456#
10457
10458# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10459# NAME is the cpp macro being defined and VALUE is the value it is being given.
10460#
10461# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010462ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10463ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010464ac_dC=' '
10465ac_dD=',;t'
10466# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010467ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010468ac_uB='$,\1#\2define\3'
10469ac_uC=' '
10470ac_uD=',;t'
10471
10472for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10473 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10474 case $ac_file in
10475 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010476 cat >$tmp/stdin
10477 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10478 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010479 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010481 * ) ac_file_in=$ac_file.in ;;
10482 esac
10483
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010484 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010485echo "$as_me: creating $ac_file" >&6;}
10486
10487 # First look for the input files in the build tree, otherwise in the
10488 # src tree.
10489 ac_file_inputs=`IFS=:
10490 for f in $ac_file_in; do
10491 case $f in
10492 -) echo $tmp/stdin ;;
10493 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010494 # Absolute (can't be DOS-style, as IFS=:)
10495 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010496echo "$as_me: error: cannot find input file: $f" >&2;}
10497 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010498 # Do quote $f, to prevent DOS paths from being IFS'd.
10499 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010500 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010501 if test -f "$f"; then
10502 # Build tree
10503 echo "$f"
10504 elif test -f "$srcdir/$f"; then
10505 # Source tree
10506 echo "$srcdir/$f"
10507 else
10508 # /dev/null tree
10509 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010510echo "$as_me: error: cannot find input file: $f" >&2;}
10511 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010512 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010513 esac
10514 done` || { (exit 1); exit 1; }
10515 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010516 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010517
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010518_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010519
10520# Transform confdefs.h into two sed scripts, `conftest.defines' and
10521# `conftest.undefs', that substitutes the proper values into
10522# config.h.in to produce config.h. The first handles `#define'
10523# templates, and the second `#undef' templates.
10524# And first: Protect against being on the right side of a sed subst in
10525# config.status. Protect against being in an unquoted here document
10526# in config.status.
10527rm -f conftest.defines conftest.undefs
10528# Using a here document instead of a string reduces the quoting nightmare.
10529# Putting comments in sed scripts is not portable.
10530#
10531# `end' is used to avoid that the second main sed command (meant for
10532# 0-ary CPP macros) applies to n-ary macro definitions.
10533# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010534cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010535s/[\\&,]/\\&/g
10536s,[\\$`],\\&,g
10537t clear
10538: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010539s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010540t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010541s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010542: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010543_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010544# If some macros were called several times there might be several times
10545# the same #defines, which is useless. Nevertheless, we may not want to
10546# sort them, since we want the *last* AC-DEFINE to be honored.
10547uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10548sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10549rm -f confdef2sed.sed
10550
10551# This sed command replaces #undef with comments. This is necessary, for
10552# example, in the case of _POSIX_SOURCE, which is predefined and required
10553# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010554cat >>conftest.undefs <<\_ACEOF
10555s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10556_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010557
10558# Break up conftest.defines because some shells have a limit on the size
10559# of here documents, and old seds have small limits too (100 cmds).
10560echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010561echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010562echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10563echo ' :' >>$CONFIG_STATUS
10564rm -f conftest.tail
10565while grep . conftest.defines >/dev/null
10566do
10567 # Write a limited-size here document to $tmp/defines.sed.
10568 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10569 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010570 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010571 # Work around the forget-to-reset-the-flag bug.
10572 echo 't clr' >>$CONFIG_STATUS
10573 echo ': clr' >>$CONFIG_STATUS
10574 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10575 echo 'CEOF
10576 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10577 rm -f $tmp/in
10578 mv $tmp/out $tmp/in
10579' >>$CONFIG_STATUS
10580 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10581 rm -f conftest.defines
10582 mv conftest.tail conftest.defines
10583done
10584rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010585echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010586echo >>$CONFIG_STATUS
10587
10588# Break up conftest.undefs because some shells have a limit on the size
10589# of here documents, and old seds have small limits too (100 cmds).
10590echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10591rm -f conftest.tail
10592while grep . conftest.undefs >/dev/null
10593do
10594 # Write a limited-size here document to $tmp/undefs.sed.
10595 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10596 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010597 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010598 # Work around the forget-to-reset-the-flag bug.
10599 echo 't clr' >>$CONFIG_STATUS
10600 echo ': clr' >>$CONFIG_STATUS
10601 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10602 echo 'CEOF
10603 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10604 rm -f $tmp/in
10605 mv $tmp/out $tmp/in
10606' >>$CONFIG_STATUS
10607 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10608 rm -f conftest.undefs
10609 mv conftest.tail conftest.undefs
10610done
10611rm -f conftest.undefs
10612
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010613cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010614 # Let's still pretend it is `configure' which instantiates (i.e., don't
10615 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010616 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010617 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010618 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010619 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010620 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010621 fi
10622 cat $tmp/in >>$tmp/config.h
10623 rm -f $tmp/in
10624 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010625 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10626 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010627echo "$as_me: $ac_file is unchanged" >&6;}
10628 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010629 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10630$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10631 X"$ac_file" : 'X\(//\)[^/]' \| \
10632 X"$ac_file" : 'X\(//\)$' \| \
10633 X"$ac_file" : 'X\(/\)' \| \
10634 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010635echo X"$ac_file" |
10636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10638 /^X\(\/\/\)$/{ s//\1/; q; }
10639 /^X\(\/\).*/{ s//\1/; q; }
10640 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010641 { if $as_mkdir_p; then
10642 mkdir -p "$ac_dir"
10643 else
10644 as_dir="$ac_dir"
10645 as_dirs=
10646 while test ! -d "$as_dir"; do
10647 as_dirs="$as_dir $as_dirs"
10648 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10650 X"$as_dir" : 'X\(//\)[^/]' \| \
10651 X"$as_dir" : 'X\(//\)$' \| \
10652 X"$as_dir" : 'X\(/\)' \| \
10653 . : '\(.\)' 2>/dev/null ||
10654echo X"$as_dir" |
10655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10657 /^X\(\/\/\)$/{ s//\1/; q; }
10658 /^X\(\/\).*/{ s//\1/; q; }
10659 s/.*/./; q'`
10660 done
10661 test ! -n "$as_dirs" || mkdir $as_dirs
10662 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10663echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10664 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010665
10666 rm -f $ac_file
10667 mv $tmp/config.h $ac_file
10668 fi
10669 else
10670 cat $tmp/config.h
10671 rm -f $tmp/config.h
10672 fi
10673done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010674_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010675
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010676cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010677
10678{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010679_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010680chmod +x $CONFIG_STATUS
10681ac_clean_files=$ac_clean_files_save
10682
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010683
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010684# configure is writing to config.log, and then calls config.status.
10685# config.status does its own redirection, appending to config.log.
10686# Unfortunately, on DOS this fails, as config.log is still kept open
10687# by configure, so config.status won't be able to write to it; its
10688# output is simply discarded. So we exec the FD to /dev/null,
10689# effectively closing config.log, so it can be properly (re)opened and
10690# appended to by config.status. When coming back to configure, we
10691# need to make the FD available again.
10692if test "$no_create" != yes; then
10693 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010694 ac_config_status_args=
10695 test "$silent" = yes &&
10696 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010697 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010699 exec 5>>config.log
10700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10701 # would make configure fail if this is the last instruction.
10702 $ac_cs_success || { (exit 1); exit 1; }
10703fi
10704
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010705
Benny Prijonod9627842007-04-18 09:24:31 +000010706
10707echo "$as_me:$LINENO: result:
10708
10709The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
10710
10711Customizations can be put in:
10712 - 'user.mak'
10713 - 'pjlib/include/pj/config_site.h'
10714
10715The next step now is to run 'make dep' and 'make'.
10716" >&5
10717echo "${ECHO_T}
10718
10719The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
10720
10721Customizations can be put in:
10722 - 'user.mak'
10723 - 'pjlib/include/pj/config_site.h'
10724
10725The next step now is to run 'make dep' and 'make'.
10726" >&6
10727