blob: cd86da5241a4e4353ab24b12cc6324c79ce3e62c [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 Prijono7e0d75f2006-12-25 20:34:14 +00005702if test "${ac_cv_header_setjmp_h+set}" = set; then
5703 echo "$as_me:$LINENO: checking for setjmp.h" >&5
5704echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5705if test "${ac_cv_header_setjmp_h+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707fi
5708echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5709echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5710else
5711 # Is the header compilable?
5712echo "$as_me:$LINENO: checking setjmp.h usability" >&5
5713echo $ECHO_N "checking setjmp.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 <setjmp.h>
5722_ACEOF
5723rm -f conftest.$ac_objext
5724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005726 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005727 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005728 rm -f conftest.er1
5729 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005730 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 setjmp.h presence" >&5
5758echo $ECHO_N "checking setjmp.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 <setjmp.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
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005774 (exit $ac_status); } >/dev/null; then
5775 if test -s conftest.err; then
5776 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005778 else
5779 ac_cpp_err=
5780 fi
5781else
5782 ac_cpp_err=yes
5783fi
5784if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005785 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005786else
5787 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005791fi
5792rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5794echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005795
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005796# 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: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5800echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
5802echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
5803 ac_header_preproc=yes
5804 ;;
5805 no:yes:* )
5806 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
5807echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
5808 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
5809echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
5810 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
5811echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
5812 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
5813echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
5815echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
5817echo "$as_me: WARNING: setjmp.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 setjmp.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005829echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5830if test "${ac_cv_header_setjmp_h+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005832else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005833 ac_cv_header_setjmp_h=$ac_header_preproc
5834fi
5835echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5836echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5837
5838fi
5839if test $ac_cv_header_setjmp_h = yes; then
5840 cat >>confdefs.h <<\_ACEOF
5841#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005842_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005843
5844fi
5845
5846
5847if test "${ac_cv_header_stdarg_h+set}" = set; then
5848 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5849echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5850if test "${ac_cv_header_stdarg_h+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852fi
5853echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5854echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5855else
5856 # Is the header compilable?
5857echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5858echo $ECHO_N "checking stdarg.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 <stdarg.h>
5867_ACEOF
5868rm -f conftest.$ac_objext
5869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005871 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005872 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005873 rm -f conftest.er1
5874 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005875 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 stdarg.h presence" >&5
5903echo $ECHO_N "checking stdarg.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 <stdarg.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
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005919 (exit $ac_status); } >/dev/null; then
5920 if test -s conftest.err; then
5921 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005923 else
5924 ac_cpp_err=
5925 fi
5926else
5927 ac_cpp_err=yes
5928fi
5929if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005930 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005931else
5932 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005936fi
5937rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5939echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005940
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005941# 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: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5945echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5947echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5948 ac_header_preproc=yes
5949 ;;
5950 no:yes:* )
5951 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5952echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5954echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5956echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5958echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5960echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5961 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5962echo "$as_me: WARNING: stdarg.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 stdarg.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005974echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5975if test "${ac_cv_header_stdarg_h+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005977else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005978 ac_cv_header_stdarg_h=$ac_header_preproc
5979fi
5980echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5981echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5982
5983fi
5984if test $ac_cv_header_stdarg_h = yes; then
5985 cat >>confdefs.h <<\_ACEOF
5986#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005987_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005988
5989fi
5990
5991
5992if test "${ac_cv_header_stddef_h+set}" = set; then
5993 echo "$as_me:$LINENO: checking for stddef.h" >&5
5994echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5995if test "${ac_cv_header_stddef_h+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997fi
5998echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5999echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
6000else
6001 # Is the header compilable?
6002echo "$as_me:$LINENO: checking stddef.h usability" >&5
6003echo $ECHO_N "checking stddef.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 <stddef.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 stddef.h presence" >&5
6048echo $ECHO_N "checking stddef.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 <stddef.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: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6090echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6092echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6093 ac_header_preproc=yes
6094 ;;
6095 no:yes:* )
6096 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6097echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6099echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6101echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6103echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6105echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6107echo "$as_me: WARNING: stddef.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 stddef.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006119echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
6120if test "${ac_cv_header_stddef_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_stddef_h=$ac_header_preproc
6124fi
6125echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6126echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
6127
6128fi
6129if test $ac_cv_header_stddef_h = yes; then
6130 cat >>confdefs.h <<\_ACEOF
6131#define PJ_HAS_STDDEF_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_stdio_h+set}" = set; then
6138 echo "$as_me:$LINENO: checking for stdio.h" >&5
6139echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6140if test "${ac_cv_header_stdio_h+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142fi
6143echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6144echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6145else
6146 # Is the header compilable?
6147echo "$as_me:$LINENO: checking stdio.h usability" >&5
6148echo $ECHO_N "checking stdio.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 <stdio.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 stdio.h presence" >&5
6193echo $ECHO_N "checking stdio.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 <stdio.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: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6235echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6237echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6238 ac_header_preproc=yes
6239 ;;
6240 no:yes:* )
6241 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6242echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6244echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6246echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6248echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6250echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6252echo "$as_me: WARNING: stdio.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 stdio.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006264echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6265if test "${ac_cv_header_stdio_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_stdio_h=$ac_header_preproc
6269fi
6270echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6271echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6272
6273fi
6274if test $ac_cv_header_stdio_h = yes; then
6275 cat >>confdefs.h <<\_ACEOF
6276#define PJ_HAS_STDIO_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_stdlib_h+set}" = set; then
6283 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6284echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6285if test "${ac_cv_header_stdlib_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287fi
6288echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6289echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6290else
6291 # Is the header compilable?
6292echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6293echo $ECHO_N "checking stdlib.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 <stdlib.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 stdlib.h presence" >&5
6338echo $ECHO_N "checking stdlib.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 <stdlib.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: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6380echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6382echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6383 ac_header_preproc=yes
6384 ;;
6385 no:yes:* )
6386 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6387echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6389echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6391echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6393echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6395echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6397echo "$as_me: WARNING: stdlib.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 stdlib.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006409echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6410if test "${ac_cv_header_stdlib_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_stdlib_h=$ac_header_preproc
6414fi
6415echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6416echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6417
6418fi
6419if test $ac_cv_header_stdlib_h = yes; then
6420 cat >>confdefs.h <<\_ACEOF
6421#define PJ_HAS_STDLIB_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_string_h+set}" = set; then
6428 echo "$as_me:$LINENO: checking for string.h" >&5
6429echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6430if test "${ac_cv_header_string_h+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432fi
6433echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6434echo "${ECHO_T}$ac_cv_header_string_h" >&6
6435else
6436 # Is the header compilable?
6437echo "$as_me:$LINENO: checking string.h usability" >&5
6438echo $ECHO_N "checking string.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 <string.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 string.h presence" >&5
6483echo $ECHO_N "checking string.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 <string.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: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6525echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6526 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6527echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6528 ac_header_preproc=yes
6529 ;;
6530 no:yes:* )
6531 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6532echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6534echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6536echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6538echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6540echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6542echo "$as_me: WARNING: string.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 string.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006554echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6555if test "${ac_cv_header_string_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_string_h=$ac_header_preproc
6559fi
6560echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6561echo "${ECHO_T}$ac_cv_header_string_h" >&6
6562
6563fi
6564if test $ac_cv_header_string_h = yes; then
6565 cat >>confdefs.h <<\_ACEOF
6566#define PJ_HAS_STRING_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_sys_ioctl_h+set}" = set; then
6573 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
6574echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6575if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577fi
6578echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6579echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6580else
6581 # Is the header compilable?
6582echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
6583echo $ECHO_N "checking sys/ioctl.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 <sys/ioctl.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 sys/ioctl.h presence" >&5
6628echo $ECHO_N "checking sys/ioctl.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 <sys/ioctl.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: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6670echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
6672echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
6673 ac_header_preproc=yes
6674 ;;
6675 no:yes:* )
6676 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
6677echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
6679echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
6681echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
6683echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
6685echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
6687echo "$as_me: WARNING: sys/ioctl.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 sys/ioctl.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006699echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6700if test "${ac_cv_header_sys_ioctl_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_sys_ioctl_h=$ac_header_preproc
6704fi
6705echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6706echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6707
6708fi
6709if test $ac_cv_header_sys_ioctl_h = yes; then
6710 cat >>confdefs.h <<\_ACEOF
6711#define PJ_HAS_SYS_IOCTL_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_sys_select_h+set}" = set; then
6718 echo "$as_me:$LINENO: checking for sys/select.h" >&5
6719echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6720if test "${ac_cv_header_sys_select_h+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722fi
6723echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6724echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6725else
6726 # Is the header compilable?
6727echo "$as_me:$LINENO: checking sys/select.h usability" >&5
6728echo $ECHO_N "checking sys/select.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 <sys/select.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 sys/select.h presence" >&5
6773echo $ECHO_N "checking sys/select.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 <sys/select.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: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
6815echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
6817echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
6818 ac_header_preproc=yes
6819 ;;
6820 no:yes:* )
6821 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
6822echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
6823 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
6824echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
6825 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
6826echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
6828echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
6830echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
6832echo "$as_me: WARNING: sys/select.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 sys/select.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006844echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6845if test "${ac_cv_header_sys_select_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_sys_select_h=$ac_header_preproc
6849fi
6850echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6851echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6852
6853fi
6854if test $ac_cv_header_sys_select_h = yes; then
6855 cat >>confdefs.h <<\_ACEOF
6856#define PJ_HAS_SYS_SELECT_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_socket_h+set}" = set; then
6863 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6864echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6865if test "${ac_cv_header_sys_socket_h+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867fi
6868echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6869echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6870else
6871 # Is the header compilable?
6872echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
6873echo $ECHO_N "checking sys/socket.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/socket.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/socket.h presence" >&5
6918echo $ECHO_N "checking sys/socket.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/socket.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/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6960echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6961 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6962echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6963 ac_header_preproc=yes
6964 ;;
6965 no:yes:* )
6966 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6967echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
6969echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6971echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
6973echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6975echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6977echo "$as_me: WARNING: sys/socket.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/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006989echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6990if test "${ac_cv_header_sys_socket_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_socket_h=$ac_header_preproc
6994fi
6995echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6996echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6997
6998fi
6999if test $ac_cv_header_sys_socket_h = yes; then
7000 cat >>confdefs.h <<\_ACEOF
7001#define PJ_HAS_SYS_SOCKET_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_time_h+set}" = set; then
7008 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7009echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7010if test "${ac_cv_header_sys_time_h+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012fi
7013echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7014echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7015else
7016 # Is the header compilable?
7017echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7018echo $ECHO_N "checking sys/time.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/time.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/time.h presence" >&5
7063echo $ECHO_N "checking sys/time.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/time.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/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7105echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7106 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7107echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7108 ac_header_preproc=yes
7109 ;;
7110 no:yes:* )
7111 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7112echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7114echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7115 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7116echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7118echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7119 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7120echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7121 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7122echo "$as_me: WARNING: sys/time.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/time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007134echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7135if test "${ac_cv_header_sys_time_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_time_h=$ac_header_preproc
7139fi
7140echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7141echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7142
7143fi
7144if test $ac_cv_header_sys_time_h = yes; then
7145 cat >>confdefs.h <<\_ACEOF
7146#define PJ_HAS_SYS_TIME_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_timeb_h+set}" = set; then
7153 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7154echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7155if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157fi
7158echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7159echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7160else
7161 # Is the header compilable?
7162echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7163echo $ECHO_N "checking sys/timeb.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/timeb.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/timeb.h presence" >&5
7208echo $ECHO_N "checking sys/timeb.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/timeb.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/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7250echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7252echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7253 ac_header_preproc=yes
7254 ;;
7255 no:yes:* )
7256 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7257echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7259echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7261echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7263echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7265echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7267echo "$as_me: WARNING: sys/timeb.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/timeb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007279echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7280if test "${ac_cv_header_sys_timeb_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_timeb_h=$ac_header_preproc
7284fi
7285echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7286echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7287
7288fi
7289if test $ac_cv_header_sys_timeb_h = yes; then
7290 cat >>confdefs.h <<\_ACEOF
7291#define PJ_HAS_SYS_TIMEB_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_types_h+set}" = set; then
7298 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7299echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7300if test "${ac_cv_header_sys_types_h+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302fi
7303echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7304echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7305else
7306 # Is the header compilable?
7307echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7308echo $ECHO_N "checking sys/types.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/types.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/types.h presence" >&5
7353echo $ECHO_N "checking sys/types.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/types.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/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7395echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7397echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7398 ac_header_preproc=yes
7399 ;;
7400 no:yes:* )
7401 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7402echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7403 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7404echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7405 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7406echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7408echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7410echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7412echo "$as_me: WARNING: sys/types.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/types.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007424echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7425if test "${ac_cv_header_sys_types_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_types_h=$ac_header_preproc
7429fi
7430echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7431echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7432
7433fi
7434if test $ac_cv_header_sys_types_h = yes; then
7435 cat >>confdefs.h <<\_ACEOF
7436#define PJ_HAS_SYS_TYPES_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_time_h+set}" = set; then
7443 echo "$as_me:$LINENO: checking for time.h" >&5
7444echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7445if test "${ac_cv_header_time_h+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447fi
7448echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7449echo "${ECHO_T}$ac_cv_header_time_h" >&6
7450else
7451 # Is the header compilable?
7452echo "$as_me:$LINENO: checking time.h usability" >&5
7453echo $ECHO_N "checking time.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 <time.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 time.h presence" >&5
7498echo $ECHO_N "checking time.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 <time.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: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7540echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
7542echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
7543 ac_header_preproc=yes
7544 ;;
7545 no:yes:* )
7546 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
7547echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
7549echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
7551echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
7553echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
7555echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
7557echo "$as_me: WARNING: time.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 time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007569echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7570if test "${ac_cv_header_time_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_time_h=$ac_header_preproc
7574fi
7575echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7576echo "${ECHO_T}$ac_cv_header_time_h" >&6
7577
7578fi
7579if test $ac_cv_header_time_h = yes; then
7580 cat >>confdefs.h <<\_ACEOF
7581#define PJ_HAS_TIME_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_unistd_h+set}" = set; then
7588 echo "$as_me:$LINENO: checking for unistd.h" >&5
7589echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7590if test "${ac_cv_header_unistd_h+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592fi
7593echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7594echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7595else
7596 # Is the header compilable?
7597echo "$as_me:$LINENO: checking unistd.h usability" >&5
7598echo $ECHO_N "checking unistd.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 <unistd.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 unistd.h presence" >&5
7643echo $ECHO_N "checking unistd.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 <unistd.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: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
7685echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
7687echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
7688 ac_header_preproc=yes
7689 ;;
7690 no:yes:* )
7691 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
7692echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
7694echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
7696echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
7698echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
7700echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
7702echo "$as_me: WARNING: unistd.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 unistd.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007714echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7715if test "${ac_cv_header_unistd_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_unistd_h=$ac_header_preproc
7719fi
7720echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7721echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7722
7723fi
7724if test $ac_cv_header_unistd_h = yes; then
7725 cat >>confdefs.h <<\_ACEOF
7726#define PJ_HAS_UNISTD_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_mswsock_h+set}" = set; then
7733 echo "$as_me:$LINENO: checking for mswsock.h" >&5
7734echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7735if test "${ac_cv_header_mswsock_h+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737fi
7738echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7739echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7740else
7741 # Is the header compilable?
7742echo "$as_me:$LINENO: checking mswsock.h usability" >&5
7743echo $ECHO_N "checking mswsock.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 <mswsock.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 mswsock.h presence" >&5
7788echo $ECHO_N "checking mswsock.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 <mswsock.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: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7830echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7831 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
7832echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
7833 ac_header_preproc=yes
7834 ;;
7835 no:yes:* )
7836 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
7837echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
7839echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
7841echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
7843echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
7845echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
7847echo "$as_me: WARNING: mswsock.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 mswsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007859echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7860if test "${ac_cv_header_mswsock_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_mswsock_h=$ac_header_preproc
7864fi
7865echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7866echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7867
7868fi
7869if test $ac_cv_header_mswsock_h = yes; then
7870 cat >>confdefs.h <<\_ACEOF
7871#define PJ_HAS_MSWSOCK_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_winsock_h+set}" = set; then
7878 echo "$as_me:$LINENO: checking for winsock.h" >&5
7879echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7880if test "${ac_cv_header_winsock_h+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882fi
7883echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7884echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7885else
7886 # Is the header compilable?
7887echo "$as_me:$LINENO: checking winsock.h usability" >&5
7888echo $ECHO_N "checking winsock.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 <winsock.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 winsock.h presence" >&5
7933echo $ECHO_N "checking winsock.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 <winsock.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: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7975echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7976 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
7977echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
7978 ac_header_preproc=yes
7979 ;;
7980 no:yes:* )
7981 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
7982echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
7984echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
7986echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
7988echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
7990echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
7992echo "$as_me: WARNING: winsock.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 winsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008004echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
8005if test "${ac_cv_header_winsock_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_winsock_h=$ac_header_preproc
8009fi
8010echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8011echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
8012
8013fi
8014if test $ac_cv_header_winsock_h = yes; then
8015 cat >>confdefs.h <<\_ACEOF
8016#define PJ_HAS_WINSOCK_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_winsock2_h+set}" = set; then
8023 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8024echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8025if test "${ac_cv_header_winsock2_h+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027fi
8028echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8029echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
8030else
8031 # Is the header compilable?
8032echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8033echo $ECHO_N "checking winsock2.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 <winsock2.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 winsock2.h presence" >&5
8078echo $ECHO_N "checking winsock2.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 <winsock2.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: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8120echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8122echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8123 ac_header_preproc=yes
8124 ;;
8125 no:yes:* )
8126 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8127echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8129echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8131echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8133echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8135echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8137echo "$as_me: WARNING: winsock2.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 winsock2.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008149echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8150if test "${ac_cv_header_winsock2_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_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008154fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008155echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008156echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008157
8158fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008159if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008160 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008161#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008162_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008163
8164fi
8165
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008166
Benny Prijono4e48b512007-05-16 13:41:00 +00008167if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8168 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8169echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8170if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172fi
8173echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8174echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8175else
8176 # Is the header compilable?
8177echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8178echo $ECHO_N "checking uuid/uuid.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 <uuid/uuid.h>
8187_ACEOF
8188rm -f conftest.$ac_objext
8189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 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 uuid/uuid.h presence" >&5
8223echo $ECHO_N "checking uuid/uuid.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 <uuid/uuid.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
8239 (exit $ac_status); } >/dev/null; then
8240 if test -s conftest.err; then
8241 ac_cpp_err=$ac_c_preproc_warn_flag
8242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8243 else
8244 ac_cpp_err=
8245 fi
8246else
8247 ac_cpp_err=yes
8248fi
8249if test -z "$ac_cpp_err"; then
8250 ac_header_preproc=yes
8251else
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_header_preproc=no
8256fi
8257rm -f conftest.err conftest.$ac_ext
8258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8259echo "${ECHO_T}$ac_header_preproc" >&6
8260
8261# 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: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8265echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8267echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8268 ac_header_preproc=yes
8269 ;;
8270 no:yes:* )
8271 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8272echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8274echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8276echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8278echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8280echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8282echo "$as_me: WARNING: uuid/uuid.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 uuid/uuid.h" >&5
8294echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8295if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 ac_cv_header_uuid_uuid_h=$ac_header_preproc
8299fi
8300echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8301echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8302
8303fi
8304if test $ac_cv_header_uuid_uuid_h = yes; then
8305 ac_has_uuid_h=1
8306fi
8307
8308
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008309
8310echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008311echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008312cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008313#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008314_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008315
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008316
8317echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008318echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008319cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008320#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008321_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008322
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008323
8324echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008325echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008326cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008327#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008328_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008329
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008330
8331echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008332echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008333cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008334#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008335_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008336
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008337
8338echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008339echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008340cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008341#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008342_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008343
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008344
8345echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008346echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008347cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008348#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008349_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008350
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008351
8352echo "$as_me:$LINENO: checking if inet_aton is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008353echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
8354cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008355/* confdefs.h. */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008360#include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008361int
8362main ()
8363{
8364inet_aton(0, 0);
8365 ;
8366 return 0;
8367}
8368_ACEOF
8369rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8371 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008372 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008377 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008378 { ac_try='test -z "$ac_c_werror_flag"
8379 || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008381 (eval $ac_try) 2>&5
8382 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try='test -s conftest.$ac_objext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008390 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008391 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008392#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008393_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008394
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008395 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008396echo "${ECHO_T}yes" >&6
8397else
8398 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008399sed 's/^/| /' conftest.$ac_ext >&5
8400
8401echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008402echo "${ECHO_T}no" >&6
8403fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008405
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008406echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008407echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
8408cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008414#include <sys/types.h>
8415 #include <sys/socket.h>
8416 #include <netinet/in.h>
8417 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008418int
8419main ()
8420{
8421struct sockaddr_in a; a.sin_len=0;
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008429 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008434 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008435 { ac_try='test -z "$ac_c_werror_flag"
8436 || test ! -s conftest.err'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008438 (eval $ac_try) 2>&5
8439 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 (eval $ac_try) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008447 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008448 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008449#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008450_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008451
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008452 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008453echo "${ECHO_T}yes" >&6
8454else
8455 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008456sed 's/^/| /' conftest.$ac_ext >&5
8457
8458echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008459echo "${ECHO_T}no" >&6
8460fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008462
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008463echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008464echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8465cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008466/* confdefs.h. */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008471#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008472int
8473main ()
8474{
8475socklen_t xxx = 0;
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8482 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008483 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008488 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008492 (eval $ac_try) 2>&5
8493 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest.$ac_objext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008501 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008502 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008503#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008504_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008505
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008506 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008507echo "${ECHO_T}yes" >&6
8508else
8509 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008510sed 's/^/| /' conftest.$ac_ext >&5
8511
8512echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008513echo "${ECHO_T}no" >&6
8514fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008516
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008517echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008518echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008519case $target in
8520 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008521 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008522#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008523_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008524
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008525 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008526echo "${ECHO_T}yes" >&6
8527 ;;
8528 *)
8529 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008530/* confdefs.h. */
8531_ACEOF
8532cat confdefs.h >>conftest.$ac_ext
8533cat >>conftest.$ac_ext <<_ACEOF
8534/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008535#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008536 #include <sys/socket.h>
8537 #include <netinet/in.h>
8538 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008539int
8540main ()
8541{
8542int i=SO_ERROR;
8543 ;
8544 return 0;
8545}
8546_ACEOF
8547rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8549 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008550 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008555 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008556 { ac_try='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008559 (eval $ac_try) 2>&5
8560 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest.$ac_objext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 (eval $ac_try) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008568 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008569 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008570#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008571_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008572
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008573 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008574echo "${ECHO_T}yes" >&6
8575else
8576 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008577sed 's/^/| /' conftest.$ac_ext >&5
8578
8579echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008580echo "${ECHO_T}no" >&6
8581fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008583 ;;
8584esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008585
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008586
8587echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008588echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
8589cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008590/* confdefs.h. */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
8594/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008595#include <pthread.h>
8596int
8597main ()
8598{
8599pthread_rwlock_t *x;
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008607 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008612 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008616 (eval $ac_try) 2>&5
8617 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008625 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008626 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008627#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008628_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008629
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008630 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008631echo "${ECHO_T}yes" >&6
8632else
8633 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008634sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008635
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008636cat >>confdefs.h <<\_ACEOF
8637#define PJ_EMULATE_RWMUTEX 1
8638_ACEOF
8639
8640 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008641echo "${ECHO_T}no" >&6
8642fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8644
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008645
8646case $target in
8647 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00008648 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 +00008649 ;;
8650 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00008651 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"
8652 # UUID
8653 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
8654 ac_os_objs="$ac_os_objs guid_uuid.o"
8655 else
8656 ac_os_objs="$ac_os_objs guid_simple.o"
8657 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008658 ;;
8659esac
8660
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008661
8662
8663
Benny Prijono4e48b512007-05-16 13:41:00 +00008664
Benny Prijono1d971622006-09-10 22:27:40 +00008665# Check whether --enable-sound or --disable-sound was given.
8666if test "${enable_sound+set}" = set; then
8667 enableval="$enable_sound"
8668 if test "$enable_sound" = "no"; then
8669 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008670 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00008671echo "${ECHO_T}Checking if sound is disabled... yes" >&6
8672 fi
8673
8674fi;
8675
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008676
Benny Prijono27c98722007-04-09 21:28:15 +00008677if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8678 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8679echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8680if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8682fi
8683echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8684echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8685else
8686 # Is the header compilable?
8687echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
8688echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
8689cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h. */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h. */
8695$ac_includes_default
8696#include <sys/soundcard.h>
8697_ACEOF
8698rm -f conftest.$ac_objext
8699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700 (eval $ac_compile) 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag"
8708 || test ! -s conftest.err'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest.$ac_objext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_header_compiler=yes
8721else
8722 echo "$as_me: failed program was:" >&5
8723sed 's/^/| /' conftest.$ac_ext >&5
8724
8725ac_header_compiler=no
8726fi
8727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8728echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8729echo "${ECHO_T}$ac_header_compiler" >&6
8730
8731# Is the header present?
8732echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
8733echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
8734cat >conftest.$ac_ext <<_ACEOF
8735/* confdefs.h. */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h. */
8740#include <sys/soundcard.h>
8741_ACEOF
8742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } >/dev/null; then
8750 if test -s conftest.err; then
8751 ac_cpp_err=$ac_c_preproc_warn_flag
8752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8753 else
8754 ac_cpp_err=
8755 fi
8756else
8757 ac_cpp_err=yes
8758fi
8759if test -z "$ac_cpp_err"; then
8760 ac_header_preproc=yes
8761else
8762 echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765 ac_header_preproc=no
8766fi
8767rm -f conftest.err conftest.$ac_ext
8768echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8769echo "${ECHO_T}$ac_header_preproc" >&6
8770
8771# So? What about this header?
8772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8773 yes:no: )
8774 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8775echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
8777echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
8778 ac_header_preproc=yes
8779 ;;
8780 no:yes:* )
8781 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
8782echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
8784echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
8786echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8788echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
8790echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
8792echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
8793 (
8794 cat <<\_ASBOX
8795## ------------------------------------ ##
8796## Report this to the pjproject lists. ##
8797## ------------------------------------ ##
8798_ASBOX
8799 ) |
8800 sed "s/^/$as_me: WARNING: /" >&2
8801 ;;
8802esac
8803echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8804echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8805if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808 ac_cv_header_sys_soundcard_h=$ac_header_preproc
8809fi
8810echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8811echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8812
8813fi
8814if test $ac_cv_header_sys_soundcard_h = yes; then
8815 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
8816fi
8817
8818
8819if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8820 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8821echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8822if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824fi
8825echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8826echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8827else
8828 # Is the header compilable?
8829echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
8830echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
8831cat >conftest.$ac_ext <<_ACEOF
8832/* confdefs.h. */
8833_ACEOF
8834cat confdefs.h >>conftest.$ac_ext
8835cat >>conftest.$ac_ext <<_ACEOF
8836/* end confdefs.h. */
8837$ac_includes_default
8838#include <linux/soundcard.h>
8839_ACEOF
8840rm -f conftest.$ac_objext
8841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842 (eval $ac_compile) 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag"
8850 || test ! -s conftest.err'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest.$ac_objext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 (eval $ac_try) 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_header_compiler=yes
8863else
8864 echo "$as_me: failed program was:" >&5
8865sed 's/^/| /' conftest.$ac_ext >&5
8866
8867ac_header_compiler=no
8868fi
8869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8871echo "${ECHO_T}$ac_header_compiler" >&6
8872
8873# Is the header present?
8874echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
8875echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
8876cat >conftest.$ac_ext <<_ACEOF
8877/* confdefs.h. */
8878_ACEOF
8879cat confdefs.h >>conftest.$ac_ext
8880cat >>conftest.$ac_ext <<_ACEOF
8881/* end confdefs.h. */
8882#include <linux/soundcard.h>
8883_ACEOF
8884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } >/dev/null; then
8892 if test -s conftest.err; then
8893 ac_cpp_err=$ac_c_preproc_warn_flag
8894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8895 else
8896 ac_cpp_err=
8897 fi
8898else
8899 ac_cpp_err=yes
8900fi
8901if test -z "$ac_cpp_err"; then
8902 ac_header_preproc=yes
8903else
8904 echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_header_preproc=no
8908fi
8909rm -f conftest.err conftest.$ac_ext
8910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8911echo "${ECHO_T}$ac_header_preproc" >&6
8912
8913# So? What about this header?
8914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8915 yes:no: )
8916 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8917echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8918 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
8919echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
8920 ac_header_preproc=yes
8921 ;;
8922 no:yes:* )
8923 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
8924echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
8926echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
8928echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8930echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8931 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
8932echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
8933 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
8934echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
8935 (
8936 cat <<\_ASBOX
8937## ------------------------------------ ##
8938## Report this to the pjproject lists. ##
8939## ------------------------------------ ##
8940_ASBOX
8941 ) |
8942 sed "s/^/$as_me: WARNING: /" >&2
8943 ;;
8944esac
8945echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8946echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8947if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
8950 ac_cv_header_linux_soundcard_h=$ac_header_preproc
8951fi
8952echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8953echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8954
8955fi
8956if test $ac_cv_header_linux_soundcard_h = yes; then
8957 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
8958fi
8959
8960
8961if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8962 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
8963echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
8964if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966fi
8967echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
8968echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
8969else
8970 # Is the header compilable?
8971echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
8972echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
8973cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h. */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h. */
8979$ac_includes_default
8980#include <machine/soundcard.h>
8981_ACEOF
8982rm -f conftest.$ac_objext
8983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984 (eval $ac_compile) 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag"
8992 || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_header_compiler=yes
9005else
9006 echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
9009ac_header_compiler=no
9010fi
9011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013echo "${ECHO_T}$ac_header_compiler" >&6
9014
9015# Is the header present?
9016echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9017echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
9018cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
9023/* end confdefs.h. */
9024#include <machine/soundcard.h>
9025_ACEOF
9026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } >/dev/null; then
9034 if test -s conftest.err; then
9035 ac_cpp_err=$ac_c_preproc_warn_flag
9036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9037 else
9038 ac_cpp_err=
9039 fi
9040else
9041 ac_cpp_err=yes
9042fi
9043if test -z "$ac_cpp_err"; then
9044 ac_header_preproc=yes
9045else
9046 echo "$as_me: failed program was:" >&5
9047sed 's/^/| /' conftest.$ac_ext >&5
9048
9049 ac_header_preproc=no
9050fi
9051rm -f conftest.err conftest.$ac_ext
9052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053echo "${ECHO_T}$ac_header_preproc" >&6
9054
9055# So? What about this header?
9056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9057 yes:no: )
9058 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9059echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9061echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9062 ac_header_preproc=yes
9063 ;;
9064 no:yes:* )
9065 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9066echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9068echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9070echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9072echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9074echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9076echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
9077 (
9078 cat <<\_ASBOX
9079## ------------------------------------ ##
9080## Report this to the pjproject lists. ##
9081## ------------------------------------ ##
9082_ASBOX
9083 ) |
9084 sed "s/^/$as_me: WARNING: /" >&2
9085 ;;
9086esac
9087echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9088echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9089if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091else
9092 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9093fi
9094echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9095echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9096
9097fi
9098if test $ac_cv_header_machine_soundcard_h = yes; then
9099 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
9100fi
9101
9102
9103
Benny Prijono1d971622006-09-10 22:27:40 +00009104if test "$enable_sound" = "no"; then
9105 true;
9106else
9107 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00009108 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00009109 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
9110 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009111 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00009112 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
9113 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009114 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00009115echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
9116 else
9117 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009118 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00009119echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00009120 fi
Benny Prijonob466e232006-09-10 08:53:59 +00009121 ;;
9122 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009123 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009124 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009125echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
9126 ;;
9127 *rtems*)
9128 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009129 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009130echo "${ECHO_T}Checking sound device backend... null sound" >&6
9131 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009132 *)
9133 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009134 if test "${ac_cv_header_alsa_version_h+set}" = set; then
9135 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009136echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9137if test "${ac_cv_header_alsa_version_h+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009139fi
9140echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
9141echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009142else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009143 # Is the header compilable?
9144echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
9145echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
9146cat >conftest.$ac_ext <<_ACEOF
9147/* confdefs.h. */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h. */
9152$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009153#include <alsa/version.h>
9154_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009155rm -f conftest.$ac_objext
9156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009158 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009159 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009160 rm -f conftest.er1
9161 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_header_compiler=yes
9178else
9179 echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182ac_header_compiler=no
9183fi
9184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186echo "${ECHO_T}$ac_header_compiler" >&6
9187
9188# Is the header present?
9189echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
9190echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
9191cat >conftest.$ac_ext <<_ACEOF
9192/* confdefs.h. */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h. */
9197#include <alsa/version.h>
9198_ACEOF
9199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009206 (exit $ac_status); } >/dev/null; then
9207 if test -s conftest.err; then
9208 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009210 else
9211 ac_cpp_err=
9212 fi
9213else
9214 ac_cpp_err=yes
9215fi
9216if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009217 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009218else
9219 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009220sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009223fi
9224rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9226echo "${ECHO_T}$ac_header_preproc" >&6
9227
9228# So? What about this header?
9229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9230 yes:no: )
9231 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9232echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
9234echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
9235 ac_header_preproc=yes
9236 ;;
9237 no:yes:* )
9238 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
9239echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
9241echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
9243echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
9245echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
9247echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
9249echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
9250 (
9251 cat <<\_ASBOX
9252## ------------------------------------ ##
9253## Report this to the pjproject lists. ##
9254## ------------------------------------ ##
9255_ASBOX
9256 ) |
9257 sed "s/^/$as_me: WARNING: /" >&2
9258 ;;
9259esac
9260echo "$as_me:$LINENO: checking for alsa/version.h" >&5
9261echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9262if test "${ac_cv_header_alsa_version_h+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264else
9265 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009266fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009267echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009268echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009269
9270fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009271if test $ac_cv_header_alsa_version_h = yes; then
9272 ac_pa_use_alsa=1
9273
9274 LIBS="$LIBS -lasound"
9275
9276else
9277 ac_pa_use_alsa=0
9278
9279fi
9280
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009281
9282 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009283echo "${ECHO_T}Checking sound device backend... unix" >&6
9284 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00009285 esac
9286fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009287
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009288
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009289# Check whether --enable-small-filter or --disable-small-filter was given.
9290if test "${enable_small_filter+set}" = set; then
9291 enableval="$enable_small_filter"
9292 if test "$enable_small_filter" = "no"; then
9293 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009294 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009295echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
9296 fi
9297else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009298 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009299echo "${ECHO_T}Checking if small filter is disabled... no" >&6
9300fi;
9301
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009302
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009303# Check whether --enable-large-filter or --disable-large-filter was given.
9304if test "${enable_large_filter+set}" = set; then
9305 enableval="$enable_large_filter"
9306 if test "$enable_large_filter" = "no"; then
9307 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009308 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009309echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
9310 fi
9311else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009312 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009313echo "${ECHO_T}Checking if large filter is disabled... no" >&6
9314fi;
9315
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009316
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009317# Check whether --enable-speex-aec or --disable-speex-aec was given.
9318if test "${enable_speex_aec+set}" = set; then
9319 enableval="$enable_speex_aec"
9320 if test "$enable_speex_aec" = "no"; then
9321 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009322 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009323echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
9324 fi
9325else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009326 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009327echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
9328fi;
9329
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009330
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009331# Check whether --enable-g711-codec or --disable-g711-codec was given.
9332if test "${enable_g711_codec+set}" = set; then
9333 enableval="$enable_g711_codec"
9334 if test "$enable_g711_codec" = "no"; then
9335 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009336 cat >>confdefs.h <<\_ACEOF
9337#define PJMEDIA_HAS_G711_CODEC 0
9338_ACEOF
9339
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009340 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009341echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
9342 fi
9343else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009344 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009345echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
9346fi;
9347
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009348
9349
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009350# Check whether --enable-l16-codec or --disable-l16-codec was given.
9351if test "${enable_l16_codec+set}" = set; then
9352 enableval="$enable_l16_codec"
9353 if test "$enable_l16_codec" = "no"; then
9354 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009355 cat >>confdefs.h <<\_ACEOF
9356#define PJMEDIA_HAS_L16_CODEC 0
9357_ACEOF
9358
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009359 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009360echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
9361 fi
9362else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009363 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00009364echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009365fi;
9366
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009367
9368
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009369# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
9370if test "${enable_gsm_codec+set}" = set; then
9371 enableval="$enable_gsm_codec"
9372 if test "$enable_gsm_codec" = "no"; then
9373 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009374 cat >>confdefs.h <<\_ACEOF
9375#define PJMEDIA_HAS_GSM_CODEC 0
9376_ACEOF
9377
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009378 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009379echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
9380 fi
9381else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009382 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009383echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
9384fi;
9385
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009386
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009387# Check whether --enable-speex-codec or --disable-speex-codec was given.
9388if test "${enable_speex_codec+set}" = set; then
9389 enableval="$enable_speex_codec"
9390 if test "$enable_speex_codec" = "no"; then
9391 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009392 cat >>confdefs.h <<\_ACEOF
9393#define PJMEDIA_HAS_SPEEX_CODEC 0
9394_ACEOF
9395
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009396 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009397echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
9398 fi
9399else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009400 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009401echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
9402fi;
9403
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009404
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009405# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
9406if test "${enable_ilbc_codec+set}" = set; then
9407 enableval="$enable_ilbc_codec"
9408 if test "$enable_ilbc_codec" = "no"; then
9409 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009410 cat >>confdefs.h <<\_ACEOF
9411#define PJMEDIA_HAS_ILBC_CODEC 0
9412_ACEOF
9413
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009414 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009415echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
9416 fi
9417else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009418 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009419echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
9420fi;
9421
Benny Prijono550a1a62007-10-16 08:54:00 +00009422# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
9423if test "${enable_libsamplerate+set}" = set; then
9424 enableval="$enable_libsamplerate"
9425
9426echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
9427echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
9428if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430else
9431 ac_check_lib_save_LIBS=$LIBS
9432LIBS="-lsamplerate $LIBS"
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
9440/* Override any gcc2 internal prototype to avoid an error. */
9441#ifdef __cplusplus
9442extern "C"
9443#endif
9444/* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446char src_new ();
9447int
9448main ()
9449{
9450src_new ();
9451 ;
9452 return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext conftest$ac_exeext
9456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_lib_samplerate_src_new=yes
9478else
9479 echo "$as_me: failed program was:" >&5
9480sed 's/^/| /' conftest.$ac_ext >&5
9481
9482ac_cv_lib_samplerate_src_new=no
9483fi
9484rm -f conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486LIBS=$ac_check_lib_save_LIBS
9487fi
9488echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
9489echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
9490if test $ac_cv_lib_samplerate_src_new = yes; then
9491 cat >>confdefs.h <<_ACEOF
9492#define HAVE_LIBSAMPLERATE 1
9493_ACEOF
9494
9495 LIBS="-lsamplerate $LIBS"
9496
9497fi
9498
9499else
9500 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
9501echo "${ECHO_T}Skipping libsamplerate detection" >&6
9502
9503fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009504
9505
9506
9507
9508# Check whether --enable-ssl or --disable-ssl was given.
9509if test "${enable_ssl+set}" = set; then
9510 enableval="$enable_ssl"
9511
9512 if test "$enable_ssl" = "no"; then
9513 ac_no_ssl=1
9514 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
9515echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
9516 fi
9517
9518else
9519
9520 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
9521echo "${ECHO_T}checking for OpenSSL installations.." >&6
9522
9523
9524
9525 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9526 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9527echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9528if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530fi
9531echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9532echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9533else
9534 # Is the header compilable?
9535echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9536echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9537cat >conftest.$ac_ext <<_ACEOF
9538/* confdefs.h. */
9539_ACEOF
9540cat confdefs.h >>conftest.$ac_ext
9541cat >>conftest.$ac_ext <<_ACEOF
9542/* end confdefs.h. */
9543$ac_includes_default
9544#include <openssl/ssl.h>
9545_ACEOF
9546rm -f conftest.$ac_objext
9547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548 (eval $ac_compile) 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_header_compiler=yes
9569else
9570 echo "$as_me: failed program was:" >&5
9571sed 's/^/| /' conftest.$ac_ext >&5
9572
9573ac_header_compiler=no
9574fi
9575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9577echo "${ECHO_T}$ac_header_compiler" >&6
9578
9579# Is the header present?
9580echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9581echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9582cat >conftest.$ac_ext <<_ACEOF
9583/* confdefs.h. */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h. */
9588#include <openssl/ssl.h>
9589_ACEOF
9590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } >/dev/null; then
9598 if test -s conftest.err; then
9599 ac_cpp_err=$ac_c_preproc_warn_flag
9600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9601 else
9602 ac_cpp_err=
9603 fi
9604else
9605 ac_cpp_err=yes
9606fi
9607if test -z "$ac_cpp_err"; then
9608 ac_header_preproc=yes
9609else
9610 echo "$as_me: failed program was:" >&5
9611sed 's/^/| /' conftest.$ac_ext >&5
9612
9613 ac_header_preproc=no
9614fi
9615rm -f conftest.err conftest.$ac_ext
9616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9617echo "${ECHO_T}$ac_header_preproc" >&6
9618
9619# So? What about this header?
9620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9621 yes:no: )
9622 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9623echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9625echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9626 ac_header_preproc=yes
9627 ;;
9628 no:yes:* )
9629 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9630echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9631 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9632echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9633 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9634echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9636echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9638echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9639 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9640echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9641 (
9642 cat <<\_ASBOX
9643## ------------------------------------ ##
9644## Report this to the pjproject lists. ##
9645## ------------------------------------ ##
9646_ASBOX
9647 ) |
9648 sed "s/^/$as_me: WARNING: /" >&2
9649 ;;
9650esac
9651echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9652echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9653if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655else
9656 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9657fi
9658echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9659echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9660
9661fi
9662if test $ac_cv_header_openssl_ssl_h = yes; then
9663 openssl_h_present=1
9664fi
9665
9666
9667 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9668echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
9669if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671else
9672 ac_check_lib_save_LIBS=$LIBS
9673LIBS="-lssl $LIBS"
9674cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
9680
9681/* Override any gcc2 internal prototype to avoid an error. */
9682#ifdef __cplusplus
9683extern "C"
9684#endif
9685/* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687char SSL_library_init ();
9688int
9689main ()
9690{
9691SSL_library_init ();
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
9697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag"
9706 || test ! -s conftest.err'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_ssl_SSL_library_init=yes
9719else
9720 echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
9723ac_cv_lib_ssl_SSL_library_init=no
9724fi
9725rm -f conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727LIBS=$ac_check_lib_save_LIBS
9728fi
9729echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9730echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
9731if test $ac_cv_lib_ssl_SSL_library_init = yes; then
9732 libssl_present=1 && LIBS="$LIBS -lssl"
9733fi
9734
9735 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
9736echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
9737if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739else
9740 ac_check_lib_save_LIBS=$LIBS
9741LIBS="-lcrypto $LIBS"
9742cat >conftest.$ac_ext <<_ACEOF
9743/* confdefs.h. */
9744_ACEOF
9745cat confdefs.h >>conftest.$ac_ext
9746cat >>conftest.$ac_ext <<_ACEOF
9747/* end confdefs.h. */
9748
9749/* Override any gcc2 internal prototype to avoid an error. */
9750#ifdef __cplusplus
9751extern "C"
9752#endif
9753/* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755char ERR_load_BIO_strings ();
9756int
9757main ()
9758{
9759ERR_load_BIO_strings ();
9760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
9765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
9787else
9788 echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791ac_cv_lib_crypto_ERR_load_BIO_strings=no
9792fi
9793rm -f conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795LIBS=$ac_check_lib_save_LIBS
9796fi
9797echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
9798echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
9799if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
9800 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
9801fi
9802
9803 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
9804 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
9805echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
9806 cat >>confdefs.h <<\_ACEOF
9807#define PJSIP_HAS_TLS_TRANSPORT 1
9808_ACEOF
9809
9810 else
9811 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
9812echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
9813 fi
9814
9815fi;
9816
9817
9818
9819
9820echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009821echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009822case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009823 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009824#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009825_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009826
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009827 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009828echo "${ECHO_T}yes" >&6
9829 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009830 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009831#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009832_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009833
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009834 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009835echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009836 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009837echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
9838 ;;
9839esac
9840
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009841echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009842echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
9843case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009844 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009845#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009846_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009847
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009848 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009849echo "${ECHO_T}yes" >&6
9850 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009851 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009852#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009853_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009854
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009855 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009856echo "${ECHO_T}no (default)" >&6
9857 ;;
9858esac
9859
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009860echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009861echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
9862case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009863 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009864#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009865_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009866
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009867 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009868echo "${ECHO_T}yes" >&6
9869 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009870 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009871#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009872_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009873
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009874 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009875echo "${ECHO_T}no (default)" >&6
9876 ;;
9877esac
9878
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009879case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009880 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009881 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009882#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009883_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009884
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009885 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009886 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009887#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009888_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009889
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009890 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009891echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
9892 ;;
9893esac
9894
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009895case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009896 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009897 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009898#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009899_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009900
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009901 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009902 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009903#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009904_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009905
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009906 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009907echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
9908 ;;
9909esac
9910
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009911
9912
9913
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009914if test "$build" = "$host"; then
9915 ac_cross_compile=
9916else
Benny Prijono5b818b22006-09-17 22:58:51 +00009917 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009918fi
9919ac_linux_poll=select
9920
9921ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009922
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009923
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009924case $target in
9925 *rtems*)
9926 ac_main_obj=main_rtems.o
9927 ;;
9928 *)
9929 ac_main_obj=main.o
9930 ;;
9931esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009932
9933cat >confcache <<\_ACEOF
9934# This file is a shell script that caches the results of configure
9935# tests run on this system so they can be shared between configure
9936# scripts and configure runs, see configure's option --config-cache.
9937# It is not useful on other systems. If it contains results you don't
9938# want to keep, you may remove or edit it.
9939#
9940# config.status only pays attention to the cache file if you give it
9941# the --recheck option to rerun configure.
9942#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009943# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009944# loading this file, other *unset* `ac_cv_foo' will be assigned the
9945# following values.
9946
9947_ACEOF
9948
9949# The following way of writing the cache mishandles newlines in values,
9950# but we know of no workaround that is simple, portable, and efficient.
9951# So, don't put newlines in cache variables' values.
9952# Ultrix sh set writes to stderr and can't be redirected directly,
9953# and sets the high bit in the cache file unless we assign to the vars.
9954{
9955 (set) 2>&1 |
9956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9957 *ac_space=\ *)
9958 # `set' does not quote correctly, so add quotes (double-quote
9959 # substitution turns \\\\ into \\, and sed turns \\ into \).
9960 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009961 "s/'/'\\\\''/g;
9962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009963 ;;
9964 *)
9965 # `set' quotes correctly as required by POSIX, so do not add quotes.
9966 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009968 ;;
9969 esac;
9970} |
9971 sed '
9972 t clear
9973 : clear
9974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9975 t end
9976 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9977 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009978if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009979 if test -w $cache_file; then
9980 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9981 cat confcache >$cache_file
9982 else
9983 echo "not updating unwritable cache $cache_file"
9984 fi
9985fi
9986rm -f confcache
9987
9988test "x$prefix" = xNONE && prefix=$ac_default_prefix
9989# Let make expand exec_prefix.
9990test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9991
9992# VPATH may cause trouble with some makes, so we remove $(srcdir),
9993# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9994# trailing colons and then remove the whole line if VPATH becomes empty
9995# (actually we leave an empty line to preserve line numbers).
9996if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009997 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009998s/:*\$(srcdir):*/:/;
9999s/:*\${srcdir}:*/:/;
10000s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010001s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010002s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010003s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010004}'
10005fi
10006
10007DEFS=-DHAVE_CONFIG_H
10008
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010009ac_libobjs=
10010ac_ltlibobjs=
10011for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10012 # 1. Remove the extension, and $U if already installed.
10013 ac_i=`echo "$ac_i" |
10014 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10015 # 2. Add them.
10016 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10017 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10018done
10019LIBOBJS=$ac_libobjs
10020
10021LTLIBOBJS=$ac_ltlibobjs
10022
10023
10024
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010025: ${CONFIG_STATUS=./config.status}
10026ac_clean_files_save=$ac_clean_files
10027ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010028{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010029echo "$as_me: creating $CONFIG_STATUS" >&6;}
10030cat >$CONFIG_STATUS <<_ACEOF
10031#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010032# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010033# Run this file to recreate the current configuration.
10034# Compiler output produced by configure, useful for debugging
10035# configure, is in config.log if it exists.
10036
10037debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010038ac_cs_recheck=false
10039ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010040SHELL=\${CONFIG_SHELL-$SHELL}
10041_ACEOF
10042
10043cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010044## --------------------- ##
10045## M4sh Initialization. ##
10046## --------------------- ##
10047
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010048# Be Bourne compatible
10049if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10050 emulate sh
10051 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010052 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10053 # is contrary to our usage. Disable this feature.
10054 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010055elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10056 set -o posix
10057fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010058DUALCASE=1; export DUALCASE # for MKS sh
10059
10060# Support unset when possible.
10061if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10062 as_unset=unset
10063else
10064 as_unset=false
10065fi
10066
10067
10068# Work around bugs in pre-3.0 UWIN ksh.
10069$as_unset ENV MAIL MAILPATH
10070PS1='$ '
10071PS2='> '
10072PS4='+ '
10073
10074# NLS nuisances.
10075for as_var in \
10076 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10077 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10078 LC_TELEPHONE LC_TIME
10079do
10080 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10081 eval $as_var=C; export $as_var
10082 else
10083 $as_unset $as_var
10084 fi
10085done
10086
10087# Required to use basename.
10088if expr a : '\(a\)' >/dev/null 2>&1; then
10089 as_expr=expr
10090else
10091 as_expr=false
10092fi
10093
10094if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10095 as_basename=basename
10096else
10097 as_basename=false
10098fi
10099
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010100
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010101# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010102as_me=`$as_basename "$0" ||
10103$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10104 X"$0" : 'X\(//\)$' \| \
10105 X"$0" : 'X\(/\)$' \| \
10106 . : '\(.\)' 2>/dev/null ||
10107echo X/"$0" |
10108 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10109 /^X\/\(\/\/\)$/{ s//\1/; q; }
10110 /^X\/\(\/\).*/{ s//\1/; q; }
10111 s/.*/./; q'`
10112
10113
10114# PATH needs CR, and LINENO needs CR and PATH.
10115# Avoid depending upon Character Ranges.
10116as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10117as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10118as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10119as_cr_digits='0123456789'
10120as_cr_alnum=$as_cr_Letters$as_cr_digits
10121
10122# The user is always right.
10123if test "${PATH_SEPARATOR+set}" != set; then
10124 echo "#! /bin/sh" >conf$$.sh
10125 echo "exit 0" >>conf$$.sh
10126 chmod +x conf$$.sh
10127 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10128 PATH_SEPARATOR=';'
10129 else
10130 PATH_SEPARATOR=:
10131 fi
10132 rm -f conf$$.sh
10133fi
10134
10135
10136 as_lineno_1=$LINENO
10137 as_lineno_2=$LINENO
10138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10139 test "x$as_lineno_1" != "x$as_lineno_2" &&
10140 test "x$as_lineno_3" = "x$as_lineno_2" || {
10141 # Find who we are. Look in the path if we contain no path at all
10142 # relative or not.
10143 case $0 in
10144 *[\\/]* ) as_myself=$0 ;;
10145 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $PATH
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10151done
10152
10153 ;;
10154 esac
10155 # We did not find ourselves, most probably we were run as `sh COMMAND'
10156 # in which case we are not to be found in the path.
10157 if test "x$as_myself" = x; then
10158 as_myself=$0
10159 fi
10160 if test ! -f "$as_myself"; then
10161 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10162echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10163 { (exit 1); exit 1; }; }
10164 fi
10165 case $CONFIG_SHELL in
10166 '')
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10169do
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for as_base in sh bash ksh sh5; do
10173 case $as_dir in
10174 /*)
10175 if ("$as_dir/$as_base" -c '
10176 as_lineno_1=$LINENO
10177 as_lineno_2=$LINENO
10178 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10179 test "x$as_lineno_1" != "x$as_lineno_2" &&
10180 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10181 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10182 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10183 CONFIG_SHELL=$as_dir/$as_base
10184 export CONFIG_SHELL
10185 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10186 fi;;
10187 esac
10188 done
10189done
10190;;
10191 esac
10192
10193 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10194 # uniformly replaced by the line number. The first 'sed' inserts a
10195 # line-number line before each line; the second 'sed' does the real
10196 # work. The second script uses 'N' to pair each line-number line
10197 # with the numbered line, and appends trailing '-' during
10198 # substitution so that $LINENO is not a special case at line end.
10199 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10200 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10201 sed '=' <$as_myself |
10202 sed '
10203 N
10204 s,$,-,
10205 : loop
10206 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10207 t loop
10208 s,-$,,
10209 s,^['$as_cr_digits']*\n,,
10210 ' >$as_me.lineno &&
10211 chmod +x $as_me.lineno ||
10212 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10213echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10214 { (exit 1); exit 1; }; }
10215
10216 # Don't try to exec as it changes $[0], causing all sort of problems
10217 # (the dirname of $[0] is not the place where we might find the
10218 # original and so on. Autoconf is especially sensible to this).
10219 . ./$as_me.lineno
10220 # Exit status is that of the last command.
10221 exit
10222}
10223
10224
10225case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10226 *c*,-n*) ECHO_N= ECHO_C='
10227' ECHO_T=' ' ;;
10228 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10229 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10230esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010231
10232if expr a : '\(a\)' >/dev/null 2>&1; then
10233 as_expr=expr
10234else
10235 as_expr=false
10236fi
10237
10238rm -f conf$$ conf$$.exe conf$$.file
10239echo >conf$$.file
10240if ln -s conf$$.file conf$$ 2>/dev/null; then
10241 # We could just check for DJGPP; but this test a) works b) is more generic
10242 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10243 if test -f conf$$.exe; then
10244 # Don't use ln at all; we don't have any links
10245 as_ln_s='cp -p'
10246 else
10247 as_ln_s='ln -s'
10248 fi
10249elif ln conf$$.file conf$$ 2>/dev/null; then
10250 as_ln_s=ln
10251else
10252 as_ln_s='cp -p'
10253fi
10254rm -f conf$$ conf$$.exe conf$$.file
10255
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010256if mkdir -p . 2>/dev/null; then
10257 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000010258else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010259 test -d ./-p && rmdir ./-p
10260 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000010261fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010262
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010263as_executable_p="test -f"
10264
10265# Sed expression to map a string onto a valid CPP name.
10266as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10267
10268# Sed expression to map a string onto a valid variable name.
10269as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10270
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010271
10272# IFS
10273# We need space, tab and new line, in precisely that order.
10274as_nl='
10275'
10276IFS=" $as_nl"
10277
10278# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010279$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010280
10281exec 6>&1
10282
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010283# Open the log real soon, to keep \$[0] and so on meaningful, and to
10284# report actual input values of CONFIG_FILES etc. instead of their
10285# values after options handling. Logging --version etc. is OK.
10286exec 5>>config.log
10287{
10288 echo
10289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10290## Running $as_me. ##
10291_ASBOX
10292} >&5
10293cat >&5 <<_CSEOF
10294
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010295This file was extended by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010296generated by GNU Autoconf 2.59. Invocation command line was
10297
10298 CONFIG_FILES = $CONFIG_FILES
10299 CONFIG_HEADERS = $CONFIG_HEADERS
10300 CONFIG_LINKS = $CONFIG_LINKS
10301 CONFIG_COMMANDS = $CONFIG_COMMANDS
10302 $ $0 $@
10303
10304_CSEOF
10305echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10306echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010307_ACEOF
10308
10309# Files that config.status was made for.
10310if test -n "$ac_config_files"; then
10311 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10312fi
10313
10314if test -n "$ac_config_headers"; then
10315 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10316fi
10317
10318if test -n "$ac_config_links"; then
10319 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10320fi
10321
10322if test -n "$ac_config_commands"; then
10323 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10324fi
10325
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010326cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010327
10328ac_cs_usage="\
10329\`$as_me' instantiates files from templates according to the
10330current configuration.
10331
10332Usage: $0 [OPTIONS] [FILE]...
10333
10334 -h, --help print this help, then exit
10335 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010336 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010337 -d, --debug don't remove temporary files
10338 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010339 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010340 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010341 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010342 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010343
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010344Configuration files:
10345$config_files
10346
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010347Configuration headers:
10348$config_headers
10349
10350Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010351_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010352
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010353cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010354ac_cs_version="\\
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010355pjproject config.status 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010356configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010357 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10358
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010359Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010360This config.status script is free software; the Free Software Foundation
10361gives unlimited permission to copy, distribute and modify it."
10362srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010363_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010364
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010365cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010366# If no file are specified by the user, then we need to provide default
10367# value. By we need to know if files were specified by the user.
10368ac_need_defaults=:
10369while test $# != 0
10370do
10371 case $1 in
10372 --*=*)
10373 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10374 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010375 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010376 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010377 -*)
10378 ac_option=$1
10379 ac_optarg=$2
10380 ac_shift=shift
10381 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010382 *) # This is not an option, so the user has probably given explicit
10383 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010384 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010385 ac_need_defaults=false;;
10386 esac
10387
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010388 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010389 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010390_ACEOF
10391cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010393 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010394 --version | --vers* | -V )
10395 echo "$ac_cs_version"; exit 0 ;;
10396 --he | --h)
10397 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010398 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010399Try \`$0 --help' for more information." >&5
10400echo "$as_me: error: ambiguous option: $1
10401Try \`$0 --help' for more information." >&2;}
10402 { (exit 1); exit 1; }; };;
10403 --help | --hel | -h )
10404 echo "$ac_cs_usage"; exit 0 ;;
10405 --debug | --d* | -d )
10406 debug=: ;;
10407 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010408 $ac_shift
10409 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010410 ac_need_defaults=false;;
10411 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010412 $ac_shift
10413 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010414 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10416 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10417 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010418
10419 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010420 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010421Try \`$0 --help' for more information." >&5
10422echo "$as_me: error: unrecognized option: $1
10423Try \`$0 --help' for more information." >&2;}
10424 { (exit 1); exit 1; }; } ;;
10425
10426 *) ac_config_targets="$ac_config_targets $1" ;;
10427
10428 esac
10429 shift
10430done
10431
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010432ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010433
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010434if $ac_cs_silent; then
10435 exec 6>/dev/null
10436 ac_configure_extra_args="$ac_configure_extra_args --silent"
10437fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010438
10439_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010440cat >>$CONFIG_STATUS <<_ACEOF
10441if \$ac_cs_recheck; then
10442 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10443 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10444fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010445
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010446_ACEOF
10447
10448
10449
10450
10451
10452cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010453for ac_config_target in $ac_config_targets
10454do
10455 case "$ac_config_target" in
10456 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010457 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
10458 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
10459 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
10460 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
10461 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
10462 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod9627842007-04-18 09:24:31 +000010463 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
10464 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010465 "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 +000010466 "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 +000010467 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
10468 "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 +000010469 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
10470 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010471echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10472 { (exit 1); exit 1; }; };;
10473 esac
10474done
10475
10476# If the user did not use the arguments to specify the items to instantiate,
10477# then the envvar interface is used. Set only those that are not.
10478# We use the long form for the default assignment because of an extremely
10479# bizarre bug on SunOS 4.1.3.
10480if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10483fi
10484
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010485# Have a temporary directory for convenience. Make it in the build tree
10486# simply because there is no reason to put it here, and in addition,
10487# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010488# Create a temporary directory, and hook for its removal unless debugging.
10489$debug ||
10490{
10491 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10492 trap '{ (exit 1); exit 1; }' 1 2 13 15
10493}
10494
10495# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010496
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010497{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010498 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010499 test -n "$tmp" && test -d "$tmp"
10500} ||
10501{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010502 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010503 (umask 077 && mkdir $tmp)
10504} ||
10505{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010506 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010507 { (exit 1); exit 1; }
10508}
10509
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010510_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010511
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010512cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010513
10514#
10515# CONFIG_FILES section.
10516#
10517
10518# No need to generate the scripts if there are no CONFIG_FILES.
10519# This happens for instance when ./config.status config.h
10520if test -n "\$CONFIG_FILES"; then
10521 # Protect against being on the right side of a sed subst in config.status.
10522 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10523 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10524s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010525s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10526s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10527s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10528s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10529s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10530s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010531s,@exec_prefix@,$exec_prefix,;t t
10532s,@prefix@,$prefix,;t t
10533s,@program_transform_name@,$program_transform_name,;t t
10534s,@bindir@,$bindir,;t t
10535s,@sbindir@,$sbindir,;t t
10536s,@libexecdir@,$libexecdir,;t t
10537s,@datadir@,$datadir,;t t
10538s,@sysconfdir@,$sysconfdir,;t t
10539s,@sharedstatedir@,$sharedstatedir,;t t
10540s,@localstatedir@,$localstatedir,;t t
10541s,@libdir@,$libdir,;t t
10542s,@includedir@,$includedir,;t t
10543s,@oldincludedir@,$oldincludedir,;t t
10544s,@infodir@,$infodir,;t t
10545s,@mandir@,$mandir,;t t
10546s,@build_alias@,$build_alias,;t t
10547s,@host_alias@,$host_alias,;t t
10548s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010549s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010550s,@ECHO_C@,$ECHO_C,;t t
10551s,@ECHO_N@,$ECHO_N,;t t
10552s,@ECHO_T@,$ECHO_T,;t t
10553s,@LIBS@,$LIBS,;t t
10554s,@build@,$build,;t t
10555s,@build_cpu@,$build_cpu,;t t
10556s,@build_vendor@,$build_vendor,;t t
10557s,@build_os@,$build_os,;t t
10558s,@host@,$host,;t t
10559s,@host_cpu@,$host_cpu,;t t
10560s,@host_vendor@,$host_vendor,;t t
10561s,@host_os@,$host_os,;t t
10562s,@target@,$target,;t t
10563s,@target_cpu@,$target_cpu,;t t
10564s,@target_vendor@,$target_vendor,;t t
10565s,@target_os@,$target_os,;t t
10566s,@CC@,$CC,;t t
10567s,@CFLAGS@,$CFLAGS,;t t
10568s,@LDFLAGS@,$LDFLAGS,;t t
10569s,@CPPFLAGS@,$CPPFLAGS,;t t
10570s,@ac_ct_CC@,$ac_ct_CC,;t t
10571s,@EXEEXT@,$EXEEXT,;t t
10572s,@OBJEXT@,$OBJEXT,;t t
10573s,@CXX@,$CXX,;t t
10574s,@CXXFLAGS@,$CXXFLAGS,;t t
10575s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +000010576s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010577s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010578s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010579s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010580s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +000010581s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010582s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
10583s,@ac_no_small_filter@,$ac_no_small_filter,;t t
10584s,@ac_no_large_filter@,$ac_no_large_filter,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010585s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
10586s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
10587s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
10588s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
10589s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
10590s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010591s,@ac_no_ssl@,$ac_no_ssl,;t t
10592s,@openssl_h_present@,$openssl_h_present,;t t
10593s,@libssl_present@,$libssl_present,;t t
10594s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010595s,@ac_cross_compile@,$ac_cross_compile,;t t
10596s,@ac_linux_poll@,$ac_linux_poll,;t t
10597s,@ac_host@,$ac_host,;t t
10598s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010599s,@LIBOBJS@,$LIBOBJS,;t t
10600s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010601CEOF
10602
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010603_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010604
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010605 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010606 # Split the substitutions into bite-sized pieces for seds with
10607 # small command number limits, like on Digital OSF/1 and HP-UX.
10608 ac_max_sed_lines=48
10609 ac_sed_frag=1 # Number of current file.
10610 ac_beg=1 # First line for current file.
10611 ac_end=$ac_max_sed_lines # Line after last line for current file.
10612 ac_more_lines=:
10613 ac_sed_cmds=
10614 while $ac_more_lines; do
10615 if test $ac_beg -gt 1; then
10616 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10617 else
10618 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10619 fi
10620 if test ! -s $tmp/subs.frag; then
10621 ac_more_lines=false
10622 else
10623 # The purpose of the label and of the branching condition is to
10624 # speed up the sed processing (if there are no `@' at all, there
10625 # is no need to browse any of the substitutions).
10626 # These are the two extra sed commands mentioned above.
10627 (echo ':t
10628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10629 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010630 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010631 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010632 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010633 fi
10634 ac_sed_frag=`expr $ac_sed_frag + 1`
10635 ac_beg=$ac_end
10636 ac_end=`expr $ac_end + $ac_max_sed_lines`
10637 fi
10638 done
10639 if test -z "$ac_sed_cmds"; then
10640 ac_sed_cmds=cat
10641 fi
10642fi # test -n "$CONFIG_FILES"
10643
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010644_ACEOF
10645cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010646for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10648 case $ac_file in
10649 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010650 cat >$tmp/stdin
10651 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010653 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010654 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010655 * ) ac_file_in=$ac_file.in ;;
10656 esac
10657
10658 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010659 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10660$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10661 X"$ac_file" : 'X\(//\)[^/]' \| \
10662 X"$ac_file" : 'X\(//\)$' \| \
10663 X"$ac_file" : 'X\(/\)' \| \
10664 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010665echo X"$ac_file" |
10666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10668 /^X\(\/\/\)$/{ s//\1/; q; }
10669 /^X\(\/\).*/{ s//\1/; q; }
10670 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010671 { if $as_mkdir_p; then
10672 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010673 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010674 as_dir="$ac_dir"
10675 as_dirs=
10676 while test ! -d "$as_dir"; do
10677 as_dirs="$as_dir $as_dirs"
10678 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10679$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10680 X"$as_dir" : 'X\(//\)[^/]' \| \
10681 X"$as_dir" : 'X\(//\)$' \| \
10682 X"$as_dir" : 'X\(/\)' \| \
10683 . : '\(.\)' 2>/dev/null ||
10684echo X"$as_dir" |
10685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10687 /^X\(\/\/\)$/{ s//\1/; q; }
10688 /^X\(\/\).*/{ s//\1/; q; }
10689 s/.*/./; q'`
10690 done
10691 test ! -n "$as_dirs" || mkdir $as_dirs
10692 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10693echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10694 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010695
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010696 ac_builddir=.
10697
10698if test "$ac_dir" != .; then
10699 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10700 # A "../" for each directory in $ac_dir_suffix.
10701 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10702else
10703 ac_dir_suffix= ac_top_builddir=
10704fi
10705
10706case $srcdir in
10707 .) # No --srcdir option. We are building in place.
10708 ac_srcdir=.
10709 if test -z "$ac_top_builddir"; then
10710 ac_top_srcdir=.
10711 else
10712 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10713 fi ;;
10714 [\\/]* | ?:[\\/]* ) # Absolute path.
10715 ac_srcdir=$srcdir$ac_dir_suffix;
10716 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010717 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010718 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10719 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10720esac
10721
10722# Do not use `cd foo && pwd` to compute absolute paths, because
10723# the directories may not exist.
10724case `pwd` in
10725.) ac_abs_builddir="$ac_dir";;
10726*)
10727 case "$ac_dir" in
10728 .) ac_abs_builddir=`pwd`;;
10729 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10730 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10731 esac;;
10732esac
10733case $ac_abs_builddir in
10734.) ac_abs_top_builddir=${ac_top_builddir}.;;
10735*)
10736 case ${ac_top_builddir}. in
10737 .) ac_abs_top_builddir=$ac_abs_builddir;;
10738 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10739 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10740 esac;;
10741esac
10742case $ac_abs_builddir in
10743.) ac_abs_srcdir=$ac_srcdir;;
10744*)
10745 case $ac_srcdir in
10746 .) ac_abs_srcdir=$ac_abs_builddir;;
10747 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10748 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10749 esac;;
10750esac
10751case $ac_abs_builddir in
10752.) ac_abs_top_srcdir=$ac_top_srcdir;;
10753*)
10754 case $ac_top_srcdir in
10755 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10756 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10757 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10758 esac;;
10759esac
10760
10761
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010762
10763 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010764 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010765echo "$as_me: creating $ac_file" >&6;}
10766 rm -f "$ac_file"
10767 fi
10768 # Let's still pretend it is `configure' which instantiates (i.e., don't
10769 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010770 # /* config.h. Generated by config.status. */
10771 if test x"$ac_file" = x-; then
10772 configure_input=
10773 else
10774 configure_input="$ac_file. "
10775 fi
10776 configure_input=$configure_input"Generated from `echo $ac_file_in |
10777 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010778
10779 # First look for the input files in the build tree, otherwise in the
10780 # src tree.
10781 ac_file_inputs=`IFS=:
10782 for f in $ac_file_in; do
10783 case $f in
10784 -) echo $tmp/stdin ;;
10785 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010786 # Absolute (can't be DOS-style, as IFS=:)
10787 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010788echo "$as_me: error: cannot find input file: $f" >&2;}
10789 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010790 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010791 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010792 if test -f "$f"; then
10793 # Build tree
10794 echo "$f"
10795 elif test -f "$srcdir/$f"; then
10796 # Source tree
10797 echo "$srcdir/$f"
10798 else
10799 # /dev/null tree
10800 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010801echo "$as_me: error: cannot find input file: $f" >&2;}
10802 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010803 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010804 esac
10805 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010806_ACEOF
10807cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010808 sed "$ac_vpsub
10809$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010810_ACEOF
10811cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010812:t
10813/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10814s,@configure_input@,$configure_input,;t t
10815s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010816s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010817s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010818s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10819s,@builddir@,$ac_builddir,;t t
10820s,@abs_builddir@,$ac_abs_builddir,;t t
10821s,@top_builddir@,$ac_top_builddir,;t t
10822s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010823" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10824 rm -f $tmp/stdin
10825 if test x"$ac_file" != x-; then
10826 mv $tmp/out $ac_file
10827 else
10828 cat $tmp/out
10829 rm -f $tmp/out
10830 fi
10831
10832done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010833_ACEOF
10834cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010835
10836#
10837# CONFIG_HEADER section.
10838#
10839
10840# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10841# NAME is the cpp macro being defined and VALUE is the value it is being given.
10842#
10843# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010844ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10845ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010846ac_dC=' '
10847ac_dD=',;t'
10848# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010849ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010850ac_uB='$,\1#\2define\3'
10851ac_uC=' '
10852ac_uD=',;t'
10853
10854for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10855 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10856 case $ac_file in
10857 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010858 cat >$tmp/stdin
10859 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010861 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010863 * ) ac_file_in=$ac_file.in ;;
10864 esac
10865
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010866 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010867echo "$as_me: creating $ac_file" >&6;}
10868
10869 # First look for the input files in the build tree, otherwise in the
10870 # src tree.
10871 ac_file_inputs=`IFS=:
10872 for f in $ac_file_in; do
10873 case $f in
10874 -) echo $tmp/stdin ;;
10875 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010876 # Absolute (can't be DOS-style, as IFS=:)
10877 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010878echo "$as_me: error: cannot find input file: $f" >&2;}
10879 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010880 # Do quote $f, to prevent DOS paths from being IFS'd.
10881 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010882 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010883 if test -f "$f"; then
10884 # Build tree
10885 echo "$f"
10886 elif test -f "$srcdir/$f"; then
10887 # Source tree
10888 echo "$srcdir/$f"
10889 else
10890 # /dev/null tree
10891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010892echo "$as_me: error: cannot find input file: $f" >&2;}
10893 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010894 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010895 esac
10896 done` || { (exit 1); exit 1; }
10897 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010898 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010899
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010900_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010901
10902# Transform confdefs.h into two sed scripts, `conftest.defines' and
10903# `conftest.undefs', that substitutes the proper values into
10904# config.h.in to produce config.h. The first handles `#define'
10905# templates, and the second `#undef' templates.
10906# And first: Protect against being on the right side of a sed subst in
10907# config.status. Protect against being in an unquoted here document
10908# in config.status.
10909rm -f conftest.defines conftest.undefs
10910# Using a here document instead of a string reduces the quoting nightmare.
10911# Putting comments in sed scripts is not portable.
10912#
10913# `end' is used to avoid that the second main sed command (meant for
10914# 0-ary CPP macros) applies to n-ary macro definitions.
10915# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010916cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010917s/[\\&,]/\\&/g
10918s,[\\$`],\\&,g
10919t clear
10920: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010921s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010922t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010923s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010924: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010925_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010926# If some macros were called several times there might be several times
10927# the same #defines, which is useless. Nevertheless, we may not want to
10928# sort them, since we want the *last* AC-DEFINE to be honored.
10929uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10930sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10931rm -f confdef2sed.sed
10932
10933# This sed command replaces #undef with comments. This is necessary, for
10934# example, in the case of _POSIX_SOURCE, which is predefined and required
10935# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010936cat >>conftest.undefs <<\_ACEOF
10937s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10938_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010939
10940# Break up conftest.defines because some shells have a limit on the size
10941# of here documents, and old seds have small limits too (100 cmds).
10942echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010943echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010944echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10945echo ' :' >>$CONFIG_STATUS
10946rm -f conftest.tail
10947while grep . conftest.defines >/dev/null
10948do
10949 # Write a limited-size here document to $tmp/defines.sed.
10950 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10951 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010952 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010953 # Work around the forget-to-reset-the-flag bug.
10954 echo 't clr' >>$CONFIG_STATUS
10955 echo ': clr' >>$CONFIG_STATUS
10956 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10957 echo 'CEOF
10958 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10959 rm -f $tmp/in
10960 mv $tmp/out $tmp/in
10961' >>$CONFIG_STATUS
10962 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10963 rm -f conftest.defines
10964 mv conftest.tail conftest.defines
10965done
10966rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010967echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010968echo >>$CONFIG_STATUS
10969
10970# Break up conftest.undefs because some shells have a limit on the size
10971# of here documents, and old seds have small limits too (100 cmds).
10972echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10973rm -f conftest.tail
10974while grep . conftest.undefs >/dev/null
10975do
10976 # Write a limited-size here document to $tmp/undefs.sed.
10977 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10978 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010979 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010980 # Work around the forget-to-reset-the-flag bug.
10981 echo 't clr' >>$CONFIG_STATUS
10982 echo ': clr' >>$CONFIG_STATUS
10983 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10984 echo 'CEOF
10985 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10986 rm -f $tmp/in
10987 mv $tmp/out $tmp/in
10988' >>$CONFIG_STATUS
10989 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10990 rm -f conftest.undefs
10991 mv conftest.tail conftest.undefs
10992done
10993rm -f conftest.undefs
10994
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010995cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010996 # Let's still pretend it is `configure' which instantiates (i.e., don't
10997 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010998 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010999 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011000 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011001 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011002 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011003 fi
11004 cat $tmp/in >>$tmp/config.h
11005 rm -f $tmp/in
11006 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011007 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11008 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011009echo "$as_me: $ac_file is unchanged" >&6;}
11010 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011011 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11012$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11013 X"$ac_file" : 'X\(//\)[^/]' \| \
11014 X"$ac_file" : 'X\(//\)$' \| \
11015 X"$ac_file" : 'X\(/\)' \| \
11016 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011017echo X"$ac_file" |
11018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11020 /^X\(\/\/\)$/{ s//\1/; q; }
11021 /^X\(\/\).*/{ s//\1/; q; }
11022 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011023 { if $as_mkdir_p; then
11024 mkdir -p "$ac_dir"
11025 else
11026 as_dir="$ac_dir"
11027 as_dirs=
11028 while test ! -d "$as_dir"; do
11029 as_dirs="$as_dir $as_dirs"
11030 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11031$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11032 X"$as_dir" : 'X\(//\)[^/]' \| \
11033 X"$as_dir" : 'X\(//\)$' \| \
11034 X"$as_dir" : 'X\(/\)' \| \
11035 . : '\(.\)' 2>/dev/null ||
11036echo X"$as_dir" |
11037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11039 /^X\(\/\/\)$/{ s//\1/; q; }
11040 /^X\(\/\).*/{ s//\1/; q; }
11041 s/.*/./; q'`
11042 done
11043 test ! -n "$as_dirs" || mkdir $as_dirs
11044 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11045echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11046 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011047
11048 rm -f $ac_file
11049 mv $tmp/config.h $ac_file
11050 fi
11051 else
11052 cat $tmp/config.h
11053 rm -f $tmp/config.h
11054 fi
11055done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011056_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011057
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011058cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011059
11060{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011061_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011062chmod +x $CONFIG_STATUS
11063ac_clean_files=$ac_clean_files_save
11064
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011065
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011066# configure is writing to config.log, and then calls config.status.
11067# config.status does its own redirection, appending to config.log.
11068# Unfortunately, on DOS this fails, as config.log is still kept open
11069# by configure, so config.status won't be able to write to it; its
11070# output is simply discarded. So we exec the FD to /dev/null,
11071# effectively closing config.log, so it can be properly (re)opened and
11072# appended to by config.status. When coming back to configure, we
11073# need to make the FD available again.
11074if test "$no_create" != yes; then
11075 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011076 ac_config_status_args=
11077 test "$silent" = yes &&
11078 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011079 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011081 exec 5>>config.log
11082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11083 # would make configure fail if this is the last instruction.
11084 $ac_cs_success || { (exit 1); exit 1; }
11085fi
11086
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011087
Benny Prijonod9627842007-04-18 09:24:31 +000011088
11089echo "$as_me:$LINENO: result:
11090
11091The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
11092
11093Customizations can be put in:
11094 - 'user.mak'
11095 - 'pjlib/include/pj/config_site.h'
11096
11097The next step now is to run 'make dep' and 'make'.
11098" >&5
11099echo "${ECHO_T}
11100
11101The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
11102
11103Customizations can be put in:
11104 - 'user.mak'
11105 - 'pjlib/include/pj/config_site.h'
11106
11107The next step now is to run 'make dep' and 'make'.
11108" >&6
11109