blob: dbf9c5cf52dc6305abdf2e6a6982184c2c349de8 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonoabcf49c2007-05-15 21:02:54 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.7.
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 Prijonoabcf49c2007-05-15 21:02:54 +0000270PACKAGE_VERSION='0.7'
271PACKAGE_STRING='pjproject 0.7'
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 Prijonoabcf49c2007-05-15 21:02:54 +0000788\`configure' configures pjproject 0.7 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 Prijonoabcf49c2007-05-15 21:02:54 +0000850 short | recursive ) echo "Configuration of pjproject 0.7:";;
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 Prijono550a1a62007-10-16 08:54:00 +0000868 --enable-libsamplerate Link with libsamplerate when available. Note that
869 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoce1db762007-02-14 02:21:08 +0000870 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000871
872
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000880 CXX C++ compiler command
881 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000882 CPP C preprocessor
883
884Use these variables to override the choices made by `configure' or to help
885it to find libraries and programs with nonstandard names/locations.
886
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000887_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000888fi
889
890if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000896
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000897if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901else
902 ac_dir_suffix= ac_top_builddir=
903fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000904
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000905case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919esac
920
921# Do not use `cd foo && pwd` to compute absolute paths, because
922# the directories may not exist.
923case `pwd` in
924.) ac_abs_builddir="$ac_dir";;
925*)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_builddir=${ac_top_builddir}.;;
934*)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_srcdir=$ac_srcdir;;
943*)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_srcdir=$ac_top_srcdir;;
952*)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958esac
959
960 cd $ac_dir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000961 # Check for guested configure; otherwise get Cygnus style configure.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000962 if test -f $ac_srcdir/configure.gnu; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000963 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000966 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000970 echo
971 $ac_configure --help
972 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000974 fi
975 cd $ac_popdir
976 done
977fi
978
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000981 cat <<\_ACEOF
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000982pjproject configure 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000983generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000984
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000985Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000988_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000989 exit 0
990fi
991exec 5>config.log
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000992cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
995
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000996It was created by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000997generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000998
999 $ $0 $@
1000
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001001_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001002{
1003cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001004## --------- ##
1005## Platform. ##
1006## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
1034
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001035} >&5
1036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001037cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001038
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001039
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
1043
1044_ACEOF
1045
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001046
1047# Keep a trace of the command line.
1048# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001049# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001050# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001051# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001052ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001053ac_configure_args0=
1054ac_configure_args1=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001055ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001056ac_must_keep_next=false
1057for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001058do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001094done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001097
1098# When interrupted or exit'd, cleanup temporary files, and complete
1099# config.log. We remove comments because anyway the quotes in there
1100# would cause problems or look ugly.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001101# WARNING: Be sure not to use single quotes in there, as some shells,
1102# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001122 ;;
1123 *)
1124 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126 ;;
1127 esac;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
1181
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
1186
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001187# Predefined preprocessor variables.
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001226echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001227 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001228 . "$ac_site_file"
1229 fi
1230done
1231
1232if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for ac_var in `(set) 2>&1 |
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001273echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001276 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001277 fi;;
1278 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001279 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
Benny Prijono5b818b22006-09-17 22:58:51 +00001332
1333host_orig="$host"
1334
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001335ac_aux_dir=
1336for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1337 if test -f $ac_dir/install-sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 break
1341 elif test -f $ac_dir/install.sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 break
1345 elif test -f $ac_dir/shtool; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 break
1349 fi
1350done
1351if test -z "$ac_aux_dir"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001353echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1354 { (exit 1); exit 1; }; }
1355fi
1356ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359
1360# Make sure we can run config.sub.
1361$ac_config_sub sun4 >/dev/null 2>&1 ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001362 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001363echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1364 { (exit 1); exit 1; }; }
1365
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001366echo "$as_me:$LINENO: checking build system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001367echo $ECHO_N "checking build system type... $ECHO_C" >&6
1368if test "${ac_cv_build+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370else
1371 ac_cv_build_alias=$build_alias
1372test -z "$ac_cv_build_alias" &&
1373 ac_cv_build_alias=`$ac_config_guess`
1374test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001376echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1377 { (exit 1); exit 1; }; }
1378ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1380echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001381 { (exit 1); exit 1; }; }
1382
1383fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001384echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001385echo "${ECHO_T}$ac_cv_build" >&6
1386build=$ac_cv_build
1387build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001391
1392echo "$as_me:$LINENO: checking host system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001393echo $ECHO_N "checking host system type... $ECHO_C" >&6
1394if test "${ac_cv_host+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1396else
1397 ac_cv_host_alias=$host_alias
1398test -z "$ac_cv_host_alias" &&
1399 ac_cv_host_alias=$ac_cv_build_alias
1400ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001402echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001406echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001407echo "${ECHO_T}$ac_cv_host" >&6
1408host=$ac_cv_host
1409host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001413
1414echo "$as_me:$LINENO: checking target system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001415echo $ECHO_N "checking target system type... $ECHO_C" >&6
1416if test "${ac_cv_target+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 ac_cv_target_alias=$target_alias
1420test "x$ac_cv_target_alias" = "x" &&
1421 ac_cv_target_alias=$ac_cv_host_alias
1422ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001424echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001428echo "$as_me:$LINENO: result: $ac_cv_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001429echo "${ECHO_T}$ac_cv_target" >&6
1430target=$ac_cv_target
1431target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001435
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001436# The aliases save the names the user supplied, while $host etc.
1437# will get canonicalized.
1438test -n "$target_alias" &&
1439 test "$program_prefix$program_suffix$program_transform_name" = \
1440 NONENONEs,x,x, &&
1441 program_prefix=${target_alias}-
Benny Prijono06d1d0e2007-01-27 18:09:28 +00001442 ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001443
Benny Prijonod9627842007-04-18 09:24:31 +00001444 ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001445
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001446
Benny Prijono12483112007-03-12 10:44:38 +00001447
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001448if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001449 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001450else
1451 CFLAGS="$CFLAGS"
1452fi
1453
1454CXXFLAGS="$CFLAGS $CXXFLAGS"
1455
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001456ac_ext=c
1457ac_cpp='$CPP $CPPFLAGS'
1458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460ac_compiler_gnu=$ac_cv_c_compiler_gnu
1461if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1463set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001464echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001484done
1485
1486fi
1487fi
1488CC=$ac_cv_prog_CC
1489if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001490 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001491echo "${ECHO_T}$CC" >&6
1492else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001493 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001494echo "${ECHO_T}no" >&6
1495fi
1496
1497fi
1498if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "gcc", so it can be a program name with args.
1501set dummy gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001502echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="gcc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1520 fi
1521done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001522done
1523
1524fi
1525fi
1526ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001529echo "${ECHO_T}$ac_ct_CC" >&6
1530else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001531 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001532echo "${ECHO_T}no" >&6
1533fi
1534
1535 CC=$ac_ct_CC
1536else
1537 CC="$ac_cv_prog_CC"
1538fi
1539
1540if test -z "$CC"; then
1541 if test -n "$ac_tool_prefix"; then
1542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1543set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001544echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_CC="${ac_tool_prefix}cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001564done
1565
1566fi
1567fi
1568CC=$ac_cv_prog_CC
1569if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001570 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001571echo "${ECHO_T}$CC" >&6
1572else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001573 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001574echo "${ECHO_T}no" >&6
1575fi
1576
1577fi
1578if test -z "$ac_cv_prog_CC"; then
1579 ac_ct_CC=$CC
1580 # Extract the first word of "cc", so it can be a program name with args.
1581set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001582echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591for as_dir in $PATH
1592do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC="cc"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1600 fi
1601done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001602done
1603
1604fi
1605fi
1606ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001609echo "${ECHO_T}$ac_ct_CC" >&6
1610else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001611 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001612echo "${ECHO_T}no" >&6
1613fi
1614
1615 CC=$ac_ct_CC
1616else
1617 CC="$ac_cv_prog_CC"
1618fi
1619
1620fi
1621if test -z "$CC"; then
1622 # Extract the first word of "cc", so it can be a program name with args.
1623set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001624echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1631else
1632 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634for as_dir in $PATH
1635do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1641 ac_prog_rejected=yes
1642 continue
1643 fi
1644 ac_cv_prog_CC="cc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001649done
1650
1651if test $ac_prog_rejected = yes; then
1652 # We found a bogon in the path, so make sure we never use it.
1653 set dummy $ac_cv_prog_CC
1654 shift
1655 if test $# != 0; then
1656 # We chose a different compiler from the bogus one.
1657 # However, it has the same basename, so the bogon will be chosen
1658 # first if we set CC to just the basename; use the full file name.
1659 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001661 fi
1662fi
1663fi
1664fi
1665CC=$ac_cv_prog_CC
1666if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001667 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001668echo "${ECHO_T}$CC" >&6
1669else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001670 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001671echo "${ECHO_T}no" >&6
1672fi
1673
1674fi
1675if test -z "$CC"; then
1676 if test -n "$ac_tool_prefix"; then
1677 for ac_prog in cl
1678 do
1679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001681echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1688else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1699 fi
1700done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001701done
1702
1703fi
1704fi
1705CC=$ac_cv_prog_CC
1706if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001707 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001708echo "${ECHO_T}$CC" >&6
1709else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001710 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001711echo "${ECHO_T}no" >&6
1712fi
1713
1714 test -n "$CC" && break
1715 done
1716fi
1717if test -z "$CC"; then
1718 ac_ct_CC=$CC
1719 for ac_prog in cl
1720do
1721 # Extract the first word of "$ac_prog", so it can be a program name with args.
1722set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001723echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="$ac_prog"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001743done
1744
1745fi
1746fi
1747ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001750echo "${ECHO_T}$ac_ct_CC" >&6
1751else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001752 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001753echo "${ECHO_T}no" >&6
1754fi
1755
1756 test -n "$ac_ct_CC" && break
1757done
1758
1759 CC=$ac_ct_CC
1760fi
1761
1762fi
1763
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001764
1765test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1766See \`config.log' for more details." >&5
1767echo "$as_me: error: no acceptable C compiler found in \$PATH
1768See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001769 { (exit 1); exit 1; }; }
1770
1771# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001772echo "$as_me:$LINENO:" \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001773 "checking for C compiler version" >&5
1774ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001775{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001776 (eval $ac_compiler --version </dev/null >&5) 2>&5
1777 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001779 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001780{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001781 (eval $ac_compiler -v </dev/null >&5) 2>&5
1782 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001784 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001785{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001786 (eval $ac_compiler -V </dev/null >&5) 2>&5
1787 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001789 (exit $ac_status); }
1790
1791cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001792/* confdefs.h. */
1793_ACEOF
1794cat confdefs.h >>conftest.$ac_ext
1795cat >>conftest.$ac_ext <<_ACEOF
1796/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001797
1798int
1799main ()
1800{
1801
1802 ;
1803 return 0;
1804}
1805_ACEOF
1806ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001807ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001808# Try to create an executable without -o first, disregard a.out.
1809# It will help us diagnose broken compilers, and finding out an intuition
1810# of exeext.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001811echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1812echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001813ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001814if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001815 (eval $ac_link_default) 2>&5
1816 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001818 (exit $ac_status); }; then
1819 # Find the output, starting from the most likely. This scheme is
1820# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1821# resort.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001822
1823# Be careful to initialize this variable, since it used to be cached.
1824# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1825ac_cv_exeext=
1826# b.out is created by i960 compilers.
1827for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1828do
1829 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001830 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1832 ;;
1833 conftest.$ac_ext )
1834 # This is the source file.
1835 ;;
1836 [ab].out )
1837 # We found the default executable, but exeext='' is most
1838 # certainly right.
1839 break;;
1840 *.* )
1841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842 # FIXME: I believe we export ac_cv_exeext for Libtool,
1843 # but it would be cool to find out if it's true. Does anybody
1844 # maintain Libtool? --akim.
1845 export ac_cv_exeext
1846 break;;
1847 * )
1848 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001849 esac
1850done
1851else
1852 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: C compiler cannot create executables
1858See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001859 { (exit 77); exit 77; }; }
1860fi
1861
1862ac_exeext=$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001863echo "$as_me:$LINENO: result: $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001864echo "${ECHO_T}$ac_file" >&6
1865
1866# Check the compiler produces executables we can run. If not, either
1867# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001868echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001869echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1871# If not cross compiling, check that we can run a simple program.
1872if test "$cross_compiling" != yes; then
1873 if { ac_try='./$ac_file'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001875 (eval $ac_try) 2>&5
1876 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001878 (exit $ac_status); }; }; then
1879 cross_compiling=no
1880 else
1881 if test "$cross_compiling" = maybe; then
1882 cross_compiling=yes
1883 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001884 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1885If you meant to cross compile, use \`--host'.
1886See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001887echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001888If you meant to cross compile, use \`--host'.
1889See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001890 { (exit 1); exit 1; }; }
1891 fi
1892 fi
1893fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001894echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001895echo "${ECHO_T}yes" >&6
1896
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001897rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001898ac_clean_files=$ac_clean_files_save
1899# Check the compiler produces executables we can run. If not, either
1900# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001901echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001903echo "$as_me:$LINENO: result: $cross_compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001904echo "${ECHO_T}$cross_compiling" >&6
1905
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001906echo "$as_me:$LINENO: checking for suffix of executables" >&5
1907echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001909 (eval $ac_link) 2>&5
1910 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001912 (exit $ac_status); }; then
1913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1914# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1915# work properly (i.e., refer to `conftest.exe'), while it won't with
1916# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001917for ac_file in conftest.exe conftest conftest.*; do
1918 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001919 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001922 export ac_cv_exeext
1923 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001924 * ) break;;
1925 esac
1926done
1927else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001928 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1929See \`config.log' for more details." >&5
1930echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1931See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001932 { (exit 1); exit 1; }; }
1933fi
1934
1935rm -f conftest$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001936echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001937echo "${ECHO_T}$ac_cv_exeext" >&6
1938
1939rm -f conftest.$ac_ext
1940EXEEXT=$ac_cv_exeext
1941ac_exeext=$EXEEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001942echo "$as_me:$LINENO: checking for suffix of object files" >&5
1943echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001944if test "${ac_cv_objext+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001948/* confdefs.h. */
1949_ACEOF
1950cat confdefs.h >>conftest.$ac_ext
1951cat >>conftest.$ac_ext <<_ACEOF
1952/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001953
1954int
1955main ()
1956{
1957
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962rm -f conftest.o conftest.obj
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001964 (eval $ac_compile) 2>&5
1965 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001967 (exit $ac_status); }; then
1968 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1969 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1972 break;;
1973 esac
1974done
1975else
1976 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1980See \`config.log' for more details." >&5
1981echo "$as_me: error: cannot compute suffix of object files: cannot compile
1982See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001983 { (exit 1); exit 1; }; }
1984fi
1985
1986rm -f conftest.$ac_cv_objext conftest.$ac_ext
1987fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001988echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001989echo "${ECHO_T}$ac_cv_objext" >&6
1990OBJEXT=$ac_cv_objext
1991ac_objext=$OBJEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001992echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001993echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1994if test "${ac_cv_c_compiler_gnu+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996else
1997 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001998/* confdefs.h. */
1999_ACEOF
2000cat confdefs.h >>conftest.$ac_ext
2001cat >>conftest.$ac_ext <<_ACEOF
2002/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002003
2004int
2005main ()
2006{
2007#ifndef __GNUC__
2008 choke me
2009#endif
2010
2011 ;
2012 return 0;
2013}
2014_ACEOF
2015rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2017 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002018 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002019 grep -v '^ *+' conftest.er1 >conftest.err
2020 rm -f conftest.er1
2021 cat conftest.err >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002023 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002024 { ac_try='test -z "$ac_c_werror_flag"
2025 || test ! -s conftest.err'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002027 (eval $ac_try) 2>&5
2028 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; } &&
2031 { ac_try='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 (eval $ac_try) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002036 (exit $ac_status); }; }; then
2037 ac_compiler_gnu=yes
2038else
2039 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002040sed 's/^/| /' conftest.$ac_ext >&5
2041
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002042ac_compiler_gnu=no
2043fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002045ac_cv_c_compiler_gnu=$ac_compiler_gnu
2046
2047fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002048echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002049echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2050GCC=`test $ac_compiler_gnu = yes && echo yes`
2051ac_test_CFLAGS=${CFLAGS+set}
2052ac_save_CFLAGS=$CFLAGS
2053CFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002054echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002055echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2056if test "${ac_cv_prog_cc_g+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002060/* confdefs.h. */
2061_ACEOF
2062cat confdefs.h >>conftest.$ac_ext
2063cat >>conftest.$ac_ext <<_ACEOF
2064/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002065
2066int
2067main ()
2068{
2069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002077 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002078 grep -v '^ *+' conftest.er1 >conftest.err
2079 rm -f conftest.er1
2080 cat conftest.err >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002082 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002083 { ac_try='test -z "$ac_c_werror_flag"
2084 || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002086 (eval $ac_try) 2>&5
2087 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002095 (exit $ac_status); }; }; then
2096 ac_cv_prog_cc_g=yes
2097else
2098 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002099sed 's/^/| /' conftest.$ac_ext >&5
2100
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002101ac_cv_prog_cc_g=no
2102fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002104fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002105echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002106echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107if test "$ac_test_CFLAGS" = set; then
2108 CFLAGS=$ac_save_CFLAGS
2109elif test $ac_cv_prog_cc_g = yes; then
2110 if test "$GCC" = yes; then
2111 CFLAGS="-g -O2"
2112 else
2113 CFLAGS="-g"
2114 fi
2115else
2116 if test "$GCC" = yes; then
2117 CFLAGS="-O2"
2118 else
2119 CFLAGS=
2120 fi
2121fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002122echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127 ac_cv_prog_cc_stdc=no
2128ac_save_CC=$CC
2129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h. */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h. */
2135#include <stdarg.h>
2136#include <stdio.h>
2137#include <sys/types.h>
2138#include <sys/stat.h>
2139/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2140struct buf { int x; };
2141FILE * (*rcsopen) (struct buf *, struct stat *, int);
2142static char *e (p, i)
2143 char **p;
2144 int i;
2145{
2146 return p[i];
2147}
2148static char *f (char * (*g) (char **, int), char **p, ...)
2149{
2150 char *s;
2151 va_list v;
2152 va_start (v,p);
2153 s = g (p, va_arg (v,int));
2154 va_end (v);
2155 return s;
2156}
2157
2158/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2159 function prototypes and stuff, but not '\xHH' hex character constants.
2160 These don't provoke an error unfortunately, instead are silently treated
2161 as 'x'. The following induces an error, until -std1 is added to get
2162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2163 array size at least. It's necessary to write '\x00'==0 to get something
2164 that's true only with -std1. */
2165int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2166
2167int test (int i, double x);
2168struct s1 {int (*f) (int a);};
2169struct s2 {int (*f) (double a);};
2170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171int argc;
2172char **argv;
2173int
2174main ()
2175{
2176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181# Don't try gcc -ansi; that turns off useful extensions and
2182# breaks some systems' header files.
2183# AIX -qlanglvl=ansi
2184# Ultrix and OSF/1 -std1
2185# HP-UX 10.20 and later -Ae
2186# HP-UX older versions -Aa -D_HPUX_SOURCE
2187# SVR4 -Xc -D__EXTENSIONS__
2188for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189do
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
2192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>conftest.er1
2194 ac_status=$?
2195 grep -v '^ *+' conftest.er1 >conftest.err
2196 rm -f conftest.er1
2197 cat conftest.err >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try='test -z "$ac_c_werror_flag"
2201 || test ! -s conftest.err'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; } &&
2207 { ac_try='test -s conftest.$ac_objext'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2213 ac_cv_prog_cc_stdc=$ac_arg
2214break
2215else
2216 echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
2219fi
2220rm -f conftest.err conftest.$ac_objext
2221done
2222rm -f conftest.$ac_ext conftest.$ac_objext
2223CC=$ac_save_CC
2224
2225fi
2226
2227case "x$ac_cv_prog_cc_stdc" in
2228 x|xno)
2229 echo "$as_me:$LINENO: result: none needed" >&5
2230echo "${ECHO_T}none needed" >&6 ;;
2231 *)
2232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2233echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2234 CC="$CC $ac_cv_prog_cc_stdc" ;;
2235esac
2236
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002237# Some people use a C++ compiler to compile C. Since we use `exit',
2238# in C++ we need to declare it. In case someone uses the same compiler
2239# for both compiling C and C++ we need to have the C++ compiler decide
2240# the declaration of exit, since it's the most demanding environment.
2241cat >conftest.$ac_ext <<_ACEOF
2242#ifndef __cplusplus
2243 choke me
2244#endif
2245_ACEOF
2246rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002249 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002250 grep -v '^ *+' conftest.er1 >conftest.err
2251 rm -f conftest.er1
2252 cat conftest.err >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002255 { ac_try='test -z "$ac_c_werror_flag"
2256 || test ! -s conftest.err'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002258 (eval $ac_try) 2>&5
2259 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; } &&
2262 { ac_try='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267 (exit $ac_status); }; }; then
2268 for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002269 '' \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002270 'extern "C" void std::exit (int) throw (); using std::exit;' \
2271 'extern "C" void std::exit (int); using std::exit;' \
2272 'extern "C" void exit (int) throw ();' \
2273 'extern "C" void exit (int);' \
2274 'void exit (int);'
2275do
2276 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002277/* confdefs.h. */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002282$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002283#include <stdlib.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002284int
2285main ()
2286{
2287exit (42);
2288 ;
2289 return 0;
2290}
2291_ACEOF
2292rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002295 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002296 grep -v '^ *+' conftest.er1 >conftest.err
2297 rm -f conftest.er1
2298 cat conftest.err >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002300 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002301 { ac_try='test -z "$ac_c_werror_flag"
2302 || test ! -s conftest.err'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002304 (eval $ac_try) 2>&5
2305 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; } &&
2308 { ac_try='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002313 (exit $ac_status); }; }; then
2314 :
2315else
2316 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002317sed 's/^/| /' conftest.$ac_ext >&5
2318
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002319continue
2320fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002322 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002323/* confdefs.h. */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002328$ac_declaration
2329int
2330main ()
2331{
2332exit (42);
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002340 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002341 grep -v '^ *+' conftest.er1 >conftest.err
2342 rm -f conftest.er1
2343 cat conftest.err >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002345 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002346 { ac_try='test -z "$ac_c_werror_flag"
2347 || test ! -s conftest.err'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002349 (eval $ac_try) 2>&5
2350 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; } &&
2353 { ac_try='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002358 (exit $ac_status); }; }; then
2359 break
2360else
2361 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002362sed 's/^/| /' conftest.$ac_ext >&5
2363
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002364fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002366done
2367rm -f conftest*
2368if test -n "$ac_declaration"; then
2369 echo '#ifdef __cplusplus' >>confdefs.h
2370 echo $ac_declaration >>confdefs.h
2371 echo '#endif' >>confdefs.h
2372fi
2373
2374else
2375 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002376sed 's/^/| /' conftest.$ac_ext >&5
2377
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002378fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002380ac_ext=c
2381ac_cpp='$CPP $CPPFLAGS'
2382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002386ac_ext=cc
2387ac_cpp='$CXXCPP $CPPFLAGS'
2388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2391if test -n "$ac_tool_prefix"; then
2392 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2393 do
2394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002396echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2398if test "${ac_cv_prog_CXX+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400else
2401 if test -n "$CXX"; then
2402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2403else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002416done
2417
2418fi
2419fi
2420CXX=$ac_cv_prog_CXX
2421if test -n "$CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002422 echo "$as_me:$LINENO: result: $CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002423echo "${ECHO_T}$CXX" >&6
2424else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002425 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002426echo "${ECHO_T}no" >&6
2427fi
2428
2429 test -n "$CXX" && break
2430 done
2431fi
2432if test -z "$CXX"; then
2433 ac_ct_CXX=$CXX
2434 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2435do
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002438echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2440if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443 if test -n "$ac_ct_CXX"; then
2444 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2445else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453 ac_cv_prog_ac_ct_CXX="$ac_prog"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2456 fi
2457done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002458done
2459
2460fi
2461fi
2462ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2463if test -n "$ac_ct_CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002464 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002465echo "${ECHO_T}$ac_ct_CXX" >&6
2466else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002467 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002468echo "${ECHO_T}no" >&6
2469fi
2470
2471 test -n "$ac_ct_CXX" && break
2472done
2473test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2474
2475 CXX=$ac_ct_CXX
2476fi
2477
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002478
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002479# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002480echo "$as_me:$LINENO:" \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002481 "checking for C++ compiler version" >&5
2482ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002483{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002484 (eval $ac_compiler --version </dev/null >&5) 2>&5
2485 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002487 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002488{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002489 (eval $ac_compiler -v </dev/null >&5) 2>&5
2490 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002492 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002494 (eval $ac_compiler -V </dev/null >&5) 2>&5
2495 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002497 (exit $ac_status); }
2498
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002499echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002500echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2501if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002505/* confdefs.h. */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002510
2511int
2512main ()
2513{
2514#ifndef __GNUC__
2515 choke me
2516#endif
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002525 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002530 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002531 { ac_try='test -z "$ac_cxx_werror_flag"
2532 || test ! -s conftest.err'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002534 (eval $ac_try) 2>&5
2535 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002543 (exit $ac_status); }; }; then
2544 ac_compiler_gnu=yes
2545else
2546 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002547sed 's/^/| /' conftest.$ac_ext >&5
2548
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002549ac_compiler_gnu=no
2550fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002552ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2553
2554fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002555echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002556echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2557GXX=`test $ac_compiler_gnu = yes && echo yes`
2558ac_test_CXXFLAGS=${CXXFLAGS+set}
2559ac_save_CXXFLAGS=$CXXFLAGS
2560CXXFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002561echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002562echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2563if test "${ac_cv_prog_cxx_g+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002567/* confdefs.h. */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002572
2573int
2574main ()
2575{
2576
2577 ;
2578 return 0;
2579}
2580_ACEOF
2581rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002584 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002585 grep -v '^ *+' conftest.er1 >conftest.err
2586 rm -f conftest.er1
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002589 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002590 { ac_try='test -z "$ac_cxx_werror_flag"
2591 || test ! -s conftest.err'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002593 (eval $ac_try) 2>&5
2594 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002602 (exit $ac_status); }; }; then
2603 ac_cv_prog_cxx_g=yes
2604else
2605 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002606sed 's/^/| /' conftest.$ac_ext >&5
2607
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002608ac_cv_prog_cxx_g=no
2609fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002611fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002612echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002613echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2614if test "$ac_test_CXXFLAGS" = set; then
2615 CXXFLAGS=$ac_save_CXXFLAGS
2616elif test $ac_cv_prog_cxx_g = yes; then
2617 if test "$GXX" = yes; then
2618 CXXFLAGS="-g -O2"
2619 else
2620 CXXFLAGS="-g"
2621 fi
2622else
2623 if test "$GXX" = yes; then
2624 CXXFLAGS="-O2"
2625 else
2626 CXXFLAGS=
2627 fi
2628fi
2629for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002630 '' \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002631 'extern "C" void std::exit (int) throw (); using std::exit;' \
2632 'extern "C" void std::exit (int); using std::exit;' \
2633 'extern "C" void exit (int) throw ();' \
2634 'extern "C" void exit (int);' \
2635 'void exit (int);'
2636do
2637 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002643$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002644#include <stdlib.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002645int
2646main ()
2647{
2648exit (42);
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002656 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002661 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002662 { ac_try='test -z "$ac_cxx_werror_flag"
2663 || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002665 (eval $ac_try) 2>&5
2666 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002674 (exit $ac_status); }; }; then
2675 :
2676else
2677 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002678sed 's/^/| /' conftest.$ac_ext >&5
2679
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002680continue
2681fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002683 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002689$ac_declaration
2690int
2691main ()
2692{
2693exit (42);
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002701 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002706 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002707 { ac_try='test -z "$ac_cxx_werror_flag"
2708 || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002710 (eval $ac_try) 2>&5
2711 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002719 (exit $ac_status); }; }; then
2720 break
2721else
2722 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002723sed 's/^/| /' conftest.$ac_ext >&5
2724
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002725fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002727done
2728rm -f conftest*
2729if test -n "$ac_declaration"; then
2730 echo '#ifdef __cplusplus' >>confdefs.h
2731 echo $ac_declaration >>confdefs.h
2732 echo '#endif' >>confdefs.h
2733fi
2734
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002741ac_ext=c
2742ac_cpp='$CPP $CPPFLAGS'
2743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002747
2748
Benny Prijono53847a32007-09-24 16:10:13 +00002749case $target in
2750 *mingw* | *cygw* | *win32* | *w32* )
2751 ac_pjdir=`pwd -W`
2752 ;;
2753 *)
2754 ac_pjdir=`pwd`
2755 ;;
2756esac
Benny Prijono12483112007-03-12 10:44:38 +00002757
2758
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002759
2760echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002761echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2762if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765 ac_check_lib_save_LIBS=$LIBS
2766LIBS="-lpthread $LIBS"
2767cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002768/* confdefs.h. */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002773
2774/* Override any gcc2 internal prototype to avoid an error. */
2775#ifdef __cplusplus
2776extern "C"
2777#endif
2778/* We use char because int might match the return type of a gcc2
2779 builtin and then its argument prototype would still apply. */
2780char pthread_create ();
2781int
2782main ()
2783{
2784pthread_create ();
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2791 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002792 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002797 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002798 { ac_try='test -z "$ac_c_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002801 (eval $ac_try) 2>&5
2802 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest$ac_exeext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002810 (exit $ac_status); }; }; then
2811 ac_cv_lib_pthread_pthread_create=yes
2812else
2813 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002814sed 's/^/| /' conftest.$ac_ext >&5
2815
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002816ac_cv_lib_pthread_pthread_create=no
2817fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002818rm -f conftest.err conftest.$ac_objext \
2819 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002820LIBS=$ac_check_lib_save_LIBS
2821fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002822echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002823echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2824if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002825 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002826#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002827_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002828
2829 LIBS="-lpthread $LIBS"
2830
2831fi
2832
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002833
2834echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002835echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
2836if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838else
2839 ac_check_lib_save_LIBS=$LIBS
2840LIBS="-lwsock32 $LIBS"
2841cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002842/* confdefs.h. */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002847
2848/* Override any gcc2 internal prototype to avoid an error. */
2849#ifdef __cplusplus
2850extern "C"
2851#endif
2852/* We use char because int might match the return type of a gcc2
2853 builtin and then its argument prototype would still apply. */
2854char puts ();
2855int
2856main ()
2857{
2858puts ();
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2865 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002866 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002871 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002872 { ac_try='test -z "$ac_c_werror_flag"
2873 || test ! -s conftest.err'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002875 (eval $ac_try) 2>&5
2876 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; } &&
2879 { ac_try='test -s conftest$ac_exeext'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002884 (exit $ac_status); }; }; then
2885 ac_cv_lib_wsock32_puts=yes
2886else
2887 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002888sed 's/^/| /' conftest.$ac_ext >&5
2889
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002890ac_cv_lib_wsock32_puts=no
2891fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002892rm -f conftest.err conftest.$ac_objext \
2893 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002894LIBS=$ac_check_lib_save_LIBS
2895fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002896echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002897echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
2898if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002899 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002900#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002901_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002902
2903 LIBS="-lwsock32 $LIBS"
2904
2905fi
2906
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002907
2908echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002909echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
2910if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913 ac_check_lib_save_LIBS=$LIBS
2914LIBS="-lws2_32 $LIBS"
2915cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002916/* confdefs.h. */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002921
2922/* Override any gcc2 internal prototype to avoid an error. */
2923#ifdef __cplusplus
2924extern "C"
2925#endif
2926/* We use char because int might match the return type of a gcc2
2927 builtin and then its argument prototype would still apply. */
2928char puts ();
2929int
2930main ()
2931{
2932puts ();
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002940 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002945 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002949 (eval $ac_try) 2>&5
2950 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest$ac_exeext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002958 (exit $ac_status); }; }; then
2959 ac_cv_lib_ws2_32_puts=yes
2960else
2961 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002962sed 's/^/| /' conftest.$ac_ext >&5
2963
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002964ac_cv_lib_ws2_32_puts=no
2965fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002966rm -f conftest.err conftest.$ac_objext \
2967 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002968LIBS=$ac_check_lib_save_LIBS
2969fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002970echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002971echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
2972if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002973 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002974#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002975_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002976
2977 LIBS="-lws2_32 $LIBS"
2978
2979fi
2980
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002981
2982echo "$as_me:$LINENO: checking for puts in -lole32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002983echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
2984if test "${ac_cv_lib_ole32_puts+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987 ac_check_lib_save_LIBS=$LIBS
2988LIBS="-lole32 $LIBS"
2989cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002990/* confdefs.h. */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002995
2996/* Override any gcc2 internal prototype to avoid an error. */
2997#ifdef __cplusplus
2998extern "C"
2999#endif
3000/* We use char because int might match the return type of a gcc2
3001 builtin and then its argument prototype would still apply. */
3002char puts ();
3003int
3004main ()
3005{
3006puts ();
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3013 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003014 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003019 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003023 (eval $ac_try) 2>&5
3024 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest$ac_exeext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003032 (exit $ac_status); }; }; then
3033 ac_cv_lib_ole32_puts=yes
3034else
3035 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003036sed 's/^/| /' conftest.$ac_ext >&5
3037
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003038ac_cv_lib_ole32_puts=no
3039fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003040rm -f conftest.err conftest.$ac_objext \
3041 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003042LIBS=$ac_check_lib_save_LIBS
3043fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003044echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003045echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
3046if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003047 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003048#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003049_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003050
3051 LIBS="-lole32 $LIBS"
3052
3053fi
3054
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003055
3056echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003057echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
3058if test "${ac_cv_lib_winmm_puts+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061 ac_check_lib_save_LIBS=$LIBS
3062LIBS="-lwinmm $LIBS"
3063cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003064/* confdefs.h. */
3065_ACEOF
3066cat confdefs.h >>conftest.$ac_ext
3067cat >>conftest.$ac_ext <<_ACEOF
3068/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003069
3070/* Override any gcc2 internal prototype to avoid an error. */
3071#ifdef __cplusplus
3072extern "C"
3073#endif
3074/* We use char because int might match the return type of a gcc2
3075 builtin and then its argument prototype would still apply. */
3076char puts ();
3077int
3078main ()
3079{
3080puts ();
3081 ;
3082 return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003088 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003093 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003094 { ac_try='test -z "$ac_c_werror_flag"
3095 || test ! -s conftest.err'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003097 (eval $ac_try) 2>&5
3098 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest$ac_exeext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003106 (exit $ac_status); }; }; then
3107 ac_cv_lib_winmm_puts=yes
3108else
3109 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003110sed 's/^/| /' conftest.$ac_ext >&5
3111
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003112ac_cv_lib_winmm_puts=no
3113fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114rm -f conftest.err conftest.$ac_objext \
3115 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003116LIBS=$ac_check_lib_save_LIBS
3117fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003118echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003119echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
3120if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003121 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003122#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003123_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003124
3125 LIBS="-lwinmm $LIBS"
3126
3127fi
3128
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003129
3130echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003131echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
3132if test "${ac_cv_lib_socket_puts+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135 ac_check_lib_save_LIBS=$LIBS
3136LIBS="-lsocket $LIBS"
3137cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003143
3144/* Override any gcc2 internal prototype to avoid an error. */
3145#ifdef __cplusplus
3146extern "C"
3147#endif
3148/* We use char because int might match the return type of a gcc2
3149 builtin and then its argument prototype would still apply. */
3150char puts ();
3151int
3152main ()
3153{
3154puts ();
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3161 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003162 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003167 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003168 { ac_try='test -z "$ac_c_werror_flag"
3169 || test ! -s conftest.err'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003171 (eval $ac_try) 2>&5
3172 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest$ac_exeext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003180 (exit $ac_status); }; }; then
3181 ac_cv_lib_socket_puts=yes
3182else
3183 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003184sed 's/^/| /' conftest.$ac_ext >&5
3185
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003186ac_cv_lib_socket_puts=no
3187fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003188rm -f conftest.err conftest.$ac_objext \
3189 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003190LIBS=$ac_check_lib_save_LIBS
3191fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003193echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
3194if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003195 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003196#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003197_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003198
3199 LIBS="-lsocket $LIBS"
3200
3201fi
3202
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003203
3204echo "$as_me:$LINENO: checking for puts in -lrt" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003205echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
3206if test "${ac_cv_lib_rt_puts+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 ac_check_lib_save_LIBS=$LIBS
3210LIBS="-lrt $LIBS"
3211cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003217
3218/* Override any gcc2 internal prototype to avoid an error. */
3219#ifdef __cplusplus
3220extern "C"
3221#endif
3222/* We use char because int might match the return type of a gcc2
3223 builtin and then its argument prototype would still apply. */
3224char puts ();
3225int
3226main ()
3227{
3228puts ();
3229 ;
3230 return 0;
3231}
3232_ACEOF
3233rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3235 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003236 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003241 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003245 (eval $ac_try) 2>&5
3246 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003254 (exit $ac_status); }; }; then
3255 ac_cv_lib_rt_puts=yes
3256else
3257 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003258sed 's/^/| /' conftest.$ac_ext >&5
3259
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003260ac_cv_lib_rt_puts=no
3261fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003262rm -f conftest.err conftest.$ac_objext \
3263 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003264LIBS=$ac_check_lib_save_LIBS
3265fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003266echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003267echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
3268if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003269 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003270#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003271_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003272
3273 LIBS="-lrt $LIBS"
3274
3275fi
3276
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003277
3278echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003279echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
3280if test "${ac_cv_lib_nsl_puts+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283 ac_check_lib_save_LIBS=$LIBS
3284LIBS="-lnsl $LIBS"
3285cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003291
3292/* Override any gcc2 internal prototype to avoid an error. */
3293#ifdef __cplusplus
3294extern "C"
3295#endif
3296/* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298char puts ();
3299int
3300main ()
3301{
3302puts ();
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003310 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003315 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003319 (eval $ac_try) 2>&5
3320 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest$ac_exeext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003328 (exit $ac_status); }; }; then
3329 ac_cv_lib_nsl_puts=yes
3330else
3331 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003332sed 's/^/| /' conftest.$ac_ext >&5
3333
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003334ac_cv_lib_nsl_puts=no
3335fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003336rm -f conftest.err conftest.$ac_objext \
3337 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003338LIBS=$ac_check_lib_save_LIBS
3339fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003340echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003341echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
3342if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003343 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003344#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003345_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003346
3347 LIBS="-lnsl $LIBS"
3348
3349fi
3350
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003351
Benny Prijono4e48b512007-05-16 13:41:00 +00003352echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3353echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
3354if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357 ac_check_lib_save_LIBS=$LIBS
3358LIBS="-luuid $LIBS"
3359cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365
3366/* Override any gcc2 internal prototype to avoid an error. */
3367#ifdef __cplusplus
3368extern "C"
3369#endif
3370/* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3372char uuid_generate ();
3373int
3374main ()
3375{
3376uuid_generate ();
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext conftest$ac_exeext
3382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383 (eval $ac_link) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest$ac_exeext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_lib_uuid_uuid_generate=yes
3404else
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408ac_cv_lib_uuid_uuid_generate=no
3409fi
3410rm -f conftest.err conftest.$ac_objext \
3411 conftest$ac_exeext conftest.$ac_ext
3412LIBS=$ac_check_lib_save_LIBS
3413fi
3414echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3415echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
3416if test $ac_cv_lib_uuid_uuid_generate = yes; then
3417 cat >>confdefs.h <<_ACEOF
3418#define HAVE_LIBUUID 1
3419_ACEOF
3420
3421 LIBS="-luuid $LIBS"
3422
3423fi
3424
3425echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3426echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
3427if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 ac_check_lib_save_LIBS=$LIBS
3431LIBS="-luuid $LIBS"
3432cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */
3438
3439/* Override any gcc2 internal prototype to avoid an error. */
3440#ifdef __cplusplus
3441extern "C"
3442#endif
3443/* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3445char uuid_generate ();
3446int
3447main ()
3448{
3449uuid_generate ();
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext conftest$ac_exeext
3455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3456 (eval $ac_link) 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_c_werror_flag"
3464 || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest$ac_exeext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 ac_cv_lib_uuid_uuid_generate=yes
3477else
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481ac_cv_lib_uuid_uuid_generate=no
3482fi
3483rm -f conftest.err conftest.$ac_objext \
3484 conftest$ac_exeext conftest.$ac_ext
3485LIBS=$ac_check_lib_save_LIBS
3486fi
3487echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3488echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
3489if test $ac_cv_lib_uuid_uuid_generate = yes; then
3490 ac_has_uuid_lib=1
3491fi
3492
3493
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003494echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3495echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
3496cat >>confdefs.h <<_ACEOF
3497#define PJ_M_NAME "$target_cpu"
3498_ACEOF
3499
3500
3501echo "$as_me:$LINENO: checking memory alignment" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003502echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
3503case $target in
3504 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003505 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003506#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003507_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003508
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003509 echo "$as_me:$LINENO: result: 8 bytes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003510echo "${ECHO_T}8 bytes" >&6
3511 ;;
3512 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003513 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003514#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003515_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003516
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003517 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003518echo "${ECHO_T}4 bytes (default)" >&6
3519 ;;
3520esac
3521
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003522
3523echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003524echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3525if test "${ac_cv_c_bigendian+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003528 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003529cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003530/* confdefs.h. */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003535#include <sys/types.h>
3536#include <sys/param.h>
3537
3538int
3539main ()
3540{
3541#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3542 bogus endian macros
3543#endif
3544
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003552 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003557 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003561 (eval $ac_try) 2>&5
3562 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003570 (exit $ac_status); }; }; then
3571 # It does; now see whether it defined to BIG_ENDIAN or not.
3572cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003578#include <sys/types.h>
3579#include <sys/param.h>
3580
3581int
3582main ()
3583{
3584#if BYTE_ORDER != BIG_ENDIAN
3585 not big endian
3586#endif
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003595 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003600 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003604 (eval $ac_try) 2>&5
3605 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003613 (exit $ac_status); }; }; then
3614 ac_cv_c_bigendian=yes
3615else
3616 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003617sed 's/^/| /' conftest.$ac_ext >&5
3618
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003619ac_cv_c_bigendian=no
3620fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003622else
3623 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003627if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003628 # try to guess the endianness by grepping values into an object file
3629 ac_cv_c_bigendian=unknown
3630 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3637short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3638void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3639short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3640short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3641void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3642int
3643main ()
3644{
3645 _ascii (); _ebcdic ();
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3673 ac_cv_c_bigendian=yes
3674fi
3675if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3676 if test "$ac_cv_c_bigendian" = unknown; then
3677 ac_cv_c_bigendian=no
3678 else
3679 # finding both strings is unlikely to happen, but who knows?
3680 ac_cv_c_bigendian=unknown
3681 fi
3682fi
3683else
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687fi
3688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003689else
3690 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003696int
3697main ()
3698{
3699 /* Are we little or big endian? From Harbison&Steele. */
3700 union
3701 {
3702 long l;
3703 char c[sizeof (long)];
3704 } u;
3705 u.l = 1;
3706 exit (u.c[sizeof (long) - 1] == 1);
3707}
3708_ACEOF
3709rm -f conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003711 (eval $ac_link) 2>&5
3712 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003716 (eval $ac_try) 2>&5
3717 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003719 (exit $ac_status); }; }; then
3720 ac_cv_c_bigendian=no
3721else
3722 echo "$as_me: program exited with status $ac_status" >&5
3723echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003727ac_cv_c_bigendian=yes
3728fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003729rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003730fi
3731fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003733fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003734echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003735echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003736case $ac_cv_c_bigendian in
3737 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003738
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003739cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003740#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003741_ACEOF
3742 ;;
3743 no)
3744 ;;
3745 *)
3746 { { echo "$as_me:$LINENO: error: unknown endianness
3747presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3748echo "$as_me: error: unknown endianness
3749presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3750 { (exit 1); exit 1; }; } ;;
3751esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003752
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003753
3754case $target in
3755 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003756 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003758_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003759
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003760 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003762_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003764 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003765#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003766_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003767
3768 ;;
3769 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003770 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003771#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003772_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773
3774 ;;
3775 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003776 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003778_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003779
3780 ;;
3781 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003782 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003784_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003785
3786 ;;
3787 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003788 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003791
3792 ;;
3793 *)
3794 ;;
3795esac
3796
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003797
3798
3799
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003800# Check whether --enable-floating-point or --disable-floating-point was given.
3801if test "${enable_floating_point+set}" = set; then
3802 enableval="$enable_floating_point"
3803 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003804 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003805#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003806_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003807
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003808 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003809echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
3810 fi
3811else
3812
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003813 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003814#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003815_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003816
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003817 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003818echo "${ECHO_T}Checking if floating point is disabled... no" >&6
3819
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003820echo "$as_me:$LINENO: checking for fmod in -lm" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003821echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
3822if test "${ac_cv_lib_m_fmod+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 ac_check_lib_save_LIBS=$LIBS
3826LIBS="-lm $LIBS"
3827cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003828/* confdefs.h. */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003833
3834/* Override any gcc2 internal prototype to avoid an error. */
3835#ifdef __cplusplus
3836extern "C"
3837#endif
3838/* We use char because int might match the return type of a gcc2
3839 builtin and then its argument prototype would still apply. */
3840char fmod ();
3841int
3842main ()
3843{
3844fmod ();
3845 ;
3846 return 0;
3847}
3848_ACEOF
3849rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3851 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003852 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003857 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003858 { ac_try='test -z "$ac_c_werror_flag"
3859 || test ! -s conftest.err'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003861 (eval $ac_try) 2>&5
3862 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; } &&
3865 { ac_try='test -s conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003870 (exit $ac_status); }; }; then
3871 ac_cv_lib_m_fmod=yes
3872else
3873 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003874sed 's/^/| /' conftest.$ac_ext >&5
3875
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003876ac_cv_lib_m_fmod=no
3877fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003878rm -f conftest.err conftest.$ac_objext \
3879 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003880LIBS=$ac_check_lib_save_LIBS
3881fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003882echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003883echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
3884if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003885 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003886#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003887_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003888
3889 LIBS="-lm $LIBS"
3890
3891fi
3892
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003893
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003894fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003896
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003897ac_ext=c
3898ac_cpp='$CPP $CPPFLAGS'
3899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003902echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003903echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3904# On Suns, sometimes $CPP names a directory.
3905if test -n "$CPP" && test -d "$CPP"; then
3906 CPP=
3907fi
3908if test -z "$CPP"; then
3909 if test "${ac_cv_prog_CPP+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912 # Double quotes because CPP needs to be expanded
3913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3914 do
3915 ac_preproc_ok=false
3916for ac_c_preproc_warn_flag in '' yes
3917do
3918 # Use a header file that comes with gcc, so configuring glibc
3919 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003922 # On the NeXT, cc -E runs the code through the compiler's parser,
3923 # not just through cpp. "Syntax error" is here to catch this case.
3924 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003925/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003926_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930#ifdef __STDC__
3931# include <limits.h>
3932#else
3933# include <assert.h>
3934#endif
3935 Syntax error
3936_ACEOF
3937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3939 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003940 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003941 rm -f conftest.er1
3942 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003944 (exit $ac_status); } >/dev/null; then
3945 if test -s conftest.err; then
3946 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003948 else
3949 ac_cpp_err=
3950 fi
3951else
3952 ac_cpp_err=yes
3953fi
3954if test -z "$ac_cpp_err"; then
3955 :
3956else
3957 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003958sed 's/^/| /' conftest.$ac_ext >&5
3959
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003960 # Broken: fails on valid input.
3961continue
3962fi
3963rm -f conftest.err conftest.$ac_ext
3964
3965 # OK, works on sane cases. Now check whether non-existent headers
3966 # can be detected and how.
3967 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003973#include <ac_nonexistent.h>
3974_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003978 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003979 rm -f conftest.er1
3980 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003982 (exit $ac_status); } >/dev/null; then
3983 if test -s conftest.err; then
3984 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003986 else
3987 ac_cpp_err=
3988 fi
3989else
3990 ac_cpp_err=yes
3991fi
3992if test -z "$ac_cpp_err"; then
3993 # Broken: success on invalid input.
3994continue
3995else
3996 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003997sed 's/^/| /' conftest.$ac_ext >&5
3998
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003999 # Passes both tests.
4000ac_preproc_ok=:
4001break
4002fi
4003rm -f conftest.err conftest.$ac_ext
4004
4005done
4006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007rm -f conftest.err conftest.$ac_ext
4008if $ac_preproc_ok; then
4009 break
4010fi
4011
4012 done
4013 ac_cv_prog_CPP=$CPP
4014
4015fi
4016 CPP=$ac_cv_prog_CPP
4017else
4018 ac_cv_prog_CPP=$CPP
4019fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004020echo "$as_me:$LINENO: result: $CPP" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004021echo "${ECHO_T}$CPP" >&6
4022ac_preproc_ok=false
4023for ac_c_preproc_warn_flag in '' yes
4024do
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
4031 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004032/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004033_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h. */
4037#ifdef __STDC__
4038# include <limits.h>
4039#else
4040# include <assert.h>
4041#endif
4042 Syntax error
4043_ACEOF
4044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4046 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004047 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004048 rm -f conftest.er1
4049 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004051 (exit $ac_status); } >/dev/null; then
4052 if test -s conftest.err; then
4053 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004055 else
4056 ac_cpp_err=
4057 fi
4058else
4059 ac_cpp_err=yes
4060fi
4061if test -z "$ac_cpp_err"; then
4062 :
4063else
4064 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004065sed 's/^/| /' conftest.$ac_ext >&5
4066
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004067 # Broken: fails on valid input.
4068continue
4069fi
4070rm -f conftest.err conftest.$ac_ext
4071
4072 # OK, works on sane cases. Now check whether non-existent headers
4073 # can be detected and how.
4074 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004080#include <ac_nonexistent.h>
4081_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004085 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004086 rm -f conftest.er1
4087 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004089 (exit $ac_status); } >/dev/null; then
4090 if test -s conftest.err; then
4091 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004093 else
4094 ac_cpp_err=
4095 fi
4096else
4097 ac_cpp_err=yes
4098fi
4099if test -z "$ac_cpp_err"; then
4100 # Broken: success on invalid input.
4101continue
4102else
4103 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004104sed 's/^/| /' conftest.$ac_ext >&5
4105
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004106 # Passes both tests.
4107ac_preproc_ok=:
4108break
4109fi
4110rm -f conftest.err conftest.$ac_ext
4111
4112done
4113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114rm -f conftest.err conftest.$ac_ext
4115if $ac_preproc_ok; then
4116 :
4117else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004118 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4119See \`config.log' for more details." >&5
4120echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4121See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004122 { (exit 1); exit 1; }; }
4123fi
4124
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004131
4132echo "$as_me:$LINENO: checking for egrep" >&5
4133echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4134if test "${ac_cv_prog_egrep+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4138 then ac_cv_prog_egrep='grep -E'
4139 else ac_cv_prog_egrep='egrep'
4140 fi
4141fi
4142echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4143echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4144 EGREP=$ac_cv_prog_egrep
4145
4146
4147echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4148echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4149if test "${ac_cv_header_stdc+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <stdlib.h>
4159#include <stdarg.h>
4160#include <string.h>
4161#include <float.h>
4162
4163int
4164main ()
4165{
4166
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag"
4181 || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_header_stdc=yes
4194else
4195 echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198ac_cv_header_stdc=no
4199fi
4200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201
4202if test $ac_cv_header_stdc = yes; then
4203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
4210#include <string.h>
4211
4212_ACEOF
4213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "memchr" >/dev/null 2>&1; then
4215 :
4216else
4217 ac_cv_header_stdc=no
4218fi
4219rm -f conftest*
4220
4221fi
4222
4223if test $ac_cv_header_stdc = yes; then
4224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4225 cat >conftest.$ac_ext <<_ACEOF
4226/* confdefs.h. */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h. */
4231#include <stdlib.h>
4232
4233_ACEOF
4234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 $EGREP "free" >/dev/null 2>&1; then
4236 :
4237else
4238 ac_cv_header_stdc=no
4239fi
4240rm -f conftest*
4241
4242fi
4243
4244if test $ac_cv_header_stdc = yes; then
4245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4246 if test "$cross_compiling" = yes; then
4247 :
4248else
4249 cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255#include <ctype.h>
4256#if ((' ' & 0x0FF) == 0x020)
4257# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4258# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259#else
4260# define ISLOWER(c) \
4261 (('a' <= (c) && (c) <= 'i') \
4262 || ('j' <= (c) && (c) <= 'r') \
4263 || ('s' <= (c) && (c) <= 'z'))
4264# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4265#endif
4266
4267#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4268int
4269main ()
4270{
4271 int i;
4272 for (i = 0; i < 256; i++)
4273 if (XOR (islower (i), ISLOWER (i))
4274 || toupper (i) != TOUPPER (i))
4275 exit(2);
4276 exit (0);
4277}
4278_ACEOF
4279rm -f conftest$ac_exeext
4280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 :
4291else
4292 echo "$as_me: program exited with status $ac_status" >&5
4293echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296( exit $ac_status )
4297ac_cv_header_stdc=no
4298fi
4299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300fi
4301fi
4302fi
4303echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4304echo "${ECHO_T}$ac_cv_header_stdc" >&6
4305if test $ac_cv_header_stdc = yes; then
4306
4307cat >>confdefs.h <<\_ACEOF
4308#define STDC_HEADERS 1
4309_ACEOF
4310
4311fi
4312
4313# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4324 inttypes.h stdint.h unistd.h
4325do
4326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327echo "$as_me:$LINENO: checking for $ac_header" >&5
4328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4329if eval "test \"\${$as_ac_Header+set}\" = set"; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331else
4332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
4338$ac_includes_default
4339
4340#include <$ac_header>
4341_ACEOF
4342rm -f conftest.$ac_objext
4343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag"
4352 || test ! -s conftest.err'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 eval "$as_ac_Header=yes"
4365else
4366 echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369eval "$as_ac_Header=no"
4370fi
4371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372fi
4373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4375if test `eval echo '${'$as_ac_Header'}'` = yes; then
4376 cat >>confdefs.h <<_ACEOF
4377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4378_ACEOF
4379
4380fi
4381
4382done
4383
4384
4385if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4386 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4387echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4388if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4392echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4393else
4394 # Is the header compilable?
4395echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4396echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
4397cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h. */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h. */
4403$ac_includes_default
4404#include <arpa/inet.h>
4405_ACEOF
4406rm -f conftest.$ac_objext
4407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
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); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_header_compiler=yes
4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433ac_header_compiler=no
4434fi
4435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437echo "${ECHO_T}$ac_header_compiler" >&6
4438
4439# Is the header present?
4440echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4441echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
4442cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h. */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h. */
4448#include <arpa/inet.h>
4449_ACEOF
4450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } >/dev/null; then
4458 if test -s conftest.err; then
4459 ac_cpp_err=$ac_c_preproc_warn_flag
4460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4461 else
4462 ac_cpp_err=
4463 fi
4464else
4465 ac_cpp_err=yes
4466fi
4467if test -z "$ac_cpp_err"; then
4468 ac_header_preproc=yes
4469else
4470 echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473 ac_header_preproc=no
4474fi
4475rm -f conftest.err conftest.$ac_ext
4476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477echo "${ECHO_T}$ac_header_preproc" >&6
4478
4479# So? What about this header?
4480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4481 yes:no: )
4482 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4483echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4484 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4485echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4486 ac_header_preproc=yes
4487 ;;
4488 no:yes:* )
4489 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4490echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4492echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4494echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4496echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4498echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4500echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
4501 (
4502 cat <<\_ASBOX
4503## ------------------------------------ ##
4504## Report this to the pjproject lists. ##
4505## ------------------------------------ ##
4506_ASBOX
4507 ) |
4508 sed "s/^/$as_me: WARNING: /" >&2
4509 ;;
4510esac
4511echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004512echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4513if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004515else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004516 ac_cv_header_arpa_inet_h=$ac_header_preproc
4517fi
4518echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4519echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4520
4521fi
4522if test $ac_cv_header_arpa_inet_h = yes; then
4523 cat >>confdefs.h <<\_ACEOF
4524#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004525_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004526
4527fi
4528
4529
4530if test "${ac_cv_header_assert_h+set}" = set; then
4531 echo "$as_me:$LINENO: checking for assert.h" >&5
4532echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4533if test "${ac_cv_header_assert_h+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535fi
4536echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4537echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4538else
4539 # Is the header compilable?
4540echo "$as_me:$LINENO: checking assert.h usability" >&5
4541echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
4542cat >conftest.$ac_ext <<_ACEOF
4543/* confdefs.h. */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h. */
4548$ac_includes_default
4549#include <assert.h>
4550_ACEOF
4551rm -f conftest.$ac_objext
4552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004554 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004555 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004556 rm -f conftest.er1
4557 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_c_werror_flag"
4561 || test ! -s conftest.err'
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); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_header_compiler=yes
4574else
4575 echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578ac_header_compiler=no
4579fi
4580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4582echo "${ECHO_T}$ac_header_compiler" >&6
4583
4584# Is the header present?
4585echo "$as_me:$LINENO: checking assert.h presence" >&5
4586echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
4587cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4593#include <assert.h>
4594_ACEOF
4595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004602 (exit $ac_status); } >/dev/null; then
4603 if test -s conftest.err; then
4604 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004606 else
4607 ac_cpp_err=
4608 fi
4609else
4610 ac_cpp_err=yes
4611fi
4612if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004613 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004614else
4615 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004619fi
4620rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4622echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004623
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004624# So? What about this header?
4625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4626 yes:no: )
4627 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4628echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4629 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4630echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4631 ac_header_preproc=yes
4632 ;;
4633 no:yes:* )
4634 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4635echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4636 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4637echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4638 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4639echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4641echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4643echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4645echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
4646 (
4647 cat <<\_ASBOX
4648## ------------------------------------ ##
4649## Report this to the pjproject lists. ##
4650## ------------------------------------ ##
4651_ASBOX
4652 ) |
4653 sed "s/^/$as_me: WARNING: /" >&2
4654 ;;
4655esac
4656echo "$as_me:$LINENO: checking for assert.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004657echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4658if test "${ac_cv_header_assert_h+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004660else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004661 ac_cv_header_assert_h=$ac_header_preproc
4662fi
4663echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4664echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4665
4666fi
4667if test $ac_cv_header_assert_h = yes; then
4668 cat >>confdefs.h <<\_ACEOF
4669#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004670_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004671
4672fi
4673
4674
4675if test "${ac_cv_header_ctype_h+set}" = set; then
4676 echo "$as_me:$LINENO: checking for ctype.h" >&5
4677echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4678if test "${ac_cv_header_ctype_h+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680fi
4681echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4682echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4683else
4684 # Is the header compilable?
4685echo "$as_me:$LINENO: checking ctype.h usability" >&5
4686echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
4687cat >conftest.$ac_ext <<_ACEOF
4688/* confdefs.h. */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h. */
4693$ac_includes_default
4694#include <ctype.h>
4695_ACEOF
4696rm -f conftest.$ac_objext
4697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004699 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004700 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004701 rm -f conftest.er1
4702 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -z "$ac_c_werror_flag"
4706 || test ! -s conftest.err'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_header_compiler=yes
4719else
4720 echo "$as_me: failed program was:" >&5
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723ac_header_compiler=no
4724fi
4725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727echo "${ECHO_T}$ac_header_compiler" >&6
4728
4729# Is the header present?
4730echo "$as_me:$LINENO: checking ctype.h presence" >&5
4731echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
4732cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#include <ctype.h>
4739_ACEOF
4740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004747 (exit $ac_status); } >/dev/null; then
4748 if test -s conftest.err; then
4749 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004751 else
4752 ac_cpp_err=
4753 fi
4754else
4755 ac_cpp_err=yes
4756fi
4757if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004758 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004759else
4760 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004761sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004764fi
4765rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004768
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004769# So? What about this header?
4770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4771 yes:no: )
4772 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4775echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc=yes
4777 ;;
4778 no:yes:* )
4779 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4780echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4781 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4782echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4784echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4786echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4788echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4789 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4790echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
4791 (
4792 cat <<\_ASBOX
4793## ------------------------------------ ##
4794## Report this to the pjproject lists. ##
4795## ------------------------------------ ##
4796_ASBOX
4797 ) |
4798 sed "s/^/$as_me: WARNING: /" >&2
4799 ;;
4800esac
4801echo "$as_me:$LINENO: checking for ctype.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004802echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4803if test "${ac_cv_header_ctype_h+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004805else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004806 ac_cv_header_ctype_h=$ac_header_preproc
4807fi
4808echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4809echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4810
4811fi
4812if test $ac_cv_header_ctype_h = yes; then
4813 cat >>confdefs.h <<\_ACEOF
4814#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004815_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004816
4817fi
4818
4819
4820
4821case $target in
4822 *mingw* | *cygw* | *win32* | *w32* )
4823 cat >>confdefs.h <<\_ACEOF
4824#define PJ_HAS_ERRNO_H 0
4825_ACEOF
4826
4827 ;;
4828 *)
4829 if test "${ac_cv_header_errno_h+set}" = set; then
4830 echo "$as_me:$LINENO: checking for errno.h" >&5
4831echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4832if test "${ac_cv_header_errno_h+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834fi
4835echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4836echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4837else
4838 # Is the header compilable?
4839echo "$as_me:$LINENO: checking errno.h usability" >&5
4840echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4841cat >conftest.$ac_ext <<_ACEOF
4842/* confdefs.h. */
4843_ACEOF
4844cat confdefs.h >>conftest.$ac_ext
4845cat >>conftest.$ac_ext <<_ACEOF
4846/* end confdefs.h. */
4847$ac_includes_default
4848#include <errno.h>
4849_ACEOF
4850rm -f conftest.$ac_objext
4851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004853 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004854 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004855 rm -f conftest.er1
4856 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -z "$ac_c_werror_flag"
4860 || test ! -s conftest.err'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_header_compiler=yes
4873else
4874 echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877ac_header_compiler=no
4878fi
4879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4881echo "${ECHO_T}$ac_header_compiler" >&6
4882
4883# Is the header present?
4884echo "$as_me:$LINENO: checking errno.h presence" >&5
4885echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4886cat >conftest.$ac_ext <<_ACEOF
4887/* confdefs.h. */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h. */
4892#include <errno.h>
4893_ACEOF
4894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004901 (exit $ac_status); } >/dev/null; then
4902 if test -s conftest.err; then
4903 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004905 else
4906 ac_cpp_err=
4907 fi
4908else
4909 ac_cpp_err=yes
4910fi
4911if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004912 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004913else
4914 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004915sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004918fi
4919rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4921echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004922
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004923# So? What about this header?
4924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4925 yes:no: )
4926 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4927echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4928 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4929echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4930 ac_header_preproc=yes
4931 ;;
4932 no:yes:* )
4933 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4934echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4936echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4937 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4938echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4940echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4942echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4944echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4945 (
4946 cat <<\_ASBOX
4947## ------------------------------------ ##
4948## Report this to the pjproject lists. ##
4949## ------------------------------------ ##
4950_ASBOX
4951 ) |
4952 sed "s/^/$as_me: WARNING: /" >&2
4953 ;;
4954esac
4955echo "$as_me:$LINENO: checking for errno.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004956echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4957if test "${ac_cv_header_errno_h+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004959else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004960 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004961fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004962echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004963echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004964
4965fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004966if test $ac_cv_header_errno_h = yes; then
4967 cat >>confdefs.h <<\_ACEOF
4968#define PJ_HAS_ERRNO_H 1
4969_ACEOF
4970
4971fi
4972
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004973
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004974 ;;
4975esac
4976
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004977if test "${ac_cv_header_linux_socket_h+set}" = set; then
4978 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4979echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4980if test "${ac_cv_header_linux_socket_h+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982fi
4983echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4984echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4985else
4986 # Is the header compilable?
4987echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
4988echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
4989cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
4995$ac_includes_default
4996#include <linux/socket.h>
4997_ACEOF
4998rm -f conftest.$ac_objext
4999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
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); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_header_compiler=yes
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025ac_header_compiler=no
5026fi
5027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5029echo "${ECHO_T}$ac_header_compiler" >&6
5030
5031# Is the header present?
5032echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5033echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
5034cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h. */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h. */
5040#include <linux/socket.h>
5041_ACEOF
5042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } >/dev/null; then
5050 if test -s conftest.err; then
5051 ac_cpp_err=$ac_c_preproc_warn_flag
5052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5053 else
5054 ac_cpp_err=
5055 fi
5056else
5057 ac_cpp_err=yes
5058fi
5059if test -z "$ac_cpp_err"; then
5060 ac_header_preproc=yes
5061else
5062 echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_header_preproc=no
5066fi
5067rm -f conftest.err conftest.$ac_ext
5068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5069echo "${ECHO_T}$ac_header_preproc" >&6
5070
5071# So? What about this header?
5072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5073 yes:no: )
5074 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5075echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5076 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5077echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5078 ac_header_preproc=yes
5079 ;;
5080 no:yes:* )
5081 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5082echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5084echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5086echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5088echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5090echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5092echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
5093 (
5094 cat <<\_ASBOX
5095## ------------------------------------ ##
5096## Report this to the pjproject lists. ##
5097## ------------------------------------ ##
5098_ASBOX
5099 ) |
5100 sed "s/^/$as_me: WARNING: /" >&2
5101 ;;
5102esac
5103echo "$as_me:$LINENO: checking for linux/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005104echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
5105if test "${ac_cv_header_linux_socket_h+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005107else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005108 ac_cv_header_linux_socket_h=$ac_header_preproc
5109fi
5110echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5111echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
5112
5113fi
5114if test $ac_cv_header_linux_socket_h = yes; then
5115 cat >>confdefs.h <<\_ACEOF
5116#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005117_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005118
5119fi
5120
5121
5122if test "${ac_cv_header_malloc_h+set}" = set; then
5123 echo "$as_me:$LINENO: checking for malloc.h" >&5
5124echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5125if test "${ac_cv_header_malloc_h+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127fi
5128echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5129echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5130else
5131 # Is the header compilable?
5132echo "$as_me:$LINENO: checking malloc.h usability" >&5
5133echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
5134cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h. */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h. */
5140$ac_includes_default
5141#include <malloc.h>
5142_ACEOF
5143rm -f conftest.$ac_objext
5144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005146 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005147 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005148 rm -f conftest.er1
5149 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try='test -z "$ac_c_werror_flag"
5153 || test ! -s conftest.err'
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); }; } &&
5159 { ac_try='test -s conftest.$ac_objext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_header_compiler=yes
5166else
5167 echo "$as_me: failed program was:" >&5
5168sed 's/^/| /' conftest.$ac_ext >&5
5169
5170ac_header_compiler=no
5171fi
5172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5174echo "${ECHO_T}$ac_header_compiler" >&6
5175
5176# Is the header present?
5177echo "$as_me:$LINENO: checking malloc.h presence" >&5
5178echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
5179cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185#include <malloc.h>
5186_ACEOF
5187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005194 (exit $ac_status); } >/dev/null; then
5195 if test -s conftest.err; then
5196 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005198 else
5199 ac_cpp_err=
5200 fi
5201else
5202 ac_cpp_err=yes
5203fi
5204if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005205 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005206else
5207 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005208sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005211fi
5212rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005213echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5214echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005215
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005216# So? What about this header?
5217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5218 yes:no: )
5219 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5220echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5222echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5223 ac_header_preproc=yes
5224 ;;
5225 no:yes:* )
5226 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5227echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5229echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5231echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5233echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5235echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5237echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5238 (
5239 cat <<\_ASBOX
5240## ------------------------------------ ##
5241## Report this to the pjproject lists. ##
5242## ------------------------------------ ##
5243_ASBOX
5244 ) |
5245 sed "s/^/$as_me: WARNING: /" >&2
5246 ;;
5247esac
5248echo "$as_me:$LINENO: checking for malloc.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005249echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5250if test "${ac_cv_header_malloc_h+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005252else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005253 ac_cv_header_malloc_h=$ac_header_preproc
5254fi
5255echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5256echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5257
5258fi
5259if test $ac_cv_header_malloc_h = yes; then
5260 cat >>confdefs.h <<\_ACEOF
5261#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005262_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005263
5264fi
5265
5266
5267if test "${ac_cv_header_netdb_h+set}" = set; then
5268 echo "$as_me:$LINENO: checking for netdb.h" >&5
5269echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5270if test "${ac_cv_header_netdb_h+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272fi
5273echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5274echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5275else
5276 # Is the header compilable?
5277echo "$as_me:$LINENO: checking netdb.h usability" >&5
5278echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
5279cat >conftest.$ac_ext <<_ACEOF
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
5285$ac_includes_default
5286#include <netdb.h>
5287_ACEOF
5288rm -f conftest.$ac_objext
5289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005291 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005292 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005293 rm -f conftest.er1
5294 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -z "$ac_c_werror_flag"
5298 || test ! -s conftest.err'
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); }; } &&
5304 { ac_try='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_header_compiler=yes
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315ac_header_compiler=no
5316fi
5317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5319echo "${ECHO_T}$ac_header_compiler" >&6
5320
5321# Is the header present?
5322echo "$as_me:$LINENO: checking netdb.h presence" >&5
5323echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
5324cat >conftest.$ac_ext <<_ACEOF
5325/* confdefs.h. */
5326_ACEOF
5327cat confdefs.h >>conftest.$ac_ext
5328cat >>conftest.$ac_ext <<_ACEOF
5329/* end confdefs.h. */
5330#include <netdb.h>
5331_ACEOF
5332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005339 (exit $ac_status); } >/dev/null; then
5340 if test -s conftest.err; then
5341 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005343 else
5344 ac_cpp_err=
5345 fi
5346else
5347 ac_cpp_err=yes
5348fi
5349if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005350 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005351else
5352 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005353sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005356fi
5357rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5359echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005360
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005361# So? What about this header?
5362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5363 yes:no: )
5364 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5365echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5367echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5368 ac_header_preproc=yes
5369 ;;
5370 no:yes:* )
5371 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5372echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5374echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5376echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5378echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5380echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5381 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5382echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
5383 (
5384 cat <<\_ASBOX
5385## ------------------------------------ ##
5386## Report this to the pjproject lists. ##
5387## ------------------------------------ ##
5388_ASBOX
5389 ) |
5390 sed "s/^/$as_me: WARNING: /" >&2
5391 ;;
5392esac
5393echo "$as_me:$LINENO: checking for netdb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005394echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5395if test "${ac_cv_header_netdb_h+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005397else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005398 ac_cv_header_netdb_h=$ac_header_preproc
5399fi
5400echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5401echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5402
5403fi
5404if test $ac_cv_header_netdb_h = yes; then
5405 cat >>confdefs.h <<\_ACEOF
5406#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005407_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005408
5409fi
5410
5411
5412if test "${ac_cv_header_netinet_in_h+set}" = set; then
5413 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5414echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5415if test "${ac_cv_header_netinet_in_h+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417fi
5418echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5419echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5420else
5421 # Is the header compilable?
5422echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5423echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5424cat >conftest.$ac_ext <<_ACEOF
5425/* confdefs.h. */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h. */
5430$ac_includes_default
5431#include <netinet/in.h>
5432_ACEOF
5433rm -f conftest.$ac_objext
5434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005436 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005437 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005438 rm -f conftest.er1
5439 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag"
5443 || test ! -s conftest.err'
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); }; } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_header_compiler=yes
5456else
5457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
5460ac_header_compiler=no
5461fi
5462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5464echo "${ECHO_T}$ac_header_compiler" >&6
5465
5466# Is the header present?
5467echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5468echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5469cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h. */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h. */
5475#include <netinet/in.h>
5476_ACEOF
5477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005484 (exit $ac_status); } >/dev/null; then
5485 if test -s conftest.err; then
5486 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005488 else
5489 ac_cpp_err=
5490 fi
5491else
5492 ac_cpp_err=yes
5493fi
5494if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005495 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005496else
5497 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005501fi
5502rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005503echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5504echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005505
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005506# So? What about this header?
5507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5508 yes:no: )
5509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5510echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5512echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5513 ac_header_preproc=yes
5514 ;;
5515 no:yes:* )
5516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5517echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5519echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5521echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5523echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5525echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5527echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5528 (
5529 cat <<\_ASBOX
5530## ------------------------------------ ##
5531## Report this to the pjproject lists. ##
5532## ------------------------------------ ##
5533_ASBOX
5534 ) |
5535 sed "s/^/$as_me: WARNING: /" >&2
5536 ;;
5537esac
5538echo "$as_me:$LINENO: checking for netinet/in.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005539echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5540if test "${ac_cv_header_netinet_in_h+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005542else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005543 ac_cv_header_netinet_in_h=$ac_header_preproc
5544fi
5545echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5546echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5547
5548fi
5549if test $ac_cv_header_netinet_in_h = yes; then
5550 cat >>confdefs.h <<\_ACEOF
5551#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005552_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005553
5554fi
5555
5556
Benny Prijonof63a2552007-02-01 00:36:52 +00005557if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5558 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5559echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5560if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562fi
5563echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5564echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5565else
5566 # Is the header compilable?
5567echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5568echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
5569cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h. */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h. */
5575$ac_includes_default
5576#include <netinet/ip.h>
5577_ACEOF
5578rm -f conftest.$ac_objext
5579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_c_werror_flag"
5588 || test ! -s conftest.err'
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); }; } &&
5594 { ac_try='test -s conftest.$ac_objext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_header_compiler=yes
5601else
5602 echo "$as_me: failed program was:" >&5
5603sed 's/^/| /' conftest.$ac_ext >&5
5604
5605ac_header_compiler=no
5606fi
5607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5609echo "${ECHO_T}$ac_header_compiler" >&6
5610
5611# Is the header present?
5612echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5613echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
5614cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
5620#include <netinet/ip.h>
5621_ACEOF
5622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } >/dev/null; then
5630 if test -s conftest.err; then
5631 ac_cpp_err=$ac_c_preproc_warn_flag
5632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5633 else
5634 ac_cpp_err=
5635 fi
5636else
5637 ac_cpp_err=yes
5638fi
5639if test -z "$ac_cpp_err"; then
5640 ac_header_preproc=yes
5641else
5642 echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_preproc=no
5646fi
5647rm -f conftest.err conftest.$ac_ext
5648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5649echo "${ECHO_T}$ac_header_preproc" >&6
5650
5651# So? What about this header?
5652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5653 yes:no: )
5654 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5655echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5657echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5658 ac_header_preproc=yes
5659 ;;
5660 no:yes:* )
5661 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5662echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5664echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5666echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5668echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5670echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5672echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
5673 (
5674 cat <<\_ASBOX
5675## ------------------------------------ ##
5676## Report this to the pjproject lists. ##
5677## ------------------------------------ ##
5678_ASBOX
5679 ) |
5680 sed "s/^/$as_me: WARNING: /" >&2
5681 ;;
5682esac
5683echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5684echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5685if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688 ac_cv_header_netinet_ip_h=$ac_header_preproc
5689fi
5690echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5691echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5692
5693fi
5694if test $ac_cv_header_netinet_ip_h = yes; then
5695 cat >>confdefs.h <<\_ACEOF
5696#define PJ_HAS_NETINET_IP_H 1
5697_ACEOF
5698
5699fi
5700
5701
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005702if test "${ac_cv_header_net_if_h+set}" = set; then
5703 echo "$as_me:$LINENO: checking for net/if.h" >&5
5704echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
5705if test "${ac_cv_header_net_if_h+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707fi
5708echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
5709echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
5710else
5711 # Is the header compilable?
5712echo "$as_me:$LINENO: checking net/if.h usability" >&5
5713echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&6
5714cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720$ac_includes_default
5721#include <net/if.h>
5722_ACEOF
5723rm -f conftest.$ac_objext
5724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
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); }; } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_header_compiler=yes
5746else
5747 echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750ac_header_compiler=no
5751fi
5752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754echo "${ECHO_T}$ac_header_compiler" >&6
5755
5756# Is the header present?
5757echo "$as_me:$LINENO: checking net/if.h presence" >&5
5758echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&6
5759cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h. */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h. */
5765#include <net/if.h>
5766_ACEOF
5767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } >/dev/null; then
5775 if test -s conftest.err; then
5776 ac_cpp_err=$ac_c_preproc_warn_flag
5777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5778 else
5779 ac_cpp_err=
5780 fi
5781else
5782 ac_cpp_err=yes
5783fi
5784if test -z "$ac_cpp_err"; then
5785 ac_header_preproc=yes
5786else
5787 echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_header_preproc=no
5791fi
5792rm -f conftest.err conftest.$ac_ext
5793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5794echo "${ECHO_T}$ac_header_preproc" >&6
5795
5796# So? What about this header?
5797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5798 yes:no: )
5799 { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&5
5800echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&5
5802echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;}
5803 ac_header_preproc=yes
5804 ;;
5805 no:yes:* )
5806 { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&5
5807echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;}
5808 { echo "$as_me:$LINENO: WARNING: net/if.h: check for missing prerequisite headers?" >&5
5809echo "$as_me: WARNING: net/if.h: check for missing prerequisite headers?" >&2;}
5810 { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&5
5811echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;}
5812 { echo "$as_me:$LINENO: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&5
5813echo "$as_me: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&5
5815echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&5
5817echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;}
5818 (
5819 cat <<\_ASBOX
5820## ------------------------------------ ##
5821## Report this to the pjproject lists. ##
5822## ------------------------------------ ##
5823_ASBOX
5824 ) |
5825 sed "s/^/$as_me: WARNING: /" >&2
5826 ;;
5827esac
5828echo "$as_me:$LINENO: checking for net/if.h" >&5
5829echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
5830if test "${ac_cv_header_net_if_h+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 ac_cv_header_net_if_h=$ac_header_preproc
5834fi
5835echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
5836echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
5837
5838fi
5839if test $ac_cv_header_net_if_h = yes; then
5840 cat >>confdefs.h <<\_ACEOF
5841#define PJ_HAS_NET_IF_H 1
5842_ACEOF
5843
5844fi
5845
5846
Benny Prijono1d65f702007-12-03 04:03:17 +00005847if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5848 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5849echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5850if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852fi
5853echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5854echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5855else
5856 # Is the header compilable?
5857echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5858echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
5859cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */
5865$ac_includes_default
5866#include <ifaddrs.h>
5867_ACEOF
5868rm -f conftest.$ac_objext
5869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870 (eval $ac_compile) 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_c_werror_flag"
5878 || test ! -s conftest.err'
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); }; } &&
5884 { ac_try='test -s conftest.$ac_objext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 ac_header_compiler=yes
5891else
5892 echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895ac_header_compiler=no
5896fi
5897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5899echo "${ECHO_T}$ac_header_compiler" >&6
5900
5901# Is the header present?
5902echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5903echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
5904cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h. */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h. */
5910#include <ifaddrs.h>
5911_ACEOF
5912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } >/dev/null; then
5920 if test -s conftest.err; then
5921 ac_cpp_err=$ac_c_preproc_warn_flag
5922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5923 else
5924 ac_cpp_err=
5925 fi
5926else
5927 ac_cpp_err=yes
5928fi
5929if test -z "$ac_cpp_err"; then
5930 ac_header_preproc=yes
5931else
5932 echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_header_preproc=no
5936fi
5937rm -f conftest.err conftest.$ac_ext
5938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5939echo "${ECHO_T}$ac_header_preproc" >&6
5940
5941# So? What about this header?
5942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5943 yes:no: )
5944 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5945echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5947echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5948 ac_header_preproc=yes
5949 ;;
5950 no:yes:* )
5951 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5952echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5954echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5956echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
5958echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5960echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5961 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5962echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
5963 (
5964 cat <<\_ASBOX
5965## ------------------------------------ ##
5966## Report this to the pjproject lists. ##
5967## ------------------------------------ ##
5968_ASBOX
5969 ) |
5970 sed "s/^/$as_me: WARNING: /" >&2
5971 ;;
5972esac
5973echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5974echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5975if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978 ac_cv_header_ifaddrs_h=$ac_header_preproc
5979fi
5980echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5981echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5982
5983fi
5984if test $ac_cv_header_ifaddrs_h = yes; then
5985 cat >>confdefs.h <<\_ACEOF
5986#define PJ_HAS_IFADDRS_H 1
5987_ACEOF
5988
5989fi
5990
5991
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005992if test "${ac_cv_header_setjmp_h+set}" = set; then
5993 echo "$as_me:$LINENO: checking for setjmp.h" >&5
5994echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5995if test "${ac_cv_header_setjmp_h+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997fi
5998echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5999echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
6000else
6001 # Is the header compilable?
6002echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6003echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
6004cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h. */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h. */
6010$ac_includes_default
6011#include <setjmp.h>
6012_ACEOF
6013rm -f conftest.$ac_objext
6014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006016 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006017 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006018 rm -f conftest.er1
6019 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
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); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_header_compiler=yes
6036else
6037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040ac_header_compiler=no
6041fi
6042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6044echo "${ECHO_T}$ac_header_compiler" >&6
6045
6046# Is the header present?
6047echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6048echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
6049cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055#include <setjmp.h>
6056_ACEOF
6057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006064 (exit $ac_status); } >/dev/null; then
6065 if test -s conftest.err; then
6066 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006068 else
6069 ac_cpp_err=
6070 fi
6071else
6072 ac_cpp_err=yes
6073fi
6074if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006075 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006076else
6077 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006081fi
6082rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6084echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006085
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006086# So? What about this header?
6087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6088 yes:no: )
6089 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6090echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6092echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6093 ac_header_preproc=yes
6094 ;;
6095 no:yes:* )
6096 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6097echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6099echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6101echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6103echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6105echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6107echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
6108 (
6109 cat <<\_ASBOX
6110## ------------------------------------ ##
6111## Report this to the pjproject lists. ##
6112## ------------------------------------ ##
6113_ASBOX
6114 ) |
6115 sed "s/^/$as_me: WARNING: /" >&2
6116 ;;
6117esac
6118echo "$as_me:$LINENO: checking for setjmp.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006119echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
6120if test "${ac_cv_header_setjmp_h+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006122else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006123 ac_cv_header_setjmp_h=$ac_header_preproc
6124fi
6125echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6126echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
6127
6128fi
6129if test $ac_cv_header_setjmp_h = yes; then
6130 cat >>confdefs.h <<\_ACEOF
6131#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006132_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006133
6134fi
6135
6136
6137if test "${ac_cv_header_stdarg_h+set}" = set; then
6138 echo "$as_me:$LINENO: checking for stdarg.h" >&5
6139echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
6140if test "${ac_cv_header_stdarg_h+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142fi
6143echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6144echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
6145else
6146 # Is the header compilable?
6147echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6148echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
6149cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h. */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h. */
6155$ac_includes_default
6156#include <stdarg.h>
6157_ACEOF
6158rm -f conftest.$ac_objext
6159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006161 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006162 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006163 rm -f conftest.er1
6164 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_c_werror_flag"
6168 || test ! -s conftest.err'
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); }; } &&
6174 { ac_try='test -s conftest.$ac_objext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_header_compiler=yes
6181else
6182 echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
6185ac_header_compiler=no
6186fi
6187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6189echo "${ECHO_T}$ac_header_compiler" >&6
6190
6191# Is the header present?
6192echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6193echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
6194cat >conftest.$ac_ext <<_ACEOF
6195/* confdefs.h. */
6196_ACEOF
6197cat confdefs.h >>conftest.$ac_ext
6198cat >>conftest.$ac_ext <<_ACEOF
6199/* end confdefs.h. */
6200#include <stdarg.h>
6201_ACEOF
6202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006209 (exit $ac_status); } >/dev/null; then
6210 if test -s conftest.err; then
6211 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006213 else
6214 ac_cpp_err=
6215 fi
6216else
6217 ac_cpp_err=yes
6218fi
6219if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006220 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006221else
6222 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006226fi
6227rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6229echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006230
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006231# So? What about this header?
6232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6233 yes:no: )
6234 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6235echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6237echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6238 ac_header_preproc=yes
6239 ;;
6240 no:yes:* )
6241 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6242echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6244echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6246echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6248echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6250echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6252echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
6253 (
6254 cat <<\_ASBOX
6255## ------------------------------------ ##
6256## Report this to the pjproject lists. ##
6257## ------------------------------------ ##
6258_ASBOX
6259 ) |
6260 sed "s/^/$as_me: WARNING: /" >&2
6261 ;;
6262esac
6263echo "$as_me:$LINENO: checking for stdarg.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006264echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
6265if test "${ac_cv_header_stdarg_h+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006267else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006268 ac_cv_header_stdarg_h=$ac_header_preproc
6269fi
6270echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6271echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
6272
6273fi
6274if test $ac_cv_header_stdarg_h = yes; then
6275 cat >>confdefs.h <<\_ACEOF
6276#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006277_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006278
6279fi
6280
6281
6282if test "${ac_cv_header_stddef_h+set}" = set; then
6283 echo "$as_me:$LINENO: checking for stddef.h" >&5
6284echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
6285if test "${ac_cv_header_stddef_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287fi
6288echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6289echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
6290else
6291 # Is the header compilable?
6292echo "$as_me:$LINENO: checking stddef.h usability" >&5
6293echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
6294cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
6300$ac_includes_default
6301#include <stddef.h>
6302_ACEOF
6303rm -f conftest.$ac_objext
6304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006306 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006307 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006308 rm -f conftest.er1
6309 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
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); }; } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_header_compiler=yes
6326else
6327 echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
6330ac_header_compiler=no
6331fi
6332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6334echo "${ECHO_T}$ac_header_compiler" >&6
6335
6336# Is the header present?
6337echo "$as_me:$LINENO: checking stddef.h presence" >&5
6338echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
6339cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345#include <stddef.h>
6346_ACEOF
6347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006354 (exit $ac_status); } >/dev/null; then
6355 if test -s conftest.err; then
6356 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006358 else
6359 ac_cpp_err=
6360 fi
6361else
6362 ac_cpp_err=yes
6363fi
6364if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006365 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006366else
6367 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006368sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006371fi
6372rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6374echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006375
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006376# So? What about this header?
6377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6378 yes:no: )
6379 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6380echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6382echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6383 ac_header_preproc=yes
6384 ;;
6385 no:yes:* )
6386 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6387echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6389echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6391echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6393echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6395echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6397echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
6398 (
6399 cat <<\_ASBOX
6400## ------------------------------------ ##
6401## Report this to the pjproject lists. ##
6402## ------------------------------------ ##
6403_ASBOX
6404 ) |
6405 sed "s/^/$as_me: WARNING: /" >&2
6406 ;;
6407esac
6408echo "$as_me:$LINENO: checking for stddef.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006409echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
6410if test "${ac_cv_header_stddef_h+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006412else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006413 ac_cv_header_stddef_h=$ac_header_preproc
6414fi
6415echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6416echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
6417
6418fi
6419if test $ac_cv_header_stddef_h = yes; then
6420 cat >>confdefs.h <<\_ACEOF
6421#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006422_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006423
6424fi
6425
6426
6427if test "${ac_cv_header_stdio_h+set}" = set; then
6428 echo "$as_me:$LINENO: checking for stdio.h" >&5
6429echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6430if test "${ac_cv_header_stdio_h+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432fi
6433echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6434echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6435else
6436 # Is the header compilable?
6437echo "$as_me:$LINENO: checking stdio.h usability" >&5
6438echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
6439cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h. */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h. */
6445$ac_includes_default
6446#include <stdio.h>
6447_ACEOF
6448rm -f conftest.$ac_objext
6449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006451 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006452 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006453 rm -f conftest.er1
6454 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -z "$ac_c_werror_flag"
6458 || test ! -s conftest.err'
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); }; } &&
6464 { ac_try='test -s conftest.$ac_objext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_header_compiler=yes
6471else
6472 echo "$as_me: failed program was:" >&5
6473sed 's/^/| /' conftest.$ac_ext >&5
6474
6475ac_header_compiler=no
6476fi
6477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6479echo "${ECHO_T}$ac_header_compiler" >&6
6480
6481# Is the header present?
6482echo "$as_me:$LINENO: checking stdio.h presence" >&5
6483echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
6484cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h. */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
6490#include <stdio.h>
6491_ACEOF
6492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006499 (exit $ac_status); } >/dev/null; then
6500 if test -s conftest.err; then
6501 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006503 else
6504 ac_cpp_err=
6505 fi
6506else
6507 ac_cpp_err=yes
6508fi
6509if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006510 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006511else
6512 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006513sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006516fi
6517rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6519echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006520
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006521# So? What about this header?
6522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6523 yes:no: )
6524 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6525echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6526 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6527echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6528 ac_header_preproc=yes
6529 ;;
6530 no:yes:* )
6531 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6532echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6534echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6536echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6538echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6540echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6542echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
6543 (
6544 cat <<\_ASBOX
6545## ------------------------------------ ##
6546## Report this to the pjproject lists. ##
6547## ------------------------------------ ##
6548_ASBOX
6549 ) |
6550 sed "s/^/$as_me: WARNING: /" >&2
6551 ;;
6552esac
6553echo "$as_me:$LINENO: checking for stdio.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006554echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6555if test "${ac_cv_header_stdio_h+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006557else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006558 ac_cv_header_stdio_h=$ac_header_preproc
6559fi
6560echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6561echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6562
6563fi
6564if test $ac_cv_header_stdio_h = yes; then
6565 cat >>confdefs.h <<\_ACEOF
6566#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006567_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006568
6569fi
6570
6571
6572if test "${ac_cv_header_stdlib_h+set}" = set; then
6573 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6574echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6575if test "${ac_cv_header_stdlib_h+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577fi
6578echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6579echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6580else
6581 # Is the header compilable?
6582echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6583echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
6584cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h. */
6590$ac_includes_default
6591#include <stdlib.h>
6592_ACEOF
6593rm -f conftest.$ac_objext
6594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006596 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006597 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006598 rm -f conftest.er1
6599 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
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); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_header_compiler=yes
6616else
6617 echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620ac_header_compiler=no
6621fi
6622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624echo "${ECHO_T}$ac_header_compiler" >&6
6625
6626# Is the header present?
6627echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6628echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
6629cat >conftest.$ac_ext <<_ACEOF
6630/* confdefs.h. */
6631_ACEOF
6632cat confdefs.h >>conftest.$ac_ext
6633cat >>conftest.$ac_ext <<_ACEOF
6634/* end confdefs.h. */
6635#include <stdlib.h>
6636_ACEOF
6637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006644 (exit $ac_status); } >/dev/null; then
6645 if test -s conftest.err; then
6646 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006648 else
6649 ac_cpp_err=
6650 fi
6651else
6652 ac_cpp_err=yes
6653fi
6654if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006655 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006656else
6657 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006661fi
6662rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6664echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006665
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006666# So? What about this header?
6667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6668 yes:no: )
6669 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6670echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6672echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6673 ac_header_preproc=yes
6674 ;;
6675 no:yes:* )
6676 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6677echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6679echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6681echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6683echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6685echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6687echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
6688 (
6689 cat <<\_ASBOX
6690## ------------------------------------ ##
6691## Report this to the pjproject lists. ##
6692## ------------------------------------ ##
6693_ASBOX
6694 ) |
6695 sed "s/^/$as_me: WARNING: /" >&2
6696 ;;
6697esac
6698echo "$as_me:$LINENO: checking for stdlib.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006699echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6700if test "${ac_cv_header_stdlib_h+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006702else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006703 ac_cv_header_stdlib_h=$ac_header_preproc
6704fi
6705echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6706echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6707
6708fi
6709if test $ac_cv_header_stdlib_h = yes; then
6710 cat >>confdefs.h <<\_ACEOF
6711#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006712_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006713
6714fi
6715
6716
6717if test "${ac_cv_header_string_h+set}" = set; then
6718 echo "$as_me:$LINENO: checking for string.h" >&5
6719echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6720if test "${ac_cv_header_string_h+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722fi
6723echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6724echo "${ECHO_T}$ac_cv_header_string_h" >&6
6725else
6726 # Is the header compilable?
6727echo "$as_me:$LINENO: checking string.h usability" >&5
6728echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
6729cat >conftest.$ac_ext <<_ACEOF
6730/* confdefs.h. */
6731_ACEOF
6732cat confdefs.h >>conftest.$ac_ext
6733cat >>conftest.$ac_ext <<_ACEOF
6734/* end confdefs.h. */
6735$ac_includes_default
6736#include <string.h>
6737_ACEOF
6738rm -f conftest.$ac_objext
6739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006741 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006742 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006743 rm -f conftest.er1
6744 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -z "$ac_c_werror_flag"
6748 || test ! -s conftest.err'
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); }; } &&
6754 { ac_try='test -s conftest.$ac_objext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 ac_header_compiler=yes
6761else
6762 echo "$as_me: failed program was:" >&5
6763sed 's/^/| /' conftest.$ac_ext >&5
6764
6765ac_header_compiler=no
6766fi
6767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6769echo "${ECHO_T}$ac_header_compiler" >&6
6770
6771# Is the header present?
6772echo "$as_me:$LINENO: checking string.h presence" >&5
6773echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
6774cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h. */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h. */
6780#include <string.h>
6781_ACEOF
6782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006789 (exit $ac_status); } >/dev/null; then
6790 if test -s conftest.err; then
6791 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006793 else
6794 ac_cpp_err=
6795 fi
6796else
6797 ac_cpp_err=yes
6798fi
6799if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006800 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006801else
6802 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006803sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006806fi
6807rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6809echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006810
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006811# So? What about this header?
6812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6813 yes:no: )
6814 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6815echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6817echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6818 ac_header_preproc=yes
6819 ;;
6820 no:yes:* )
6821 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6822echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6823 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6824echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6825 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6826echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6828echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6830echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6832echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6833 (
6834 cat <<\_ASBOX
6835## ------------------------------------ ##
6836## Report this to the pjproject lists. ##
6837## ------------------------------------ ##
6838_ASBOX
6839 ) |
6840 sed "s/^/$as_me: WARNING: /" >&2
6841 ;;
6842esac
6843echo "$as_me:$LINENO: checking for string.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006844echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6845if test "${ac_cv_header_string_h+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006847else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006848 ac_cv_header_string_h=$ac_header_preproc
6849fi
6850echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6851echo "${ECHO_T}$ac_cv_header_string_h" >&6
6852
6853fi
6854if test $ac_cv_header_string_h = yes; then
6855 cat >>confdefs.h <<\_ACEOF
6856#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006857_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006858
6859fi
6860
6861
6862if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6863 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
6864echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6865if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867fi
6868echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6869echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6870else
6871 # Is the header compilable?
6872echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
6873echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
6874cat >conftest.$ac_ext <<_ACEOF
6875/* confdefs.h. */
6876_ACEOF
6877cat confdefs.h >>conftest.$ac_ext
6878cat >>conftest.$ac_ext <<_ACEOF
6879/* end confdefs.h. */
6880$ac_includes_default
6881#include <sys/ioctl.h>
6882_ACEOF
6883rm -f conftest.$ac_objext
6884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006886 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006887 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006888 rm -f conftest.er1
6889 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
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); }; } &&
6899 { ac_try='test -s conftest.$ac_objext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_header_compiler=yes
6906else
6907 echo "$as_me: failed program was:" >&5
6908sed 's/^/| /' conftest.$ac_ext >&5
6909
6910ac_header_compiler=no
6911fi
6912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6914echo "${ECHO_T}$ac_header_compiler" >&6
6915
6916# Is the header present?
6917echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
6918echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
6919cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h. */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h. */
6925#include <sys/ioctl.h>
6926_ACEOF
6927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006934 (exit $ac_status); } >/dev/null; then
6935 if test -s conftest.err; then
6936 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006938 else
6939 ac_cpp_err=
6940 fi
6941else
6942 ac_cpp_err=yes
6943fi
6944if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006945 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006946else
6947 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006948sed 's/^/| /' conftest.$ac_ext >&5
6949
6950 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006951fi
6952rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6954echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006955
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006956# So? What about this header?
6957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6958 yes:no: )
6959 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6960echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6961 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
6962echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
6963 ac_header_preproc=yes
6964 ;;
6965 no:yes:* )
6966 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
6967echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
6969echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
6971echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
6973echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
6975echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
6977echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
6978 (
6979 cat <<\_ASBOX
6980## ------------------------------------ ##
6981## Report this to the pjproject lists. ##
6982## ------------------------------------ ##
6983_ASBOX
6984 ) |
6985 sed "s/^/$as_me: WARNING: /" >&2
6986 ;;
6987esac
6988echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006989echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6990if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006992else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006993 ac_cv_header_sys_ioctl_h=$ac_header_preproc
6994fi
6995echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6996echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6997
6998fi
6999if test $ac_cv_header_sys_ioctl_h = yes; then
7000 cat >>confdefs.h <<\_ACEOF
7001#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007002_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007003
7004fi
7005
7006
7007if test "${ac_cv_header_sys_select_h+set}" = set; then
7008 echo "$as_me:$LINENO: checking for sys/select.h" >&5
7009echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
7010if test "${ac_cv_header_sys_select_h+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012fi
7013echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7014echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
7015else
7016 # Is the header compilable?
7017echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7018echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
7019cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h. */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h. */
7025$ac_includes_default
7026#include <sys/select.h>
7027_ACEOF
7028rm -f conftest.$ac_objext
7029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007031 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007032 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007033 rm -f conftest.er1
7034 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -z "$ac_c_werror_flag"
7038 || test ! -s conftest.err'
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); }; } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 ac_header_compiler=yes
7051else
7052 echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055ac_header_compiler=no
7056fi
7057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7059echo "${ECHO_T}$ac_header_compiler" >&6
7060
7061# Is the header present?
7062echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7063echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
7064cat >conftest.$ac_ext <<_ACEOF
7065/* confdefs.h. */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h. */
7070#include <sys/select.h>
7071_ACEOF
7072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007079 (exit $ac_status); } >/dev/null; then
7080 if test -s conftest.err; then
7081 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007083 else
7084 ac_cpp_err=
7085 fi
7086else
7087 ac_cpp_err=yes
7088fi
7089if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007090 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007091else
7092 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007093sed 's/^/| /' conftest.$ac_ext >&5
7094
7095 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007096fi
7097rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7099echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007100
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007101# So? What about this header?
7102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7103 yes:no: )
7104 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7105echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7106 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7107echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7108 ac_header_preproc=yes
7109 ;;
7110 no:yes:* )
7111 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7112echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7114echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7115 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7116echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7118echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7119 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7120echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7121 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7122echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
7123 (
7124 cat <<\_ASBOX
7125## ------------------------------------ ##
7126## Report this to the pjproject lists. ##
7127## ------------------------------------ ##
7128_ASBOX
7129 ) |
7130 sed "s/^/$as_me: WARNING: /" >&2
7131 ;;
7132esac
7133echo "$as_me:$LINENO: checking for sys/select.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007134echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
7135if test "${ac_cv_header_sys_select_h+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007137else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007138 ac_cv_header_sys_select_h=$ac_header_preproc
7139fi
7140echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7141echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
7142
7143fi
7144if test $ac_cv_header_sys_select_h = yes; then
7145 cat >>confdefs.h <<\_ACEOF
7146#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007147_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007148
7149fi
7150
7151
7152if test "${ac_cv_header_sys_socket_h+set}" = set; then
7153 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7154echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
7155if test "${ac_cv_header_sys_socket_h+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157fi
7158echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7159echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
7160else
7161 # Is the header compilable?
7162echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7163echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
7164cat >conftest.$ac_ext <<_ACEOF
7165/* confdefs.h. */
7166_ACEOF
7167cat confdefs.h >>conftest.$ac_ext
7168cat >>conftest.$ac_ext <<_ACEOF
7169/* end confdefs.h. */
7170$ac_includes_default
7171#include <sys/socket.h>
7172_ACEOF
7173rm -f conftest.$ac_objext
7174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7175 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007176 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007177 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007178 rm -f conftest.er1
7179 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } &&
7182 { ac_try='test -z "$ac_c_werror_flag"
7183 || test ! -s conftest.err'
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); }; } &&
7189 { ac_try='test -s conftest.$ac_objext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_header_compiler=yes
7196else
7197 echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200ac_header_compiler=no
7201fi
7202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7203echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7204echo "${ECHO_T}$ac_header_compiler" >&6
7205
7206# Is the header present?
7207echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7208echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
7209cat >conftest.$ac_ext <<_ACEOF
7210/* confdefs.h. */
7211_ACEOF
7212cat confdefs.h >>conftest.$ac_ext
7213cat >>conftest.$ac_ext <<_ACEOF
7214/* end confdefs.h. */
7215#include <sys/socket.h>
7216_ACEOF
7217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007224 (exit $ac_status); } >/dev/null; then
7225 if test -s conftest.err; then
7226 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007228 else
7229 ac_cpp_err=
7230 fi
7231else
7232 ac_cpp_err=yes
7233fi
7234if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007235 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007236else
7237 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007241fi
7242rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007243echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7244echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007245
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007246# So? What about this header?
7247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7248 yes:no: )
7249 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7250echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7252echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7253 ac_header_preproc=yes
7254 ;;
7255 no:yes:* )
7256 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7257echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7259echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7261echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7263echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7265echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7267echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
7268 (
7269 cat <<\_ASBOX
7270## ------------------------------------ ##
7271## Report this to the pjproject lists. ##
7272## ------------------------------------ ##
7273_ASBOX
7274 ) |
7275 sed "s/^/$as_me: WARNING: /" >&2
7276 ;;
7277esac
7278echo "$as_me:$LINENO: checking for sys/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007279echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
7280if test "${ac_cv_header_sys_socket_h+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007282else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007283 ac_cv_header_sys_socket_h=$ac_header_preproc
7284fi
7285echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7286echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
7287
7288fi
7289if test $ac_cv_header_sys_socket_h = yes; then
7290 cat >>confdefs.h <<\_ACEOF
7291#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007292_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007293
7294fi
7295
7296
7297if test "${ac_cv_header_sys_time_h+set}" = set; then
7298 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7299echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7300if test "${ac_cv_header_sys_time_h+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302fi
7303echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7304echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7305else
7306 # Is the header compilable?
7307echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7308echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h. */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h. */
7315$ac_includes_default
7316#include <sys/time.h>
7317_ACEOF
7318rm -f conftest.$ac_objext
7319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007321 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007322 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007323 rm -f conftest.er1
7324 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag"
7328 || test ! -s conftest.err'
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); }; } &&
7334 { ac_try='test -s conftest.$ac_objext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_header_compiler=yes
7341else
7342 echo "$as_me: failed program was:" >&5
7343sed 's/^/| /' conftest.$ac_ext >&5
7344
7345ac_header_compiler=no
7346fi
7347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7349echo "${ECHO_T}$ac_header_compiler" >&6
7350
7351# Is the header present?
7352echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7353echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
7354cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h. */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h. */
7360#include <sys/time.h>
7361_ACEOF
7362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007369 (exit $ac_status); } >/dev/null; then
7370 if test -s conftest.err; then
7371 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007373 else
7374 ac_cpp_err=
7375 fi
7376else
7377 ac_cpp_err=yes
7378fi
7379if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007380 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007381else
7382 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007383sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007386fi
7387rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7389echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007390
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007391# So? What about this header?
7392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7393 yes:no: )
7394 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7395echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7397echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7398 ac_header_preproc=yes
7399 ;;
7400 no:yes:* )
7401 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7402echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7403 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7404echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7405 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7406echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7408echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7410echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7412echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
7413 (
7414 cat <<\_ASBOX
7415## ------------------------------------ ##
7416## Report this to the pjproject lists. ##
7417## ------------------------------------ ##
7418_ASBOX
7419 ) |
7420 sed "s/^/$as_me: WARNING: /" >&2
7421 ;;
7422esac
7423echo "$as_me:$LINENO: checking for sys/time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007424echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7425if test "${ac_cv_header_sys_time_h+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007427else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007428 ac_cv_header_sys_time_h=$ac_header_preproc
7429fi
7430echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7431echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7432
7433fi
7434if test $ac_cv_header_sys_time_h = yes; then
7435 cat >>confdefs.h <<\_ACEOF
7436#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007437_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007438
7439fi
7440
7441
7442if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7443 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7444echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7445if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447fi
7448echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7449echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7450else
7451 # Is the header compilable?
7452echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7453echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
7454cat >conftest.$ac_ext <<_ACEOF
7455/* confdefs.h. */
7456_ACEOF
7457cat confdefs.h >>conftest.$ac_ext
7458cat >>conftest.$ac_ext <<_ACEOF
7459/* end confdefs.h. */
7460$ac_includes_default
7461#include <sys/timeb.h>
7462_ACEOF
7463rm -f conftest.$ac_objext
7464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007466 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007467 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007468 rm -f conftest.er1
7469 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -z "$ac_c_werror_flag"
7473 || test ! -s conftest.err'
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); }; } &&
7479 { ac_try='test -s conftest.$ac_objext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 (eval $ac_try) 2>&5
7482 ac_status=$?
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_header_compiler=yes
7486else
7487 echo "$as_me: failed program was:" >&5
7488sed 's/^/| /' conftest.$ac_ext >&5
7489
7490ac_header_compiler=no
7491fi
7492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494echo "${ECHO_T}$ac_header_compiler" >&6
7495
7496# Is the header present?
7497echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7498echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
7499cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h. */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h. */
7505#include <sys/timeb.h>
7506_ACEOF
7507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007514 (exit $ac_status); } >/dev/null; then
7515 if test -s conftest.err; then
7516 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007518 else
7519 ac_cpp_err=
7520 fi
7521else
7522 ac_cpp_err=yes
7523fi
7524if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007525 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007526else
7527 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007528sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007531fi
7532rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007535
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007536# So? What about this header?
7537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7538 yes:no: )
7539 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7540echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7542echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7543 ac_header_preproc=yes
7544 ;;
7545 no:yes:* )
7546 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7547echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7549echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7551echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7553echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7555echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7557echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
7558 (
7559 cat <<\_ASBOX
7560## ------------------------------------ ##
7561## Report this to the pjproject lists. ##
7562## ------------------------------------ ##
7563_ASBOX
7564 ) |
7565 sed "s/^/$as_me: WARNING: /" >&2
7566 ;;
7567esac
7568echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007569echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7570if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007572else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007573 ac_cv_header_sys_timeb_h=$ac_header_preproc
7574fi
7575echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7576echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7577
7578fi
7579if test $ac_cv_header_sys_timeb_h = yes; then
7580 cat >>confdefs.h <<\_ACEOF
7581#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007582_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007583
7584fi
7585
7586
7587if test "${ac_cv_header_sys_types_h+set}" = set; then
7588 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7589echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7590if test "${ac_cv_header_sys_types_h+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592fi
7593echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7594echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7595else
7596 # Is the header compilable?
7597echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7598echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
7599cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h. */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h. */
7605$ac_includes_default
7606#include <sys/types.h>
7607_ACEOF
7608rm -f conftest.$ac_objext
7609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7610 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007611 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007612 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007613 rm -f conftest.er1
7614 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag"
7618 || test ! -s conftest.err'
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); }; } &&
7624 { ac_try='test -s conftest.$ac_objext'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 (eval $ac_try) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7630 ac_header_compiler=yes
7631else
7632 echo "$as_me: failed program was:" >&5
7633sed 's/^/| /' conftest.$ac_ext >&5
7634
7635ac_header_compiler=no
7636fi
7637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7639echo "${ECHO_T}$ac_header_compiler" >&6
7640
7641# Is the header present?
7642echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7643echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
7644cat >conftest.$ac_ext <<_ACEOF
7645/* confdefs.h. */
7646_ACEOF
7647cat confdefs.h >>conftest.$ac_ext
7648cat >>conftest.$ac_ext <<_ACEOF
7649/* end confdefs.h. */
7650#include <sys/types.h>
7651_ACEOF
7652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007659 (exit $ac_status); } >/dev/null; then
7660 if test -s conftest.err; then
7661 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007663 else
7664 ac_cpp_err=
7665 fi
7666else
7667 ac_cpp_err=yes
7668fi
7669if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007670 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007671else
7672 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007676fi
7677rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7679echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007680
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007681# So? What about this header?
7682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7683 yes:no: )
7684 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7685echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7687echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7688 ac_header_preproc=yes
7689 ;;
7690 no:yes:* )
7691 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7692echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7694echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7696echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7698echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7700echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7702echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
7703 (
7704 cat <<\_ASBOX
7705## ------------------------------------ ##
7706## Report this to the pjproject lists. ##
7707## ------------------------------------ ##
7708_ASBOX
7709 ) |
7710 sed "s/^/$as_me: WARNING: /" >&2
7711 ;;
7712esac
7713echo "$as_me:$LINENO: checking for sys/types.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007714echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7715if test "${ac_cv_header_sys_types_h+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007717else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007718 ac_cv_header_sys_types_h=$ac_header_preproc
7719fi
7720echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7721echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7722
7723fi
7724if test $ac_cv_header_sys_types_h = yes; then
7725 cat >>confdefs.h <<\_ACEOF
7726#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007727_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007728
7729fi
7730
7731
7732if test "${ac_cv_header_time_h+set}" = set; then
7733 echo "$as_me:$LINENO: checking for time.h" >&5
7734echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7735if test "${ac_cv_header_time_h+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737fi
7738echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7739echo "${ECHO_T}$ac_cv_header_time_h" >&6
7740else
7741 # Is the header compilable?
7742echo "$as_me:$LINENO: checking time.h usability" >&5
7743echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
7744cat >conftest.$ac_ext <<_ACEOF
7745/* confdefs.h. */
7746_ACEOF
7747cat confdefs.h >>conftest.$ac_ext
7748cat >>conftest.$ac_ext <<_ACEOF
7749/* end confdefs.h. */
7750$ac_includes_default
7751#include <time.h>
7752_ACEOF
7753rm -f conftest.$ac_objext
7754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007756 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007757 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007758 rm -f conftest.er1
7759 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
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); }; } &&
7769 { ac_try='test -s conftest.$ac_objext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_header_compiler=yes
7776else
7777 echo "$as_me: failed program was:" >&5
7778sed 's/^/| /' conftest.$ac_ext >&5
7779
7780ac_header_compiler=no
7781fi
7782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7784echo "${ECHO_T}$ac_header_compiler" >&6
7785
7786# Is the header present?
7787echo "$as_me:$LINENO: checking time.h presence" >&5
7788echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
7789cat >conftest.$ac_ext <<_ACEOF
7790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
7795#include <time.h>
7796_ACEOF
7797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007804 (exit $ac_status); } >/dev/null; then
7805 if test -s conftest.err; then
7806 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007808 else
7809 ac_cpp_err=
7810 fi
7811else
7812 ac_cpp_err=yes
7813fi
7814if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007815 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007816else
7817 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007821fi
7822rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7824echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007825
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007826# So? What about this header?
7827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7828 yes:no: )
7829 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7830echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7831 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
7832echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
7833 ac_header_preproc=yes
7834 ;;
7835 no:yes:* )
7836 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
7837echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
7839echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
7841echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
7843echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
7845echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
7847echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
7848 (
7849 cat <<\_ASBOX
7850## ------------------------------------ ##
7851## Report this to the pjproject lists. ##
7852## ------------------------------------ ##
7853_ASBOX
7854 ) |
7855 sed "s/^/$as_me: WARNING: /" >&2
7856 ;;
7857esac
7858echo "$as_me:$LINENO: checking for time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007859echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7860if test "${ac_cv_header_time_h+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007862else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007863 ac_cv_header_time_h=$ac_header_preproc
7864fi
7865echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7866echo "${ECHO_T}$ac_cv_header_time_h" >&6
7867
7868fi
7869if test $ac_cv_header_time_h = yes; then
7870 cat >>confdefs.h <<\_ACEOF
7871#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007872_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007873
7874fi
7875
7876
7877if test "${ac_cv_header_unistd_h+set}" = set; then
7878 echo "$as_me:$LINENO: checking for unistd.h" >&5
7879echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7880if test "${ac_cv_header_unistd_h+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882fi
7883echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7884echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7885else
7886 # Is the header compilable?
7887echo "$as_me:$LINENO: checking unistd.h usability" >&5
7888echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
7889cat >conftest.$ac_ext <<_ACEOF
7890/* confdefs.h. */
7891_ACEOF
7892cat confdefs.h >>conftest.$ac_ext
7893cat >>conftest.$ac_ext <<_ACEOF
7894/* end confdefs.h. */
7895$ac_includes_default
7896#include <unistd.h>
7897_ACEOF
7898rm -f conftest.$ac_objext
7899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007901 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007902 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007903 rm -f conftest.er1
7904 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -z "$ac_c_werror_flag"
7908 || test ! -s conftest.err'
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); }; } &&
7914 { ac_try='test -s conftest.$ac_objext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 ac_header_compiler=yes
7921else
7922 echo "$as_me: failed program was:" >&5
7923sed 's/^/| /' conftest.$ac_ext >&5
7924
7925ac_header_compiler=no
7926fi
7927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7929echo "${ECHO_T}$ac_header_compiler" >&6
7930
7931# Is the header present?
7932echo "$as_me:$LINENO: checking unistd.h presence" >&5
7933echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
7934cat >conftest.$ac_ext <<_ACEOF
7935/* confdefs.h. */
7936_ACEOF
7937cat confdefs.h >>conftest.$ac_ext
7938cat >>conftest.$ac_ext <<_ACEOF
7939/* end confdefs.h. */
7940#include <unistd.h>
7941_ACEOF
7942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007949 (exit $ac_status); } >/dev/null; then
7950 if test -s conftest.err; then
7951 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007953 else
7954 ac_cpp_err=
7955 fi
7956else
7957 ac_cpp_err=yes
7958fi
7959if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007960 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007961else
7962 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007963sed 's/^/| /' conftest.$ac_ext >&5
7964
7965 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007966fi
7967rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7969echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007970
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007971# So? What about this header?
7972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7973 yes:no: )
7974 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
7975echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7976 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
7977echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
7978 ac_header_preproc=yes
7979 ;;
7980 no:yes:* )
7981 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
7982echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
7984echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
7986echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
7988echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
7990echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
7992echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
7993 (
7994 cat <<\_ASBOX
7995## ------------------------------------ ##
7996## Report this to the pjproject lists. ##
7997## ------------------------------------ ##
7998_ASBOX
7999 ) |
8000 sed "s/^/$as_me: WARNING: /" >&2
8001 ;;
8002esac
8003echo "$as_me:$LINENO: checking for unistd.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008004echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
8005if test "${ac_cv_header_unistd_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008007else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008008 ac_cv_header_unistd_h=$ac_header_preproc
8009fi
8010echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8011echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
8012
8013fi
8014if test $ac_cv_header_unistd_h = yes; then
8015 cat >>confdefs.h <<\_ACEOF
8016#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008017_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008018
8019fi
8020
8021
8022if test "${ac_cv_header_mswsock_h+set}" = set; then
8023 echo "$as_me:$LINENO: checking for mswsock.h" >&5
8024echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
8025if test "${ac_cv_header_mswsock_h+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027fi
8028echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8029echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
8030else
8031 # Is the header compilable?
8032echo "$as_me:$LINENO: checking mswsock.h usability" >&5
8033echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
8034cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h. */
8040$ac_includes_default
8041#include <mswsock.h>
8042_ACEOF
8043rm -f conftest.$ac_objext
8044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008046 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008047 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008048 rm -f conftest.er1
8049 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_header_compiler=yes
8066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
8070ac_header_compiler=no
8071fi
8072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8073echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8074echo "${ECHO_T}$ac_header_compiler" >&6
8075
8076# Is the header present?
8077echo "$as_me:$LINENO: checking mswsock.h presence" >&5
8078echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
8079cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
8085#include <mswsock.h>
8086_ACEOF
8087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008094 (exit $ac_status); } >/dev/null; then
8095 if test -s conftest.err; then
8096 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008098 else
8099 ac_cpp_err=
8100 fi
8101else
8102 ac_cpp_err=yes
8103fi
8104if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008105 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008106else
8107 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008111fi
8112rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008113echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8114echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008115
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008116# So? What about this header?
8117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8118 yes:no: )
8119 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8120echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
8122echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
8123 ac_header_preproc=yes
8124 ;;
8125 no:yes:* )
8126 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
8127echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
8129echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
8131echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
8133echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
8135echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
8137echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
8138 (
8139 cat <<\_ASBOX
8140## ------------------------------------ ##
8141## Report this to the pjproject lists. ##
8142## ------------------------------------ ##
8143_ASBOX
8144 ) |
8145 sed "s/^/$as_me: WARNING: /" >&2
8146 ;;
8147esac
8148echo "$as_me:$LINENO: checking for mswsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008149echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
8150if test "${ac_cv_header_mswsock_h+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008152else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008153 ac_cv_header_mswsock_h=$ac_header_preproc
8154fi
8155echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8156echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
8157
8158fi
8159if test $ac_cv_header_mswsock_h = yes; then
8160 cat >>confdefs.h <<\_ACEOF
8161#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008162_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008163
8164fi
8165
8166
8167if test "${ac_cv_header_winsock_h+set}" = set; then
8168 echo "$as_me:$LINENO: checking for winsock.h" >&5
8169echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
8170if test "${ac_cv_header_winsock_h+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172fi
8173echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8174echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
8175else
8176 # Is the header compilable?
8177echo "$as_me:$LINENO: checking winsock.h usability" >&5
8178echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
8179cat >conftest.$ac_ext <<_ACEOF
8180/* confdefs.h. */
8181_ACEOF
8182cat confdefs.h >>conftest.$ac_ext
8183cat >>conftest.$ac_ext <<_ACEOF
8184/* end confdefs.h. */
8185$ac_includes_default
8186#include <winsock.h>
8187_ACEOF
8188rm -f conftest.$ac_objext
8189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008191 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008192 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008193 rm -f conftest.er1
8194 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_header_compiler=yes
8211else
8212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
8215ac_header_compiler=no
8216fi
8217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8219echo "${ECHO_T}$ac_header_compiler" >&6
8220
8221# Is the header present?
8222echo "$as_me:$LINENO: checking winsock.h presence" >&5
8223echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
8224cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
8230#include <winsock.h>
8231_ACEOF
8232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008239 (exit $ac_status); } >/dev/null; then
8240 if test -s conftest.err; then
8241 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008243 else
8244 ac_cpp_err=
8245 fi
8246else
8247 ac_cpp_err=yes
8248fi
8249if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008250 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008251else
8252 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008256fi
8257rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8259echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008260
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008261# So? What about this header?
8262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8263 yes:no: )
8264 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8265echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8267echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8268 ac_header_preproc=yes
8269 ;;
8270 no:yes:* )
8271 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8272echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8274echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8276echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8278echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8280echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8282echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
8283 (
8284 cat <<\_ASBOX
8285## ------------------------------------ ##
8286## Report this to the pjproject lists. ##
8287## ------------------------------------ ##
8288_ASBOX
8289 ) |
8290 sed "s/^/$as_me: WARNING: /" >&2
8291 ;;
8292esac
8293echo "$as_me:$LINENO: checking for winsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008294echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
8295if test "${ac_cv_header_winsock_h+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008297else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008298 ac_cv_header_winsock_h=$ac_header_preproc
8299fi
8300echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8301echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
8302
8303fi
8304if test $ac_cv_header_winsock_h = yes; then
8305 cat >>confdefs.h <<\_ACEOF
8306#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008307_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008308
8309fi
8310
8311
8312if test "${ac_cv_header_winsock2_h+set}" = set; then
8313 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8314echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8315if test "${ac_cv_header_winsock2_h+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317fi
8318echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8319echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
8320else
8321 # Is the header compilable?
8322echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8323echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
8324cat >conftest.$ac_ext <<_ACEOF
8325/* confdefs.h. */
8326_ACEOF
8327cat confdefs.h >>conftest.$ac_ext
8328cat >>conftest.$ac_ext <<_ACEOF
8329/* end confdefs.h. */
8330$ac_includes_default
8331#include <winsock2.h>
8332_ACEOF
8333rm -f conftest.$ac_objext
8334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8335 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008336 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008337 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008338 rm -f conftest.er1
8339 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag"
8343 || test ! -s conftest.err'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; } &&
8349 { ac_try='test -s conftest.$ac_objext'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_header_compiler=yes
8356else
8357 echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360ac_header_compiler=no
8361fi
8362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8363echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8364echo "${ECHO_T}$ac_header_compiler" >&6
8365
8366# Is the header present?
8367echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8368echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
8369cat >conftest.$ac_ext <<_ACEOF
8370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
8375#include <winsock2.h>
8376_ACEOF
8377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008384 (exit $ac_status); } >/dev/null; then
8385 if test -s conftest.err; then
8386 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008388 else
8389 ac_cpp_err=
8390 fi
8391else
8392 ac_cpp_err=yes
8393fi
8394if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008395 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008396else
8397 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008398sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008401fi
8402rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008403echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8404echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008405
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008406# So? What about this header?
8407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8408 yes:no: )
8409 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8410echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8412echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8413 ac_header_preproc=yes
8414 ;;
8415 no:yes:* )
8416 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8417echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8418 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8419echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8421echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8423echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8425echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8427echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
8428 (
8429 cat <<\_ASBOX
8430## ------------------------------------ ##
8431## Report this to the pjproject lists. ##
8432## ------------------------------------ ##
8433_ASBOX
8434 ) |
8435 sed "s/^/$as_me: WARNING: /" >&2
8436 ;;
8437esac
8438echo "$as_me:$LINENO: checking for winsock2.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008439echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8440if test "${ac_cv_header_winsock2_h+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008442else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008443 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008444fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008445echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008446echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008447
8448fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008449if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008450 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008451#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008452_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008453
8454fi
8455
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008456
Benny Prijono4e48b512007-05-16 13:41:00 +00008457if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8458 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8459echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8460if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462fi
8463echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8464echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8465else
8466 # Is the header compilable?
8467echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8468echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
8469cat >conftest.$ac_ext <<_ACEOF
8470/* confdefs.h. */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h. */
8475$ac_includes_default
8476#include <uuid/uuid.h>
8477_ACEOF
8478rm -f conftest.$ac_objext
8479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -z "$ac_c_werror_flag"
8488 || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_header_compiler=yes
8501else
8502 echo "$as_me: failed program was:" >&5
8503sed 's/^/| /' conftest.$ac_ext >&5
8504
8505ac_header_compiler=no
8506fi
8507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8509echo "${ECHO_T}$ac_header_compiler" >&6
8510
8511# Is the header present?
8512echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8513echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
8514cat >conftest.$ac_ext <<_ACEOF
8515/* confdefs.h. */
8516_ACEOF
8517cat confdefs.h >>conftest.$ac_ext
8518cat >>conftest.$ac_ext <<_ACEOF
8519/* end confdefs.h. */
8520#include <uuid/uuid.h>
8521_ACEOF
8522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } >/dev/null; then
8530 if test -s conftest.err; then
8531 ac_cpp_err=$ac_c_preproc_warn_flag
8532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8533 else
8534 ac_cpp_err=
8535 fi
8536else
8537 ac_cpp_err=yes
8538fi
8539if test -z "$ac_cpp_err"; then
8540 ac_header_preproc=yes
8541else
8542 echo "$as_me: failed program was:" >&5
8543sed 's/^/| /' conftest.$ac_ext >&5
8544
8545 ac_header_preproc=no
8546fi
8547rm -f conftest.err conftest.$ac_ext
8548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8549echo "${ECHO_T}$ac_header_preproc" >&6
8550
8551# So? What about this header?
8552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8553 yes:no: )
8554 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8555echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8556 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8557echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8558 ac_header_preproc=yes
8559 ;;
8560 no:yes:* )
8561 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8562echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8564echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8566echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8568echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8570echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8572echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
8573 (
8574 cat <<\_ASBOX
8575## ------------------------------------ ##
8576## Report this to the pjproject lists. ##
8577## ------------------------------------ ##
8578_ASBOX
8579 ) |
8580 sed "s/^/$as_me: WARNING: /" >&2
8581 ;;
8582esac
8583echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8584echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8585if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587else
8588 ac_cv_header_uuid_uuid_h=$ac_header_preproc
8589fi
8590echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8591echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8592
8593fi
8594if test $ac_cv_header_uuid_uuid_h = yes; then
8595 ac_has_uuid_h=1
8596fi
8597
8598
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008599
8600echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008601echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008602cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008603#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008604_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008605
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008606
8607echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008608echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008609cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008610#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008611_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008612
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008613
8614echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008615echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008616cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008617#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008618_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008619
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008620
8621echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008622echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008623cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008624#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008625_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008626
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008627
8628echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008629echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008630cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008631#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008632_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008633
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008634
8635echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008636echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008637cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008638#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008639_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008640
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008641
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008642echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
8643echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008644cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008645/* confdefs.h. */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008650#include <sys/types.h>
8651 #include <sys/socket.h>
8652 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008653int
8654main ()
8655{
8656inet_aton(0, 0);
8657 ;
8658 return 0;
8659}
8660_ACEOF
8661rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8663 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008664 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008669 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008673 (eval $ac_try) 2>&5
8674 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest.$ac_objext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008682 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008683 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008684#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008685_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008686
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008687 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008688echo "${ECHO_T}yes" >&6
8689else
8690 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008691sed 's/^/| /' conftest.$ac_ext >&5
8692
8693echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008694echo "${ECHO_T}no" >&6
8695fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008697
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008698echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
8699echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6
8700cat >conftest.$ac_ext <<_ACEOF
8701/* confdefs.h. */
8702_ACEOF
8703cat confdefs.h >>conftest.$ac_ext
8704cat >>conftest.$ac_ext <<_ACEOF
8705/* end confdefs.h. */
8706#include <sys/types.h>
8707 #include <sys/socket.h>
8708 #include <arpa/inet.h>
8709int
8710main ()
8711{
8712inet_pton(0, 0, 0);
8713 ;
8714 return 0;
8715}
8716_ACEOF
8717rm -f conftest.$ac_objext
8718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719 (eval $ac_compile) 2>conftest.er1
8720 ac_status=$?
8721 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_c_werror_flag"
8727 || test ! -s conftest.err'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; } &&
8733 { ac_try='test -s conftest.$ac_objext'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 cat >>confdefs.h <<\_ACEOF
8740#define PJ_SOCK_HAS_INET_PTON 1
8741_ACEOF
8742
8743 echo "$as_me:$LINENO: result: yes" >&5
8744echo "${ECHO_T}yes" >&6
8745else
8746 echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
8749echo "$as_me:$LINENO: result: no" >&5
8750echo "${ECHO_T}no" >&6
8751fi
8752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753
8754echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
8755echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6
8756cat >conftest.$ac_ext <<_ACEOF
8757/* confdefs.h. */
8758_ACEOF
8759cat confdefs.h >>conftest.$ac_ext
8760cat >>conftest.$ac_ext <<_ACEOF
8761/* end confdefs.h. */
8762#include <sys/types.h>
8763 #include <sys/socket.h>
8764 #include <arpa/inet.h>
8765int
8766main ()
8767{
8768inet_ntop(0, 0, 0, 0);
8769 ;
8770 return 0;
8771}
8772_ACEOF
8773rm -f conftest.$ac_objext
8774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest.$ac_objext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 cat >>confdefs.h <<\_ACEOF
8796#define PJ_SOCK_HAS_INET_NTOP 1
8797_ACEOF
8798
8799 echo "$as_me:$LINENO: result: yes" >&5
8800echo "${ECHO_T}yes" >&6
8801else
8802 echo "$as_me: failed program was:" >&5
8803sed 's/^/| /' conftest.$ac_ext >&5
8804
8805echo "$as_me:$LINENO: result: no" >&5
8806echo "${ECHO_T}no" >&6
8807fi
8808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8809
8810echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
8811echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6
8812cat >conftest.$ac_ext <<_ACEOF
8813/* confdefs.h. */
8814_ACEOF
8815cat confdefs.h >>conftest.$ac_ext
8816cat >>conftest.$ac_ext <<_ACEOF
8817/* end confdefs.h. */
8818#include <sys/types.h>
8819 #include <sys/socket.h>
8820 #include <netdb.h>
8821int
8822main ()
8823{
8824getaddrinfo(0, 0, 0, 0);
8825 ;
8826 return 0;
8827}
8828_ACEOF
8829rm -f conftest.$ac_objext
8830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>conftest.er1
8832 ac_status=$?
8833 grep -v '^ *+' conftest.er1 >conftest.err
8834 rm -f conftest.er1
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag"
8839 || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest.$ac_objext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 cat >>confdefs.h <<\_ACEOF
8852#define PJ_SOCK_HAS_GETADDRINFO 1
8853_ACEOF
8854
8855 echo "$as_me:$LINENO: result: yes" >&5
8856echo "${ECHO_T}yes" >&6
8857else
8858 echo "$as_me: failed program was:" >&5
8859sed 's/^/| /' conftest.$ac_ext >&5
8860
8861echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863fi
8864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8865
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008866echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008867echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
8868cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008869/* confdefs.h. */
8870_ACEOF
8871cat confdefs.h >>conftest.$ac_ext
8872cat >>conftest.$ac_ext <<_ACEOF
8873/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008874#include <sys/types.h>
8875 #include <sys/socket.h>
8876 #include <netinet/in.h>
8877 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008878int
8879main ()
8880{
8881struct sockaddr_in a; a.sin_len=0;
8882 ;
8883 return 0;
8884}
8885_ACEOF
8886rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8888 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008889 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008894 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008898 (eval $ac_try) 2>&5
8899 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest.$ac_objext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008907 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008908 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008909#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008910_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008911
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008912 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008913echo "${ECHO_T}yes" >&6
8914else
8915 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008916sed 's/^/| /' conftest.$ac_ext >&5
8917
8918echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008919echo "${ECHO_T}no" >&6
8920fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008922
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008923echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008924echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8925cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008926/* confdefs.h. */
8927_ACEOF
8928cat confdefs.h >>conftest.$ac_ext
8929cat >>conftest.$ac_ext <<_ACEOF
8930/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008931#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008932int
8933main ()
8934{
8935socklen_t xxx = 0;
8936 ;
8937 return 0;
8938}
8939_ACEOF
8940rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8942 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008943 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008948 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008952 (eval $ac_try) 2>&5
8953 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest.$ac_objext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008961 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008962 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008963#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008964_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008965
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008966 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008967echo "${ECHO_T}yes" >&6
8968else
8969 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008970sed 's/^/| /' conftest.$ac_ext >&5
8971
8972echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008973echo "${ECHO_T}no" >&6
8974fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008976
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008977echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008978echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008979case $target in
8980 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008981 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008982#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008983_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008984
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008985 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008986echo "${ECHO_T}yes" >&6
8987 ;;
8988 *)
8989 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008990/* confdefs.h. */
8991_ACEOF
8992cat confdefs.h >>conftest.$ac_ext
8993cat >>conftest.$ac_ext <<_ACEOF
8994/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008995#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008996 #include <sys/socket.h>
8997 #include <netinet/in.h>
8998 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008999int
9000main ()
9001{
9002int i=SO_ERROR;
9003 ;
9004 return 0;
9005}
9006_ACEOF
9007rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009010 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009015 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009016 { ac_try='test -z "$ac_c_werror_flag"
9017 || test ! -s conftest.err'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00009019 (eval $ac_try) 2>&5
9020 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; } &&
9023 { ac_try='test -s conftest.$ac_objext'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009028 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009029 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009030#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009031_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009032
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009033 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009034echo "${ECHO_T}yes" >&6
9035else
9036 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009037sed 's/^/| /' conftest.$ac_ext >&5
9038
9039echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009040echo "${ECHO_T}no" >&6
9041fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009043 ;;
9044esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009045
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009046
9047echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009048echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
9049cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009050/* confdefs.h. */
9051_ACEOF
9052cat confdefs.h >>conftest.$ac_ext
9053cat >>conftest.$ac_ext <<_ACEOF
9054/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009055#include <pthread.h>
9056int
9057main ()
9058{
9059pthread_rwlock_t *x;
9060 ;
9061 return 0;
9062}
9063_ACEOF
9064rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009067 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009072 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009073 { ac_try='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00009076 (eval $ac_try) 2>&5
9077 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009085 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009086 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009087#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009088_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009089
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009090 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009091echo "${ECHO_T}yes" >&6
9092else
9093 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009094sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009095
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009096cat >>confdefs.h <<\_ACEOF
9097#define PJ_EMULATE_RWMUTEX 1
9098_ACEOF
9099
9100 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009101echo "${ECHO_T}no" >&6
9102fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9104
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009105
9106case $target in
9107 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00009108 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 +00009109 ;;
9110 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00009111 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 ioqueue_select.o"
9112 # UUID
9113 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9114 ac_os_objs="$ac_os_objs guid_uuid.o"
9115 else
9116 ac_os_objs="$ac_os_objs guid_simple.o"
9117 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009118 ;;
9119esac
9120
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009121
9122
9123
Benny Prijono4e48b512007-05-16 13:41:00 +00009124
Benny Prijono1d971622006-09-10 22:27:40 +00009125# Check whether --enable-sound or --disable-sound was given.
9126if test "${enable_sound+set}" = set; then
9127 enableval="$enable_sound"
9128 if test "$enable_sound" = "no"; then
9129 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009130 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00009131echo "${ECHO_T}Checking if sound is disabled... yes" >&6
9132 fi
9133
9134fi;
9135
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009136
Benny Prijono27c98722007-04-09 21:28:15 +00009137if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9138 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9139echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
9140if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9142fi
9143echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9144echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
9145else
9146 # Is the header compilable?
9147echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9148echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
9149cat >conftest.$ac_ext <<_ACEOF
9150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h. */
9155$ac_includes_default
9156#include <sys/soundcard.h>
9157_ACEOF
9158rm -f conftest.$ac_objext
9159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9160 (eval $ac_compile) 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } &&
9167 { ac_try='test -z "$ac_c_werror_flag"
9168 || test ! -s conftest.err'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 (eval $ac_try) 2>&5
9171 ac_status=$?
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; } &&
9174 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9180 ac_header_compiler=yes
9181else
9182 echo "$as_me: failed program was:" >&5
9183sed 's/^/| /' conftest.$ac_ext >&5
9184
9185ac_header_compiler=no
9186fi
9187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9189echo "${ECHO_T}$ac_header_compiler" >&6
9190
9191# Is the header present?
9192echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9193echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
9194cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200#include <sys/soundcard.h>
9201_ACEOF
9202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } >/dev/null; then
9210 if test -s conftest.err; then
9211 ac_cpp_err=$ac_c_preproc_warn_flag
9212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9213 else
9214 ac_cpp_err=
9215 fi
9216else
9217 ac_cpp_err=yes
9218fi
9219if test -z "$ac_cpp_err"; then
9220 ac_header_preproc=yes
9221else
9222 echo "$as_me: failed program was:" >&5
9223sed 's/^/| /' conftest.$ac_ext >&5
9224
9225 ac_header_preproc=no
9226fi
9227rm -f conftest.err conftest.$ac_ext
9228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9229echo "${ECHO_T}$ac_header_preproc" >&6
9230
9231# So? What about this header?
9232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9233 yes:no: )
9234 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9235echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9237echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9238 ac_header_preproc=yes
9239 ;;
9240 no:yes:* )
9241 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9242echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9244echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9246echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9248echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9250echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9252echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
9253 (
9254 cat <<\_ASBOX
9255## ------------------------------------ ##
9256## Report this to the pjproject lists. ##
9257## ------------------------------------ ##
9258_ASBOX
9259 ) |
9260 sed "s/^/$as_me: WARNING: /" >&2
9261 ;;
9262esac
9263echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9264echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
9265if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267else
9268 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9269fi
9270echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9271echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
9272
9273fi
9274if test $ac_cv_header_sys_soundcard_h = yes; then
9275 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9276fi
9277
9278
9279if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9280 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9281echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
9282if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284fi
9285echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9286echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
9287else
9288 # Is the header compilable?
9289echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9290echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
9291cat >conftest.$ac_ext <<_ACEOF
9292/* confdefs.h. */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h. */
9297$ac_includes_default
9298#include <linux/soundcard.h>
9299_ACEOF
9300rm -f conftest.$ac_objext
9301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9302 (eval $ac_compile) 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag"
9310 || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest.$ac_objext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_header_compiler=yes
9323else
9324 echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327ac_header_compiler=no
9328fi
9329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9331echo "${ECHO_T}$ac_header_compiler" >&6
9332
9333# Is the header present?
9334echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9335echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
9336cat >conftest.$ac_ext <<_ACEOF
9337/* confdefs.h. */
9338_ACEOF
9339cat confdefs.h >>conftest.$ac_ext
9340cat >>conftest.$ac_ext <<_ACEOF
9341/* end confdefs.h. */
9342#include <linux/soundcard.h>
9343_ACEOF
9344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } >/dev/null; then
9352 if test -s conftest.err; then
9353 ac_cpp_err=$ac_c_preproc_warn_flag
9354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9355 else
9356 ac_cpp_err=
9357 fi
9358else
9359 ac_cpp_err=yes
9360fi
9361if test -z "$ac_cpp_err"; then
9362 ac_header_preproc=yes
9363else
9364 echo "$as_me: failed program was:" >&5
9365sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 ac_header_preproc=no
9368fi
9369rm -f conftest.err conftest.$ac_ext
9370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9371echo "${ECHO_T}$ac_header_preproc" >&6
9372
9373# So? What about this header?
9374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9375 yes:no: )
9376 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9377echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
9379echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
9380 ac_header_preproc=yes
9381 ;;
9382 no:yes:* )
9383 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
9384echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
9386echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
9388echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9390echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
9392echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
9394echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
9395 (
9396 cat <<\_ASBOX
9397## ------------------------------------ ##
9398## Report this to the pjproject lists. ##
9399## ------------------------------------ ##
9400_ASBOX
9401 ) |
9402 sed "s/^/$as_me: WARNING: /" >&2
9403 ;;
9404esac
9405echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9406echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
9407if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9409else
9410 ac_cv_header_linux_soundcard_h=$ac_header_preproc
9411fi
9412echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9413echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
9414
9415fi
9416if test $ac_cv_header_linux_soundcard_h = yes; then
9417 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
9418fi
9419
9420
9421if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9422 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9423echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9424if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426fi
9427echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9428echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9429else
9430 # Is the header compilable?
9431echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
9432echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
9433cat >conftest.$ac_ext <<_ACEOF
9434/* confdefs.h. */
9435_ACEOF
9436cat confdefs.h >>conftest.$ac_ext
9437cat >>conftest.$ac_ext <<_ACEOF
9438/* end confdefs.h. */
9439$ac_includes_default
9440#include <machine/soundcard.h>
9441_ACEOF
9442rm -f conftest.$ac_objext
9443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9444 (eval $ac_compile) 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try='test -z "$ac_c_werror_flag"
9452 || test ! -s conftest.err'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 (eval $ac_try) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest.$ac_objext'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 (eval $ac_try) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; }; then
9464 ac_header_compiler=yes
9465else
9466 echo "$as_me: failed program was:" >&5
9467sed 's/^/| /' conftest.$ac_ext >&5
9468
9469ac_header_compiler=no
9470fi
9471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9473echo "${ECHO_T}$ac_header_compiler" >&6
9474
9475# Is the header present?
9476echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9477echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
9478cat >conftest.$ac_ext <<_ACEOF
9479/* confdefs.h. */
9480_ACEOF
9481cat confdefs.h >>conftest.$ac_ext
9482cat >>conftest.$ac_ext <<_ACEOF
9483/* end confdefs.h. */
9484#include <machine/soundcard.h>
9485_ACEOF
9486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9488 ac_status=$?
9489 grep -v '^ *+' conftest.er1 >conftest.err
9490 rm -f conftest.er1
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } >/dev/null; then
9494 if test -s conftest.err; then
9495 ac_cpp_err=$ac_c_preproc_warn_flag
9496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9497 else
9498 ac_cpp_err=
9499 fi
9500else
9501 ac_cpp_err=yes
9502fi
9503if test -z "$ac_cpp_err"; then
9504 ac_header_preproc=yes
9505else
9506 echo "$as_me: failed program was:" >&5
9507sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 ac_header_preproc=no
9510fi
9511rm -f conftest.err conftest.$ac_ext
9512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9513echo "${ECHO_T}$ac_header_preproc" >&6
9514
9515# So? What about this header?
9516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9517 yes:no: )
9518 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9519echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9521echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9522 ac_header_preproc=yes
9523 ;;
9524 no:yes:* )
9525 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9526echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9528echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9530echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9532echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9534echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9536echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
9537 (
9538 cat <<\_ASBOX
9539## ------------------------------------ ##
9540## Report this to the pjproject lists. ##
9541## ------------------------------------ ##
9542_ASBOX
9543 ) |
9544 sed "s/^/$as_me: WARNING: /" >&2
9545 ;;
9546esac
9547echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9548echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9549if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551else
9552 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9553fi
9554echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9555echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9556
9557fi
9558if test $ac_cv_header_machine_soundcard_h = yes; then
9559 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
9560fi
9561
9562
9563
Benny Prijono1d971622006-09-10 22:27:40 +00009564if test "$enable_sound" = "no"; then
9565 true;
9566else
9567 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00009568 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00009569 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
9570 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009571 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00009572 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
9573 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009574 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00009575echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
9576 else
9577 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009578 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00009579echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00009580 fi
Benny Prijonob466e232006-09-10 08:53:59 +00009581 ;;
9582 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009583 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009584 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009585echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
9586 ;;
9587 *rtems*)
9588 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009589 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009590echo "${ECHO_T}Checking sound device backend... null sound" >&6
9591 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009592 *)
9593 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009594 if test "${ac_cv_header_alsa_version_h+set}" = set; then
9595 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009596echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9597if test "${ac_cv_header_alsa_version_h+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009599fi
9600echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
9601echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009602else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009603 # Is the header compilable?
9604echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
9605echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
9606cat >conftest.$ac_ext <<_ACEOF
9607/* confdefs.h. */
9608_ACEOF
9609cat confdefs.h >>conftest.$ac_ext
9610cat >>conftest.$ac_ext <<_ACEOF
9611/* end confdefs.h. */
9612$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009613#include <alsa/version.h>
9614_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009615rm -f conftest.$ac_objext
9616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9617 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009618 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009619 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009620 rm -f conftest.er1
9621 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -z "$ac_c_werror_flag"
9625 || test ! -s conftest.err'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; } &&
9631 { ac_try='test -s conftest.$ac_objext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_header_compiler=yes
9638else
9639 echo "$as_me: failed program was:" >&5
9640sed 's/^/| /' conftest.$ac_ext >&5
9641
9642ac_header_compiler=no
9643fi
9644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646echo "${ECHO_T}$ac_header_compiler" >&6
9647
9648# Is the header present?
9649echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
9650echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
9651cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657#include <alsa/version.h>
9658_ACEOF
9659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009666 (exit $ac_status); } >/dev/null; then
9667 if test -s conftest.err; then
9668 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009670 else
9671 ac_cpp_err=
9672 fi
9673else
9674 ac_cpp_err=yes
9675fi
9676if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009677 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009678else
9679 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009680sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009683fi
9684rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9686echo "${ECHO_T}$ac_header_preproc" >&6
9687
9688# So? What about this header?
9689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 yes:no: )
9691 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9692echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
9694echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
9695 ac_header_preproc=yes
9696 ;;
9697 no:yes:* )
9698 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
9699echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
9701echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
9703echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
9705echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
9707echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
9708 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
9709echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
9710 (
9711 cat <<\_ASBOX
9712## ------------------------------------ ##
9713## Report this to the pjproject lists. ##
9714## ------------------------------------ ##
9715_ASBOX
9716 ) |
9717 sed "s/^/$as_me: WARNING: /" >&2
9718 ;;
9719esac
9720echo "$as_me:$LINENO: checking for alsa/version.h" >&5
9721echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9722if test "${ac_cv_header_alsa_version_h+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724else
9725 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009726fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009727echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009728echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009729
9730fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009731if test $ac_cv_header_alsa_version_h = yes; then
9732 ac_pa_use_alsa=1
9733
9734 LIBS="$LIBS -lasound"
9735
9736else
9737 ac_pa_use_alsa=0
9738
9739fi
9740
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009741
9742 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009743echo "${ECHO_T}Checking sound device backend... unix" >&6
9744 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00009745 esac
9746fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009747
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009748
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009749# Check whether --enable-small-filter or --disable-small-filter was given.
9750if test "${enable_small_filter+set}" = set; then
9751 enableval="$enable_small_filter"
9752 if test "$enable_small_filter" = "no"; then
9753 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009754 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009755echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
9756 fi
9757else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009758 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009759echo "${ECHO_T}Checking if small filter is disabled... no" >&6
9760fi;
9761
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009762
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009763# Check whether --enable-large-filter or --disable-large-filter was given.
9764if test "${enable_large_filter+set}" = set; then
9765 enableval="$enable_large_filter"
9766 if test "$enable_large_filter" = "no"; then
9767 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009768 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009769echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
9770 fi
9771else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009772 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009773echo "${ECHO_T}Checking if large filter is disabled... no" >&6
9774fi;
9775
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009776
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009777# Check whether --enable-speex-aec or --disable-speex-aec was given.
9778if test "${enable_speex_aec+set}" = set; then
9779 enableval="$enable_speex_aec"
9780 if test "$enable_speex_aec" = "no"; then
9781 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009782 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009783echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
9784 fi
9785else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009786 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009787echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
9788fi;
9789
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009790
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009791# Check whether --enable-g711-codec or --disable-g711-codec was given.
9792if test "${enable_g711_codec+set}" = set; then
9793 enableval="$enable_g711_codec"
9794 if test "$enable_g711_codec" = "no"; then
9795 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009796 cat >>confdefs.h <<\_ACEOF
9797#define PJMEDIA_HAS_G711_CODEC 0
9798_ACEOF
9799
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009800 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009801echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
9802 fi
9803else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009804 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009805echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
9806fi;
9807
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009808
9809
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009810# Check whether --enable-l16-codec or --disable-l16-codec was given.
9811if test "${enable_l16_codec+set}" = set; then
9812 enableval="$enable_l16_codec"
9813 if test "$enable_l16_codec" = "no"; then
9814 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009815 cat >>confdefs.h <<\_ACEOF
9816#define PJMEDIA_HAS_L16_CODEC 0
9817_ACEOF
9818
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009819 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009820echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
9821 fi
9822else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009823 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00009824echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009825fi;
9826
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009827
9828
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009829# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
9830if test "${enable_gsm_codec+set}" = set; then
9831 enableval="$enable_gsm_codec"
9832 if test "$enable_gsm_codec" = "no"; then
9833 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009834 cat >>confdefs.h <<\_ACEOF
9835#define PJMEDIA_HAS_GSM_CODEC 0
9836_ACEOF
9837
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009838 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009839echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
9840 fi
9841else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009842 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009843echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
9844fi;
9845
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009846
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009847# Check whether --enable-speex-codec or --disable-speex-codec was given.
9848if test "${enable_speex_codec+set}" = set; then
9849 enableval="$enable_speex_codec"
9850 if test "$enable_speex_codec" = "no"; then
9851 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009852 cat >>confdefs.h <<\_ACEOF
9853#define PJMEDIA_HAS_SPEEX_CODEC 0
9854_ACEOF
9855
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009856 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009857echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
9858 fi
9859else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009860 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009861echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
9862fi;
9863
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009864
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009865# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
9866if test "${enable_ilbc_codec+set}" = set; then
9867 enableval="$enable_ilbc_codec"
9868 if test "$enable_ilbc_codec" = "no"; then
9869 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009870 cat >>confdefs.h <<\_ACEOF
9871#define PJMEDIA_HAS_ILBC_CODEC 0
9872_ACEOF
9873
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009874 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009875echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
9876 fi
9877else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009878 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009879echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
9880fi;
9881
Benny Prijono550a1a62007-10-16 08:54:00 +00009882# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
9883if test "${enable_libsamplerate+set}" = set; then
9884 enableval="$enable_libsamplerate"
9885
9886echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
9887echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
9888if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891 ac_check_lib_save_LIBS=$LIBS
9892LIBS="-lsamplerate $LIBS"
9893cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h. */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h. */
9899
9900/* Override any gcc2 internal prototype to avoid an error. */
9901#ifdef __cplusplus
9902extern "C"
9903#endif
9904/* We use char because int might match the return type of a gcc2
9905 builtin and then its argument prototype would still apply. */
9906char src_new ();
9907int
9908main ()
9909{
9910src_new ();
9911 ;
9912 return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
9916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9917 (eval $ac_link) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest$ac_exeext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_samplerate_src_new=yes
9938else
9939 echo "$as_me: failed program was:" >&5
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
9942ac_cv_lib_samplerate_src_new=no
9943fi
9944rm -f conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946LIBS=$ac_check_lib_save_LIBS
9947fi
9948echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
9949echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
9950if test $ac_cv_lib_samplerate_src_new = yes; then
9951 cat >>confdefs.h <<_ACEOF
9952#define HAVE_LIBSAMPLERATE 1
9953_ACEOF
9954
9955 LIBS="-lsamplerate $LIBS"
9956
9957fi
9958
9959else
9960 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
9961echo "${ECHO_T}Skipping libsamplerate detection" >&6
9962
9963fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009964
9965
9966
9967
9968# Check whether --enable-ssl or --disable-ssl was given.
9969if test "${enable_ssl+set}" = set; then
9970 enableval="$enable_ssl"
9971
9972 if test "$enable_ssl" = "no"; then
9973 ac_no_ssl=1
9974 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
9975echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
9976 fi
9977
9978else
9979
9980 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
9981echo "${ECHO_T}checking for OpenSSL installations.." >&6
9982
9983
9984
9985 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9986 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9987echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9988if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990fi
9991echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9992echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9993else
9994 # Is the header compilable?
9995echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9996echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9997cat >conftest.$ac_ext <<_ACEOF
9998/* confdefs.h. */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
10002/* end confdefs.h. */
10003$ac_includes_default
10004#include <openssl/ssl.h>
10005_ACEOF
10006rm -f conftest.$ac_objext
10007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10008 (eval $ac_compile) 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -z "$ac_c_werror_flag"
10016 || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest.$ac_objext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_header_compiler=yes
10029else
10030 echo "$as_me: failed program was:" >&5
10031sed 's/^/| /' conftest.$ac_ext >&5
10032
10033ac_header_compiler=no
10034fi
10035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10037echo "${ECHO_T}$ac_header_compiler" >&6
10038
10039# Is the header present?
10040echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10041echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10042cat >conftest.$ac_ext <<_ACEOF
10043/* confdefs.h. */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
10047/* end confdefs.h. */
10048#include <openssl/ssl.h>
10049_ACEOF
10050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } >/dev/null; then
10058 if test -s conftest.err; then
10059 ac_cpp_err=$ac_c_preproc_warn_flag
10060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10061 else
10062 ac_cpp_err=
10063 fi
10064else
10065 ac_cpp_err=yes
10066fi
10067if test -z "$ac_cpp_err"; then
10068 ac_header_preproc=yes
10069else
10070 echo "$as_me: failed program was:" >&5
10071sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 ac_header_preproc=no
10074fi
10075rm -f conftest.err conftest.$ac_ext
10076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10077echo "${ECHO_T}$ac_header_preproc" >&6
10078
10079# So? What about this header?
10080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10081 yes:no: )
10082 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10083echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10085echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10086 ac_header_preproc=yes
10087 ;;
10088 no:yes:* )
10089 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10090echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10092echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10093 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10094echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10095 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10096echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10097 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10098echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10100echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10101 (
10102 cat <<\_ASBOX
10103## ------------------------------------ ##
10104## Report this to the pjproject lists. ##
10105## ------------------------------------ ##
10106_ASBOX
10107 ) |
10108 sed "s/^/$as_me: WARNING: /" >&2
10109 ;;
10110esac
10111echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10112echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10113if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10115else
10116 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10117fi
10118echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10119echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10120
10121fi
10122if test $ac_cv_header_openssl_ssl_h = yes; then
10123 openssl_h_present=1
10124fi
10125
10126
10127 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
10128echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
10129if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 ac_check_lib_save_LIBS=$LIBS
10133LIBS="-lssl $LIBS"
10134cat >conftest.$ac_ext <<_ACEOF
10135/* confdefs.h. */
10136_ACEOF
10137cat confdefs.h >>conftest.$ac_ext
10138cat >>conftest.$ac_ext <<_ACEOF
10139/* end confdefs.h. */
10140
10141/* Override any gcc2 internal prototype to avoid an error. */
10142#ifdef __cplusplus
10143extern "C"
10144#endif
10145/* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10147char SSL_library_init ();
10148int
10149main ()
10150{
10151SSL_library_init ();
10152 ;
10153 return 0;
10154}
10155_ACEOF
10156rm -f conftest.$ac_objext conftest$ac_exeext
10157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_lib_ssl_SSL_library_init=yes
10179else
10180 echo "$as_me: failed program was:" >&5
10181sed 's/^/| /' conftest.$ac_ext >&5
10182
10183ac_cv_lib_ssl_SSL_library_init=no
10184fi
10185rm -f conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187LIBS=$ac_check_lib_save_LIBS
10188fi
10189echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
10190echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
10191if test $ac_cv_lib_ssl_SSL_library_init = yes; then
10192 libssl_present=1 && LIBS="$LIBS -lssl"
10193fi
10194
10195 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
10196echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
10197if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10199else
10200 ac_check_lib_save_LIBS=$LIBS
10201LIBS="-lcrypto $LIBS"
10202cat >conftest.$ac_ext <<_ACEOF
10203/* confdefs.h. */
10204_ACEOF
10205cat confdefs.h >>conftest.$ac_ext
10206cat >>conftest.$ac_ext <<_ACEOF
10207/* end confdefs.h. */
10208
10209/* Override any gcc2 internal prototype to avoid an error. */
10210#ifdef __cplusplus
10211extern "C"
10212#endif
10213/* We use char because int might match the return type of a gcc2
10214 builtin and then its argument prototype would still apply. */
10215char ERR_load_BIO_strings ();
10216int
10217main ()
10218{
10219ERR_load_BIO_strings ();
10220 ;
10221 return 0;
10222}
10223_ACEOF
10224rm -f conftest.$ac_objext conftest$ac_exeext
10225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226 (eval $ac_link) 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -z "$ac_c_werror_flag"
10234 || test ! -s conftest.err'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
10247else
10248 echo "$as_me: failed program was:" >&5
10249sed 's/^/| /' conftest.$ac_ext >&5
10250
10251ac_cv_lib_crypto_ERR_load_BIO_strings=no
10252fi
10253rm -f conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255LIBS=$ac_check_lib_save_LIBS
10256fi
10257echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
10258echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
10259if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
10260 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
10261fi
10262
10263 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
10264 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
10265echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
10266 cat >>confdefs.h <<\_ACEOF
10267#define PJSIP_HAS_TLS_TRANSPORT 1
10268_ACEOF
10269
10270 else
10271 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
10272echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
10273 fi
10274
10275fi;
10276
10277
10278
10279
10280echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010281echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010282case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010283 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010284#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010285_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010286
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010287 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010288echo "${ECHO_T}yes" >&6
10289 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010290 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010291#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010292_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010293
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010294 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010295echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010296 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010297echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
10298 ;;
10299esac
10300
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010301echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010302echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
10303case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010304 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010305#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010306_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010307
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010308 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010309echo "${ECHO_T}yes" >&6
10310 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010311 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010312#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010313_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010314
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010315 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010316echo "${ECHO_T}no (default)" >&6
10317 ;;
10318esac
10319
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010320echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010321echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
10322case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010323 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010324#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010325_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010326
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010327 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010328echo "${ECHO_T}yes" >&6
10329 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010330 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010331#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010332_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010333
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010334 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010335echo "${ECHO_T}no (default)" >&6
10336 ;;
10337esac
10338
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010339case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010340 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010341 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010342#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010343_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010344
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010345 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010346 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010347#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010348_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010349
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010350 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010351echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
10352 ;;
10353esac
10354
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010355case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010356 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010357 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010358#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010359_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010360
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010361 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010362 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010363#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010364_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010365
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010366 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010367echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
10368 ;;
10369esac
10370
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010371
10372
10373
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010374if test "$build" = "$host"; then
10375 ac_cross_compile=
10376else
Benny Prijono5b818b22006-09-17 22:58:51 +000010377 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010378fi
10379ac_linux_poll=select
10380
10381ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010382
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010383
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010384case $target in
10385 *rtems*)
10386 ac_main_obj=main_rtems.o
10387 ;;
10388 *)
10389 ac_main_obj=main.o
10390 ;;
10391esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010392
10393cat >confcache <<\_ACEOF
10394# This file is a shell script that caches the results of configure
10395# tests run on this system so they can be shared between configure
10396# scripts and configure runs, see configure's option --config-cache.
10397# It is not useful on other systems. If it contains results you don't
10398# want to keep, you may remove or edit it.
10399#
10400# config.status only pays attention to the cache file if you give it
10401# the --recheck option to rerun configure.
10402#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010403# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010404# loading this file, other *unset* `ac_cv_foo' will be assigned the
10405# following values.
10406
10407_ACEOF
10408
10409# The following way of writing the cache mishandles newlines in values,
10410# but we know of no workaround that is simple, portable, and efficient.
10411# So, don't put newlines in cache variables' values.
10412# Ultrix sh set writes to stderr and can't be redirected directly,
10413# and sets the high bit in the cache file unless we assign to the vars.
10414{
10415 (set) 2>&1 |
10416 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10417 *ac_space=\ *)
10418 # `set' does not quote correctly, so add quotes (double-quote
10419 # substitution turns \\\\ into \\, and sed turns \\ into \).
10420 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010421 "s/'/'\\\\''/g;
10422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010423 ;;
10424 *)
10425 # `set' quotes correctly as required by POSIX, so do not add quotes.
10426 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010427 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010428 ;;
10429 esac;
10430} |
10431 sed '
10432 t clear
10433 : clear
10434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10435 t end
10436 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10437 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010438if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010439 if test -w $cache_file; then
10440 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10441 cat confcache >$cache_file
10442 else
10443 echo "not updating unwritable cache $cache_file"
10444 fi
10445fi
10446rm -f confcache
10447
10448test "x$prefix" = xNONE && prefix=$ac_default_prefix
10449# Let make expand exec_prefix.
10450test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10451
10452# VPATH may cause trouble with some makes, so we remove $(srcdir),
10453# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10454# trailing colons and then remove the whole line if VPATH becomes empty
10455# (actually we leave an empty line to preserve line numbers).
10456if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010457 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010458s/:*\$(srcdir):*/:/;
10459s/:*\${srcdir}:*/:/;
10460s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010461s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010462s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010463s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010464}'
10465fi
10466
10467DEFS=-DHAVE_CONFIG_H
10468
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010469ac_libobjs=
10470ac_ltlibobjs=
10471for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10472 # 1. Remove the extension, and $U if already installed.
10473 ac_i=`echo "$ac_i" |
10474 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10475 # 2. Add them.
10476 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10477 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10478done
10479LIBOBJS=$ac_libobjs
10480
10481LTLIBOBJS=$ac_ltlibobjs
10482
10483
10484
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010485: ${CONFIG_STATUS=./config.status}
10486ac_clean_files_save=$ac_clean_files
10487ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010488{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010489echo "$as_me: creating $CONFIG_STATUS" >&6;}
10490cat >$CONFIG_STATUS <<_ACEOF
10491#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010492# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010493# Run this file to recreate the current configuration.
10494# Compiler output produced by configure, useful for debugging
10495# configure, is in config.log if it exists.
10496
10497debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010498ac_cs_recheck=false
10499ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010500SHELL=\${CONFIG_SHELL-$SHELL}
10501_ACEOF
10502
10503cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010504## --------------------- ##
10505## M4sh Initialization. ##
10506## --------------------- ##
10507
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010508# Be Bourne compatible
10509if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10510 emulate sh
10511 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010512 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10513 # is contrary to our usage. Disable this feature.
10514 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010515elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10516 set -o posix
10517fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010518DUALCASE=1; export DUALCASE # for MKS sh
10519
10520# Support unset when possible.
10521if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10522 as_unset=unset
10523else
10524 as_unset=false
10525fi
10526
10527
10528# Work around bugs in pre-3.0 UWIN ksh.
10529$as_unset ENV MAIL MAILPATH
10530PS1='$ '
10531PS2='> '
10532PS4='+ '
10533
10534# NLS nuisances.
10535for as_var in \
10536 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10537 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10538 LC_TELEPHONE LC_TIME
10539do
10540 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10541 eval $as_var=C; export $as_var
10542 else
10543 $as_unset $as_var
10544 fi
10545done
10546
10547# Required to use basename.
10548if expr a : '\(a\)' >/dev/null 2>&1; then
10549 as_expr=expr
10550else
10551 as_expr=false
10552fi
10553
10554if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10555 as_basename=basename
10556else
10557 as_basename=false
10558fi
10559
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010560
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010561# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010562as_me=`$as_basename "$0" ||
10563$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10564 X"$0" : 'X\(//\)$' \| \
10565 X"$0" : 'X\(/\)$' \| \
10566 . : '\(.\)' 2>/dev/null ||
10567echo X/"$0" |
10568 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10569 /^X\/\(\/\/\)$/{ s//\1/; q; }
10570 /^X\/\(\/\).*/{ s//\1/; q; }
10571 s/.*/./; q'`
10572
10573
10574# PATH needs CR, and LINENO needs CR and PATH.
10575# Avoid depending upon Character Ranges.
10576as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10577as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10578as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10579as_cr_digits='0123456789'
10580as_cr_alnum=$as_cr_Letters$as_cr_digits
10581
10582# The user is always right.
10583if test "${PATH_SEPARATOR+set}" != set; then
10584 echo "#! /bin/sh" >conf$$.sh
10585 echo "exit 0" >>conf$$.sh
10586 chmod +x conf$$.sh
10587 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10588 PATH_SEPARATOR=';'
10589 else
10590 PATH_SEPARATOR=:
10591 fi
10592 rm -f conf$$.sh
10593fi
10594
10595
10596 as_lineno_1=$LINENO
10597 as_lineno_2=$LINENO
10598 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10599 test "x$as_lineno_1" != "x$as_lineno_2" &&
10600 test "x$as_lineno_3" = "x$as_lineno_2" || {
10601 # Find who we are. Look in the path if we contain no path at all
10602 # relative or not.
10603 case $0 in
10604 *[\\/]* ) as_myself=$0 ;;
10605 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10611done
10612
10613 ;;
10614 esac
10615 # We did not find ourselves, most probably we were run as `sh COMMAND'
10616 # in which case we are not to be found in the path.
10617 if test "x$as_myself" = x; then
10618 as_myself=$0
10619 fi
10620 if test ! -f "$as_myself"; then
10621 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10622echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10623 { (exit 1); exit 1; }; }
10624 fi
10625 case $CONFIG_SHELL in
10626 '')
10627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for as_base in sh bash ksh sh5; do
10633 case $as_dir in
10634 /*)
10635 if ("$as_dir/$as_base" -c '
10636 as_lineno_1=$LINENO
10637 as_lineno_2=$LINENO
10638 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10639 test "x$as_lineno_1" != "x$as_lineno_2" &&
10640 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10641 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10642 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10643 CONFIG_SHELL=$as_dir/$as_base
10644 export CONFIG_SHELL
10645 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10646 fi;;
10647 esac
10648 done
10649done
10650;;
10651 esac
10652
10653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10654 # uniformly replaced by the line number. The first 'sed' inserts a
10655 # line-number line before each line; the second 'sed' does the real
10656 # work. The second script uses 'N' to pair each line-number line
10657 # with the numbered line, and appends trailing '-' during
10658 # substitution so that $LINENO is not a special case at line end.
10659 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10660 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10661 sed '=' <$as_myself |
10662 sed '
10663 N
10664 s,$,-,
10665 : loop
10666 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10667 t loop
10668 s,-$,,
10669 s,^['$as_cr_digits']*\n,,
10670 ' >$as_me.lineno &&
10671 chmod +x $as_me.lineno ||
10672 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10673echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10674 { (exit 1); exit 1; }; }
10675
10676 # Don't try to exec as it changes $[0], causing all sort of problems
10677 # (the dirname of $[0] is not the place where we might find the
10678 # original and so on. Autoconf is especially sensible to this).
10679 . ./$as_me.lineno
10680 # Exit status is that of the last command.
10681 exit
10682}
10683
10684
10685case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10686 *c*,-n*) ECHO_N= ECHO_C='
10687' ECHO_T=' ' ;;
10688 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10689 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10690esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010691
10692if expr a : '\(a\)' >/dev/null 2>&1; then
10693 as_expr=expr
10694else
10695 as_expr=false
10696fi
10697
10698rm -f conf$$ conf$$.exe conf$$.file
10699echo >conf$$.file
10700if ln -s conf$$.file conf$$ 2>/dev/null; then
10701 # We could just check for DJGPP; but this test a) works b) is more generic
10702 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10703 if test -f conf$$.exe; then
10704 # Don't use ln at all; we don't have any links
10705 as_ln_s='cp -p'
10706 else
10707 as_ln_s='ln -s'
10708 fi
10709elif ln conf$$.file conf$$ 2>/dev/null; then
10710 as_ln_s=ln
10711else
10712 as_ln_s='cp -p'
10713fi
10714rm -f conf$$ conf$$.exe conf$$.file
10715
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010716if mkdir -p . 2>/dev/null; then
10717 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000010718else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010719 test -d ./-p && rmdir ./-p
10720 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000010721fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010722
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010723as_executable_p="test -f"
10724
10725# Sed expression to map a string onto a valid CPP name.
10726as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10727
10728# Sed expression to map a string onto a valid variable name.
10729as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10730
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010731
10732# IFS
10733# We need space, tab and new line, in precisely that order.
10734as_nl='
10735'
10736IFS=" $as_nl"
10737
10738# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010739$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010740
10741exec 6>&1
10742
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010743# Open the log real soon, to keep \$[0] and so on meaningful, and to
10744# report actual input values of CONFIG_FILES etc. instead of their
10745# values after options handling. Logging --version etc. is OK.
10746exec 5>>config.log
10747{
10748 echo
10749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10750## Running $as_me. ##
10751_ASBOX
10752} >&5
10753cat >&5 <<_CSEOF
10754
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010755This file was extended by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010756generated by GNU Autoconf 2.59. Invocation command line was
10757
10758 CONFIG_FILES = $CONFIG_FILES
10759 CONFIG_HEADERS = $CONFIG_HEADERS
10760 CONFIG_LINKS = $CONFIG_LINKS
10761 CONFIG_COMMANDS = $CONFIG_COMMANDS
10762 $ $0 $@
10763
10764_CSEOF
10765echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10766echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010767_ACEOF
10768
10769# Files that config.status was made for.
10770if test -n "$ac_config_files"; then
10771 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10772fi
10773
10774if test -n "$ac_config_headers"; then
10775 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10776fi
10777
10778if test -n "$ac_config_links"; then
10779 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10780fi
10781
10782if test -n "$ac_config_commands"; then
10783 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10784fi
10785
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010786cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010787
10788ac_cs_usage="\
10789\`$as_me' instantiates files from templates according to the
10790current configuration.
10791
10792Usage: $0 [OPTIONS] [FILE]...
10793
10794 -h, --help print this help, then exit
10795 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010796 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010797 -d, --debug don't remove temporary files
10798 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010799 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010800 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010801 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010802 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010803
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010804Configuration files:
10805$config_files
10806
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010807Configuration headers:
10808$config_headers
10809
10810Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010811_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010812
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010813cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010814ac_cs_version="\\
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010815pjproject config.status 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010816configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010817 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10818
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010819Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010820This config.status script is free software; the Free Software Foundation
10821gives unlimited permission to copy, distribute and modify it."
10822srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010823_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010824
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010825cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010826# If no file are specified by the user, then we need to provide default
10827# value. By we need to know if files were specified by the user.
10828ac_need_defaults=:
10829while test $# != 0
10830do
10831 case $1 in
10832 --*=*)
10833 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10834 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010835 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010836 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010837 -*)
10838 ac_option=$1
10839 ac_optarg=$2
10840 ac_shift=shift
10841 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010842 *) # This is not an option, so the user has probably given explicit
10843 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010844 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010845 ac_need_defaults=false;;
10846 esac
10847
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010848 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010849 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010850_ACEOF
10851cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010853 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010854 --version | --vers* | -V )
10855 echo "$ac_cs_version"; exit 0 ;;
10856 --he | --h)
10857 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010858 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010859Try \`$0 --help' for more information." >&5
10860echo "$as_me: error: ambiguous option: $1
10861Try \`$0 --help' for more information." >&2;}
10862 { (exit 1); exit 1; }; };;
10863 --help | --hel | -h )
10864 echo "$ac_cs_usage"; exit 0 ;;
10865 --debug | --d* | -d )
10866 debug=: ;;
10867 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010868 $ac_shift
10869 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010870 ac_need_defaults=false;;
10871 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010872 $ac_shift
10873 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010874 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10877 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010878
10879 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010880 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010881Try \`$0 --help' for more information." >&5
10882echo "$as_me: error: unrecognized option: $1
10883Try \`$0 --help' for more information." >&2;}
10884 { (exit 1); exit 1; }; } ;;
10885
10886 *) ac_config_targets="$ac_config_targets $1" ;;
10887
10888 esac
10889 shift
10890done
10891
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010892ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010893
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010894if $ac_cs_silent; then
10895 exec 6>/dev/null
10896 ac_configure_extra_args="$ac_configure_extra_args --silent"
10897fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010898
10899_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010900cat >>$CONFIG_STATUS <<_ACEOF
10901if \$ac_cs_recheck; then
10902 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10903 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10904fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010905
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010906_ACEOF
10907
10908
10909
10910
10911
10912cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010913for ac_config_target in $ac_config_targets
10914do
10915 case "$ac_config_target" in
10916 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010917 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
10918 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
10919 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
10920 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
10921 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
10922 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod9627842007-04-18 09:24:31 +000010923 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
10924 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010925 "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 +000010926 "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 +000010927 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
10928 "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 +000010929 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
10930 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010931echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10932 { (exit 1); exit 1; }; };;
10933 esac
10934done
10935
10936# If the user did not use the arguments to specify the items to instantiate,
10937# then the envvar interface is used. Set only those that are not.
10938# We use the long form for the default assignment because of an extremely
10939# bizarre bug on SunOS 4.1.3.
10940if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10943fi
10944
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010945# Have a temporary directory for convenience. Make it in the build tree
10946# simply because there is no reason to put it here, and in addition,
10947# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010948# Create a temporary directory, and hook for its removal unless debugging.
10949$debug ||
10950{
10951 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10952 trap '{ (exit 1); exit 1; }' 1 2 13 15
10953}
10954
10955# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010956
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010957{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010958 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010959 test -n "$tmp" && test -d "$tmp"
10960} ||
10961{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010962 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010963 (umask 077 && mkdir $tmp)
10964} ||
10965{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010966 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010967 { (exit 1); exit 1; }
10968}
10969
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010970_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010971
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010972cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010973
10974#
10975# CONFIG_FILES section.
10976#
10977
10978# No need to generate the scripts if there are no CONFIG_FILES.
10979# This happens for instance when ./config.status config.h
10980if test -n "\$CONFIG_FILES"; then
10981 # Protect against being on the right side of a sed subst in config.status.
10982 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10983 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10984s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010985s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10986s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10987s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10988s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10989s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10990s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010991s,@exec_prefix@,$exec_prefix,;t t
10992s,@prefix@,$prefix,;t t
10993s,@program_transform_name@,$program_transform_name,;t t
10994s,@bindir@,$bindir,;t t
10995s,@sbindir@,$sbindir,;t t
10996s,@libexecdir@,$libexecdir,;t t
10997s,@datadir@,$datadir,;t t
10998s,@sysconfdir@,$sysconfdir,;t t
10999s,@sharedstatedir@,$sharedstatedir,;t t
11000s,@localstatedir@,$localstatedir,;t t
11001s,@libdir@,$libdir,;t t
11002s,@includedir@,$includedir,;t t
11003s,@oldincludedir@,$oldincludedir,;t t
11004s,@infodir@,$infodir,;t t
11005s,@mandir@,$mandir,;t t
11006s,@build_alias@,$build_alias,;t t
11007s,@host_alias@,$host_alias,;t t
11008s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011009s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011010s,@ECHO_C@,$ECHO_C,;t t
11011s,@ECHO_N@,$ECHO_N,;t t
11012s,@ECHO_T@,$ECHO_T,;t t
11013s,@LIBS@,$LIBS,;t t
11014s,@build@,$build,;t t
11015s,@build_cpu@,$build_cpu,;t t
11016s,@build_vendor@,$build_vendor,;t t
11017s,@build_os@,$build_os,;t t
11018s,@host@,$host,;t t
11019s,@host_cpu@,$host_cpu,;t t
11020s,@host_vendor@,$host_vendor,;t t
11021s,@host_os@,$host_os,;t t
11022s,@target@,$target,;t t
11023s,@target_cpu@,$target_cpu,;t t
11024s,@target_vendor@,$target_vendor,;t t
11025s,@target_os@,$target_os,;t t
11026s,@CC@,$CC,;t t
11027s,@CFLAGS@,$CFLAGS,;t t
11028s,@LDFLAGS@,$LDFLAGS,;t t
11029s,@CPPFLAGS@,$CPPFLAGS,;t t
11030s,@ac_ct_CC@,$ac_ct_CC,;t t
11031s,@EXEEXT@,$EXEEXT,;t t
11032s,@OBJEXT@,$OBJEXT,;t t
11033s,@CXX@,$CXX,;t t
11034s,@CXXFLAGS@,$CXXFLAGS,;t t
11035s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +000011036s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011037s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011038s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011039s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011040s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +000011041s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011042s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
11043s,@ac_no_small_filter@,$ac_no_small_filter,;t t
11044s,@ac_no_large_filter@,$ac_no_large_filter,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011045s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
11046s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
11047s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
11048s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
11049s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
11050s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011051s,@ac_no_ssl@,$ac_no_ssl,;t t
11052s,@openssl_h_present@,$openssl_h_present,;t t
11053s,@libssl_present@,$libssl_present,;t t
11054s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011055s,@ac_cross_compile@,$ac_cross_compile,;t t
11056s,@ac_linux_poll@,$ac_linux_poll,;t t
11057s,@ac_host@,$ac_host,;t t
11058s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011059s,@LIBOBJS@,$LIBOBJS,;t t
11060s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011061CEOF
11062
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011063_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011064
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011065 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011066 # Split the substitutions into bite-sized pieces for seds with
11067 # small command number limits, like on Digital OSF/1 and HP-UX.
11068 ac_max_sed_lines=48
11069 ac_sed_frag=1 # Number of current file.
11070 ac_beg=1 # First line for current file.
11071 ac_end=$ac_max_sed_lines # Line after last line for current file.
11072 ac_more_lines=:
11073 ac_sed_cmds=
11074 while $ac_more_lines; do
11075 if test $ac_beg -gt 1; then
11076 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11077 else
11078 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11079 fi
11080 if test ! -s $tmp/subs.frag; then
11081 ac_more_lines=false
11082 else
11083 # The purpose of the label and of the branching condition is to
11084 # speed up the sed processing (if there are no `@' at all, there
11085 # is no need to browse any of the substitutions).
11086 # These are the two extra sed commands mentioned above.
11087 (echo ':t
11088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11089 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011090 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011091 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011092 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011093 fi
11094 ac_sed_frag=`expr $ac_sed_frag + 1`
11095 ac_beg=$ac_end
11096 ac_end=`expr $ac_end + $ac_max_sed_lines`
11097 fi
11098 done
11099 if test -z "$ac_sed_cmds"; then
11100 ac_sed_cmds=cat
11101 fi
11102fi # test -n "$CONFIG_FILES"
11103
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011104_ACEOF
11105cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011106for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11107 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11108 case $ac_file in
11109 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011110 cat >$tmp/stdin
11111 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011113 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011114 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011115 * ) ac_file_in=$ac_file.in ;;
11116 esac
11117
11118 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011119 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11120$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11121 X"$ac_file" : 'X\(//\)[^/]' \| \
11122 X"$ac_file" : 'X\(//\)$' \| \
11123 X"$ac_file" : 'X\(/\)' \| \
11124 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011125echo X"$ac_file" |
11126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11128 /^X\(\/\/\)$/{ s//\1/; q; }
11129 /^X\(\/\).*/{ s//\1/; q; }
11130 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011131 { if $as_mkdir_p; then
11132 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011133 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011134 as_dir="$ac_dir"
11135 as_dirs=
11136 while test ! -d "$as_dir"; do
11137 as_dirs="$as_dir $as_dirs"
11138 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11139$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11140 X"$as_dir" : 'X\(//\)[^/]' \| \
11141 X"$as_dir" : 'X\(//\)$' \| \
11142 X"$as_dir" : 'X\(/\)' \| \
11143 . : '\(.\)' 2>/dev/null ||
11144echo X"$as_dir" |
11145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11147 /^X\(\/\/\)$/{ s//\1/; q; }
11148 /^X\(\/\).*/{ s//\1/; q; }
11149 s/.*/./; q'`
11150 done
11151 test ! -n "$as_dirs" || mkdir $as_dirs
11152 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11153echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11154 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011155
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011156 ac_builddir=.
11157
11158if test "$ac_dir" != .; then
11159 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11160 # A "../" for each directory in $ac_dir_suffix.
11161 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11162else
11163 ac_dir_suffix= ac_top_builddir=
11164fi
11165
11166case $srcdir in
11167 .) # No --srcdir option. We are building in place.
11168 ac_srcdir=.
11169 if test -z "$ac_top_builddir"; then
11170 ac_top_srcdir=.
11171 else
11172 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11173 fi ;;
11174 [\\/]* | ?:[\\/]* ) # Absolute path.
11175 ac_srcdir=$srcdir$ac_dir_suffix;
11176 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011177 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11180esac
11181
11182# Do not use `cd foo && pwd` to compute absolute paths, because
11183# the directories may not exist.
11184case `pwd` in
11185.) ac_abs_builddir="$ac_dir";;
11186*)
11187 case "$ac_dir" in
11188 .) ac_abs_builddir=`pwd`;;
11189 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11190 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11191 esac;;
11192esac
11193case $ac_abs_builddir in
11194.) ac_abs_top_builddir=${ac_top_builddir}.;;
11195*)
11196 case ${ac_top_builddir}. in
11197 .) ac_abs_top_builddir=$ac_abs_builddir;;
11198 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11199 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11200 esac;;
11201esac
11202case $ac_abs_builddir in
11203.) ac_abs_srcdir=$ac_srcdir;;
11204*)
11205 case $ac_srcdir in
11206 .) ac_abs_srcdir=$ac_abs_builddir;;
11207 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11208 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11209 esac;;
11210esac
11211case $ac_abs_builddir in
11212.) ac_abs_top_srcdir=$ac_top_srcdir;;
11213*)
11214 case $ac_top_srcdir in
11215 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11216 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11217 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11218 esac;;
11219esac
11220
11221
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011222
11223 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011224 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011225echo "$as_me: creating $ac_file" >&6;}
11226 rm -f "$ac_file"
11227 fi
11228 # Let's still pretend it is `configure' which instantiates (i.e., don't
11229 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011230 # /* config.h. Generated by config.status. */
11231 if test x"$ac_file" = x-; then
11232 configure_input=
11233 else
11234 configure_input="$ac_file. "
11235 fi
11236 configure_input=$configure_input"Generated from `echo $ac_file_in |
11237 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011238
11239 # First look for the input files in the build tree, otherwise in the
11240 # src tree.
11241 ac_file_inputs=`IFS=:
11242 for f in $ac_file_in; do
11243 case $f in
11244 -) echo $tmp/stdin ;;
11245 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011246 # Absolute (can't be DOS-style, as IFS=:)
11247 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011248echo "$as_me: error: cannot find input file: $f" >&2;}
11249 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011250 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011251 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011252 if test -f "$f"; then
11253 # Build tree
11254 echo "$f"
11255 elif test -f "$srcdir/$f"; then
11256 # Source tree
11257 echo "$srcdir/$f"
11258 else
11259 # /dev/null tree
11260 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011261echo "$as_me: error: cannot find input file: $f" >&2;}
11262 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011263 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011264 esac
11265 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011266_ACEOF
11267cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011268 sed "$ac_vpsub
11269$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011270_ACEOF
11271cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011272:t
11273/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11274s,@configure_input@,$configure_input,;t t
11275s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011276s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011277s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011278s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11279s,@builddir@,$ac_builddir,;t t
11280s,@abs_builddir@,$ac_abs_builddir,;t t
11281s,@top_builddir@,$ac_top_builddir,;t t
11282s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011283" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11284 rm -f $tmp/stdin
11285 if test x"$ac_file" != x-; then
11286 mv $tmp/out $ac_file
11287 else
11288 cat $tmp/out
11289 rm -f $tmp/out
11290 fi
11291
11292done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011293_ACEOF
11294cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011295
11296#
11297# CONFIG_HEADER section.
11298#
11299
11300# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11301# NAME is the cpp macro being defined and VALUE is the value it is being given.
11302#
11303# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011304ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11305ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011306ac_dC=' '
11307ac_dD=',;t'
11308# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011309ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011310ac_uB='$,\1#\2define\3'
11311ac_uC=' '
11312ac_uD=',;t'
11313
11314for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11315 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11316 case $ac_file in
11317 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011318 cat >$tmp/stdin
11319 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011321 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011322 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011323 * ) ac_file_in=$ac_file.in ;;
11324 esac
11325
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011326 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011327echo "$as_me: creating $ac_file" >&6;}
11328
11329 # First look for the input files in the build tree, otherwise in the
11330 # src tree.
11331 ac_file_inputs=`IFS=:
11332 for f in $ac_file_in; do
11333 case $f in
11334 -) echo $tmp/stdin ;;
11335 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011336 # Absolute (can't be DOS-style, as IFS=:)
11337 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011338echo "$as_me: error: cannot find input file: $f" >&2;}
11339 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011340 # Do quote $f, to prevent DOS paths from being IFS'd.
11341 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011342 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011343 if test -f "$f"; then
11344 # Build tree
11345 echo "$f"
11346 elif test -f "$srcdir/$f"; then
11347 # Source tree
11348 echo "$srcdir/$f"
11349 else
11350 # /dev/null tree
11351 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011352echo "$as_me: error: cannot find input file: $f" >&2;}
11353 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011354 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011355 esac
11356 done` || { (exit 1); exit 1; }
11357 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011358 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011359
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011360_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011361
11362# Transform confdefs.h into two sed scripts, `conftest.defines' and
11363# `conftest.undefs', that substitutes the proper values into
11364# config.h.in to produce config.h. The first handles `#define'
11365# templates, and the second `#undef' templates.
11366# And first: Protect against being on the right side of a sed subst in
11367# config.status. Protect against being in an unquoted here document
11368# in config.status.
11369rm -f conftest.defines conftest.undefs
11370# Using a here document instead of a string reduces the quoting nightmare.
11371# Putting comments in sed scripts is not portable.
11372#
11373# `end' is used to avoid that the second main sed command (meant for
11374# 0-ary CPP macros) applies to n-ary macro definitions.
11375# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011376cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011377s/[\\&,]/\\&/g
11378s,[\\$`],\\&,g
11379t clear
11380: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011381s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011382t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011383s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011384: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011385_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011386# If some macros were called several times there might be several times
11387# the same #defines, which is useless. Nevertheless, we may not want to
11388# sort them, since we want the *last* AC-DEFINE to be honored.
11389uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11390sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11391rm -f confdef2sed.sed
11392
11393# This sed command replaces #undef with comments. This is necessary, for
11394# example, in the case of _POSIX_SOURCE, which is predefined and required
11395# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011396cat >>conftest.undefs <<\_ACEOF
11397s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11398_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011399
11400# Break up conftest.defines because some shells have a limit on the size
11401# of here documents, and old seds have small limits too (100 cmds).
11402echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011403echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011404echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11405echo ' :' >>$CONFIG_STATUS
11406rm -f conftest.tail
11407while grep . conftest.defines >/dev/null
11408do
11409 # Write a limited-size here document to $tmp/defines.sed.
11410 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11411 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011412 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011413 # Work around the forget-to-reset-the-flag bug.
11414 echo 't clr' >>$CONFIG_STATUS
11415 echo ': clr' >>$CONFIG_STATUS
11416 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11417 echo 'CEOF
11418 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11419 rm -f $tmp/in
11420 mv $tmp/out $tmp/in
11421' >>$CONFIG_STATUS
11422 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11423 rm -f conftest.defines
11424 mv conftest.tail conftest.defines
11425done
11426rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011427echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011428echo >>$CONFIG_STATUS
11429
11430# Break up conftest.undefs because some shells have a limit on the size
11431# of here documents, and old seds have small limits too (100 cmds).
11432echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11433rm -f conftest.tail
11434while grep . conftest.undefs >/dev/null
11435do
11436 # Write a limited-size here document to $tmp/undefs.sed.
11437 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11438 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011439 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011440 # Work around the forget-to-reset-the-flag bug.
11441 echo 't clr' >>$CONFIG_STATUS
11442 echo ': clr' >>$CONFIG_STATUS
11443 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11444 echo 'CEOF
11445 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11446 rm -f $tmp/in
11447 mv $tmp/out $tmp/in
11448' >>$CONFIG_STATUS
11449 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11450 rm -f conftest.undefs
11451 mv conftest.tail conftest.undefs
11452done
11453rm -f conftest.undefs
11454
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011455cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011456 # Let's still pretend it is `configure' which instantiates (i.e., don't
11457 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011458 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011459 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011460 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011461 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011462 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011463 fi
11464 cat $tmp/in >>$tmp/config.h
11465 rm -f $tmp/in
11466 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011467 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11468 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011469echo "$as_me: $ac_file is unchanged" >&6;}
11470 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011471 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11472$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11473 X"$ac_file" : 'X\(//\)[^/]' \| \
11474 X"$ac_file" : 'X\(//\)$' \| \
11475 X"$ac_file" : 'X\(/\)' \| \
11476 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011477echo X"$ac_file" |
11478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11480 /^X\(\/\/\)$/{ s//\1/; q; }
11481 /^X\(\/\).*/{ s//\1/; q; }
11482 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011483 { if $as_mkdir_p; then
11484 mkdir -p "$ac_dir"
11485 else
11486 as_dir="$ac_dir"
11487 as_dirs=
11488 while test ! -d "$as_dir"; do
11489 as_dirs="$as_dir $as_dirs"
11490 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11491$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11492 X"$as_dir" : 'X\(//\)[^/]' \| \
11493 X"$as_dir" : 'X\(//\)$' \| \
11494 X"$as_dir" : 'X\(/\)' \| \
11495 . : '\(.\)' 2>/dev/null ||
11496echo X"$as_dir" |
11497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11499 /^X\(\/\/\)$/{ s//\1/; q; }
11500 /^X\(\/\).*/{ s//\1/; q; }
11501 s/.*/./; q'`
11502 done
11503 test ! -n "$as_dirs" || mkdir $as_dirs
11504 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11505echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11506 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011507
11508 rm -f $ac_file
11509 mv $tmp/config.h $ac_file
11510 fi
11511 else
11512 cat $tmp/config.h
11513 rm -f $tmp/config.h
11514 fi
11515done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011516_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011517
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011518cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011519
11520{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011521_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011522chmod +x $CONFIG_STATUS
11523ac_clean_files=$ac_clean_files_save
11524
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011525
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011526# configure is writing to config.log, and then calls config.status.
11527# config.status does its own redirection, appending to config.log.
11528# Unfortunately, on DOS this fails, as config.log is still kept open
11529# by configure, so config.status won't be able to write to it; its
11530# output is simply discarded. So we exec the FD to /dev/null,
11531# effectively closing config.log, so it can be properly (re)opened and
11532# appended to by config.status. When coming back to configure, we
11533# need to make the FD available again.
11534if test "$no_create" != yes; then
11535 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011536 ac_config_status_args=
11537 test "$silent" = yes &&
11538 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011539 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011541 exec 5>>config.log
11542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11543 # would make configure fail if this is the last instruction.
11544 $ac_cs_success || { (exit 1); exit 1; }
11545fi
11546
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011547
Benny Prijonod9627842007-04-18 09:24:31 +000011548
11549echo "$as_me:$LINENO: result:
11550
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011551Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
Benny Prijonod9627842007-04-18 09:24:31 +000011552
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011553Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000011554 - 'user.mak'
11555 - 'pjlib/include/pj/config_site.h'
11556
11557The next step now is to run 'make dep' and 'make'.
11558" >&5
11559echo "${ECHO_T}
11560
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011561Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
Benny Prijonod9627842007-04-18 09:24:31 +000011562
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011563Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000011564 - 'user.mak'
11565 - 'pjlib/include/pj/config_site.h'
11566
11567The next step now is to run 'make dep' and 'make'.
11568" >&6
11569