blob: b53ce25a5c6852c1d2652c41921aeb575c9f1679 [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 Prijonoce1db762007-02-14 02:21:08 +0000868 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000869
870
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000871Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000878 CXX C++ compiler command
879 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000885_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000886fi
887
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000894
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000902
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
957
958 cd $ac_dir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000959 # Check for guested configure; otherwise get Cygnus style configure.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000960 if test -f $ac_srcdir/configure.gnu; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000961 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000964 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000968 echo
969 $ac_configure --help
970 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000972 fi
973 cd $ac_popdir
974 done
975fi
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000979 cat <<\_ACEOF
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000980pjproject configure 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000981generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000982
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000983Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000984This configure script is free software; the Free Software Foundation
985gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000986_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000987 exit 0
988fi
989exec 5>config.log
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000990cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000991This file contains any messages produced by compilers while
992running configure, to aid debugging if configure makes a mistake.
993
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000994It was created by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000995generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000996
997 $ $0 $@
998
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000999_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001000{
1001cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001002## --------- ##
1003## Platform. ##
1004## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001005
1006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001024
1025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026for as_dir in $PATH
1027do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031done
1032
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001033} >&5
1034
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001035cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001037
1038## ----------- ##
1039## Core tests. ##
1040## ----------- ##
1041
1042_ACEOF
1043
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001044
1045# Keep a trace of the command line.
1046# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001047# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001048# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001049# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001050ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001051ac_configure_args0=
1052ac_configure_args1=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001053ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001054ac_must_keep_next=false
1055for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001056do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1089 ;;
1090 esac
1091 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001092done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001093$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001095
1096# When interrupted or exit'd, cleanup temporary files, and complete
1097# config.log. We remove comments because anyway the quotes in there
1098# would cause problems or look ugly.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001099# WARNING: Be sure not to use single quotes in there, as some shells,
1100# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001101trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107## ---------------- ##
1108## Cache variables. ##
1109## ---------------- ##
1110_ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001113{
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001120 ;;
1121 *)
1122 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001124 ;;
1125 esac;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001126}
1127 echo
1128
1129 cat <<\_ASBOX
1130## ----------------- ##
1131## Output variables. ##
1132## ----------------- ##
1133_ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144## ------------- ##
1145## Output files. ##
1146## ------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159## ----------- ##
1160## confdefs.h. ##
1161## ----------- ##
1162_ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001173 exit $exit_status
1174 ' 0
1175for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177done
1178ac_signal=0
1179
1180# confdefs.h avoids OS command line length limits that DEFS can exceed.
1181rm -rf conftest* confdefs.h
1182# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183echo >confdefs.h
1184
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001185# Predefined preprocessor variables.
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_NAME "$PACKAGE_NAME"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_VERSION "$PACKAGE_VERSION"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_STRING "$PACKAGE_STRING"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209_ACEOF
1210
1211
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001212# Let the site file select an alternate cache file if it wants to.
1213# Prefer explicitly selected file to automatically selected ones.
1214if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220fi
1221for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001224echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001225 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001226 . "$ac_site_file"
1227 fi
1228done
1229
1230if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001235echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001243echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245fi
1246
1247# Check that the precious variables saved in the cache have kept the same
1248# value.
1249ac_cache_corrupted=false
1250for ac_var in `(set) 2>&1 |
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001259echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001263echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001269echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001271echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001273echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275 fi;;
1276 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001277 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001287 esac
1288 fi
1289done
1290if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001292echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001294echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296fi
1297
1298ac_ext=c
1299ac_cpp='$CPP $CPPFLAGS'
1300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
Benny Prijono5b818b22006-09-17 22:58:51 +00001330
1331host_orig="$host"
1332
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001333ac_aux_dir=
1334for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1335 if test -f $ac_dir/install-sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 break
1339 elif test -f $ac_dir/install.sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 break
1343 elif test -f $ac_dir/shtool; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1346 break
1347 fi
1348done
1349if test -z "$ac_aux_dir"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001351echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1352 { (exit 1); exit 1; }; }
1353fi
1354ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1357
1358# Make sure we can run config.sub.
1359$ac_config_sub sun4 >/dev/null 2>&1 ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001360 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001361echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1362 { (exit 1); exit 1; }; }
1363
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001364echo "$as_me:$LINENO: checking build system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001365echo $ECHO_N "checking build system type... $ECHO_C" >&6
1366if test "${ac_cv_build+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368else
1369 ac_cv_build_alias=$build_alias
1370test -z "$ac_cv_build_alias" &&
1371 ac_cv_build_alias=`$ac_config_guess`
1372test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001373 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001374echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1375 { (exit 1); exit 1; }; }
1376ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1378echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001379 { (exit 1); exit 1; }; }
1380
1381fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001382echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001383echo "${ECHO_T}$ac_cv_build" >&6
1384build=$ac_cv_build
1385build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001389
1390echo "$as_me:$LINENO: checking host system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001391echo $ECHO_N "checking host system type... $ECHO_C" >&6
1392if test "${ac_cv_host+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1394else
1395 ac_cv_host_alias=$host_alias
1396test -z "$ac_cv_host_alias" &&
1397 ac_cv_host_alias=$ac_cv_build_alias
1398ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001399 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001400echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1401 { (exit 1); exit 1; }; }
1402
1403fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001404echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001405echo "${ECHO_T}$ac_cv_host" >&6
1406host=$ac_cv_host
1407host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001411
1412echo "$as_me:$LINENO: checking target system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001413echo $ECHO_N "checking target system type... $ECHO_C" >&6
1414if test "${ac_cv_target+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416else
1417 ac_cv_target_alias=$target_alias
1418test "x$ac_cv_target_alias" = "x" &&
1419 ac_cv_target_alias=$ac_cv_host_alias
1420ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001422echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1424
1425fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001426echo "$as_me:$LINENO: result: $ac_cv_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001427echo "${ECHO_T}$ac_cv_target" >&6
1428target=$ac_cv_target
1429target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001433
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001434# The aliases save the names the user supplied, while $host etc.
1435# will get canonicalized.
1436test -n "$target_alias" &&
1437 test "$program_prefix$program_suffix$program_transform_name" = \
1438 NONENONEs,x,x, &&
1439 program_prefix=${target_alias}-
Benny Prijono06d1d0e2007-01-27 18:09:28 +00001440 ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001441
Benny Prijonod9627842007-04-18 09:24:31 +00001442 ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001443
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001444
Benny Prijono12483112007-03-12 10:44:38 +00001445
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001446if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001447 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001448else
1449 CFLAGS="$CFLAGS"
1450fi
1451
1452CXXFLAGS="$CFLAGS $CXXFLAGS"
1453
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459if test -n "$ac_tool_prefix"; then
1460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1461set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001462echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1464if test "${ac_cv_prog_CC+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1466else
1467 if test -n "$CC"; then
1468 ac_cv_prog_CC="$CC" # Let the user override the test.
1469else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471for as_dir in $PATH
1472do
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 for ac_exec_ext in '' $ac_executable_extensions; do
1476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1479 break 2
1480 fi
1481done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001482done
1483
1484fi
1485fi
1486CC=$ac_cv_prog_CC
1487if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001488 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001489echo "${ECHO_T}$CC" >&6
1490else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001491 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001492echo "${ECHO_T}no" >&6
1493fi
1494
1495fi
1496if test -z "$ac_cv_prog_CC"; then
1497 ac_ct_CC=$CC
1498 # Extract the first word of "gcc", so it can be a program name with args.
1499set dummy gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001500echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504else
1505 if test -n "$ac_ct_CC"; then
1506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509for as_dir in $PATH
1510do
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_ac_ct_CC="gcc"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 break 2
1518 fi
1519done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001520done
1521
1522fi
1523fi
1524ac_ct_CC=$ac_cv_prog_ac_ct_CC
1525if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001526 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001527echo "${ECHO_T}$ac_ct_CC" >&6
1528else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001529 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001530echo "${ECHO_T}no" >&6
1531fi
1532
1533 CC=$ac_ct_CC
1534else
1535 CC="$ac_cv_prog_CC"
1536fi
1537
1538if test -z "$CC"; then
1539 if test -n "$ac_tool_prefix"; then
1540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1541set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001542echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546else
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1549else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551for as_dir in $PATH
1552do
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="${ac_tool_prefix}cc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001562done
1563
1564fi
1565fi
1566CC=$ac_cv_prog_CC
1567if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001568 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001569echo "${ECHO_T}$CC" >&6
1570else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001571 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001572echo "${ECHO_T}no" >&6
1573fi
1574
1575fi
1576if test -z "$ac_cv_prog_CC"; then
1577 ac_ct_CC=$CC
1578 # Extract the first word of "cc", so it can be a program name with args.
1579set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001580echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 if test -n "$ac_ct_CC"; then
1586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589for as_dir in $PATH
1590do
1591 IFS=$as_save_IFS
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_ac_ct_CC="cc"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 break 2
1598 fi
1599done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001600done
1601
1602fi
1603fi
1604ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001607echo "${ECHO_T}$ac_ct_CC" >&6
1608else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001609 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001610echo "${ECHO_T}no" >&6
1611fi
1612
1613 CC=$ac_ct_CC
1614else
1615 CC="$ac_cv_prog_CC"
1616fi
1617
1618fi
1619if test -z "$CC"; then
1620 # Extract the first word of "cc", so it can be a program name with args.
1621set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001622echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629else
1630 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632for as_dir in $PATH
1633do
1634 IFS=$as_save_IFS
1635 test -z "$as_dir" && as_dir=.
1636 for ac_exec_ext in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1639 ac_prog_rejected=yes
1640 continue
1641 fi
1642 ac_cv_prog_CC="cc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1645 fi
1646done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001647done
1648
1649if test $ac_prog_rejected = yes; then
1650 # We found a bogon in the path, so make sure we never use it.
1651 set dummy $ac_cv_prog_CC
1652 shift
1653 if test $# != 0; then
1654 # We chose a different compiler from the bogus one.
1655 # However, it has the same basename, so the bogon will be chosen
1656 # first if we set CC to just the basename; use the full file name.
1657 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001659 fi
1660fi
1661fi
1662fi
1663CC=$ac_cv_prog_CC
1664if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001665 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001666echo "${ECHO_T}$CC" >&6
1667else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001668 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001669echo "${ECHO_T}no" >&6
1670fi
1671
1672fi
1673if test -z "$CC"; then
1674 if test -n "$ac_tool_prefix"; then
1675 for ac_prog in cl
1676 do
1677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001679echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681if test "${ac_cv_prog_CC+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683else
1684 if test -n "$CC"; then
1685 ac_cv_prog_CC="$CC" # Let the user override the test.
1686else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688for as_dir in $PATH
1689do
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 break 2
1697 fi
1698done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001699done
1700
1701fi
1702fi
1703CC=$ac_cv_prog_CC
1704if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001705 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001706echo "${ECHO_T}$CC" >&6
1707else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001708 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001709echo "${ECHO_T}no" >&6
1710fi
1711
1712 test -n "$CC" && break
1713 done
1714fi
1715if test -z "$CC"; then
1716 ac_ct_CC=$CC
1717 for ac_prog in cl
1718do
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001721echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726 if test -n "$ac_ct_CC"; then
1727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_ac_ct_CC="$ac_prog"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1739 fi
1740done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001741done
1742
1743fi
1744fi
1745ac_ct_CC=$ac_cv_prog_ac_ct_CC
1746if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001747 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001748echo "${ECHO_T}$ac_ct_CC" >&6
1749else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001750 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001751echo "${ECHO_T}no" >&6
1752fi
1753
1754 test -n "$ac_ct_CC" && break
1755done
1756
1757 CC=$ac_ct_CC
1758fi
1759
1760fi
1761
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001762
1763test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1764See \`config.log' for more details." >&5
1765echo "$as_me: error: no acceptable C compiler found in \$PATH
1766See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001767 { (exit 1); exit 1; }; }
1768
1769# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001770echo "$as_me:$LINENO:" \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001771 "checking for C compiler version" >&5
1772ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001773{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001774 (eval $ac_compiler --version </dev/null >&5) 2>&5
1775 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001777 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001778{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001779 (eval $ac_compiler -v </dev/null >&5) 2>&5
1780 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001782 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001783{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001784 (eval $ac_compiler -V </dev/null >&5) 2>&5
1785 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001787 (exit $ac_status); }
1788
1789cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001790/* confdefs.h. */
1791_ACEOF
1792cat confdefs.h >>conftest.$ac_ext
1793cat >>conftest.$ac_ext <<_ACEOF
1794/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001795
1796int
1797main ()
1798{
1799
1800 ;
1801 return 0;
1802}
1803_ACEOF
1804ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001805ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001806# Try to create an executable without -o first, disregard a.out.
1807# It will help us diagnose broken compilers, and finding out an intuition
1808# of exeext.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001809echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1810echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001811ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001812if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001813 (eval $ac_link_default) 2>&5
1814 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001816 (exit $ac_status); }; then
1817 # Find the output, starting from the most likely. This scheme is
1818# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1819# resort.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001820
1821# Be careful to initialize this variable, since it used to be cached.
1822# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1823ac_cv_exeext=
1824# b.out is created by i960 compilers.
1825for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1826do
1827 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001828 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1830 ;;
1831 conftest.$ac_ext )
1832 # This is the source file.
1833 ;;
1834 [ab].out )
1835 # We found the default executable, but exeext='' is most
1836 # certainly right.
1837 break;;
1838 *.* )
1839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840 # FIXME: I believe we export ac_cv_exeext for Libtool,
1841 # but it would be cool to find out if it's true. Does anybody
1842 # maintain Libtool? --akim.
1843 export ac_cv_exeext
1844 break;;
1845 * )
1846 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001847 esac
1848done
1849else
1850 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1854See \`config.log' for more details." >&5
1855echo "$as_me: error: C compiler cannot create executables
1856See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001857 { (exit 77); exit 77; }; }
1858fi
1859
1860ac_exeext=$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001861echo "$as_me:$LINENO: result: $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001862echo "${ECHO_T}$ac_file" >&6
1863
1864# Check the compiler produces executables we can run. If not, either
1865# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001866echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001867echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1868# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1869# If not cross compiling, check that we can run a simple program.
1870if test "$cross_compiling" != yes; then
1871 if { ac_try='./$ac_file'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001873 (eval $ac_try) 2>&5
1874 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001876 (exit $ac_status); }; }; then
1877 cross_compiling=no
1878 else
1879 if test "$cross_compiling" = maybe; then
1880 cross_compiling=yes
1881 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001882 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1883If you meant to cross compile, use \`--host'.
1884See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001885echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001886If you meant to cross compile, use \`--host'.
1887See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001888 { (exit 1); exit 1; }; }
1889 fi
1890 fi
1891fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001892echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001893echo "${ECHO_T}yes" >&6
1894
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001895rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001896ac_clean_files=$ac_clean_files_save
1897# Check the compiler produces executables we can run. If not, either
1898# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001899echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001900echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001901echo "$as_me:$LINENO: result: $cross_compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902echo "${ECHO_T}$cross_compiling" >&6
1903
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001904echo "$as_me:$LINENO: checking for suffix of executables" >&5
1905echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001907 (eval $ac_link) 2>&5
1908 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001910 (exit $ac_status); }; then
1911 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1912# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1913# work properly (i.e., refer to `conftest.exe'), while it won't with
1914# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001915for ac_file in conftest.exe conftest conftest.*; do
1916 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001917 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001920 export ac_cv_exeext
1921 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001922 * ) break;;
1923 esac
1924done
1925else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001926 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1927See \`config.log' for more details." >&5
1928echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1929See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001930 { (exit 1); exit 1; }; }
1931fi
1932
1933rm -f conftest$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001934echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001935echo "${ECHO_T}$ac_cv_exeext" >&6
1936
1937rm -f conftest.$ac_ext
1938EXEEXT=$ac_cv_exeext
1939ac_exeext=$EXEEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001940echo "$as_me:$LINENO: checking for suffix of object files" >&5
1941echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001942if test "${ac_cv_objext+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001951
1952int
1953main ()
1954{
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960rm -f conftest.o conftest.obj
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001962 (eval $ac_compile) 2>&5
1963 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001965 (exit $ac_status); }; then
1966 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1967 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1970 break;;
1971 esac
1972done
1973else
1974 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1978See \`config.log' for more details." >&5
1979echo "$as_me: error: cannot compute suffix of object files: cannot compile
1980See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001981 { (exit 1); exit 1; }; }
1982fi
1983
1984rm -f conftest.$ac_cv_objext conftest.$ac_ext
1985fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001986echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001987echo "${ECHO_T}$ac_cv_objext" >&6
1988OBJEXT=$ac_cv_objext
1989ac_objext=$OBJEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001990echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001991echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1992if test "${ac_cv_c_compiler_gnu+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001996/* confdefs.h. */
1997_ACEOF
1998cat confdefs.h >>conftest.$ac_ext
1999cat >>conftest.$ac_ext <<_ACEOF
2000/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002001
2002int
2003main ()
2004{
2005#ifndef __GNUC__
2006 choke me
2007#endif
2008
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002016 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002017 grep -v '^ *+' conftest.er1 >conftest.err
2018 rm -f conftest.er1
2019 cat conftest.err >&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002021 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002022 { ac_try='test -z "$ac_c_werror_flag"
2023 || test ! -s conftest.err'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002025 (eval $ac_try) 2>&5
2026 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; } &&
2029 { ac_try='test -s conftest.$ac_objext'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002034 (exit $ac_status); }; }; then
2035 ac_compiler_gnu=yes
2036else
2037 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002038sed 's/^/| /' conftest.$ac_ext >&5
2039
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002040ac_compiler_gnu=no
2041fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002043ac_cv_c_compiler_gnu=$ac_compiler_gnu
2044
2045fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002046echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002047echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2048GCC=`test $ac_compiler_gnu = yes && echo yes`
2049ac_test_CFLAGS=${CFLAGS+set}
2050ac_save_CFLAGS=$CFLAGS
2051CFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002052echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002053echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2054if test "${ac_cv_prog_cc_g+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002058/* confdefs.h. */
2059_ACEOF
2060cat confdefs.h >>conftest.$ac_ext
2061cat >>conftest.$ac_ext <<_ACEOF
2062/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002063
2064int
2065main ()
2066{
2067
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2074 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002075 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002076 grep -v '^ *+' conftest.er1 >conftest.err
2077 rm -f conftest.er1
2078 cat conftest.err >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002080 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002081 { ac_try='test -z "$ac_c_werror_flag"
2082 || test ! -s conftest.err'
2083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002084 (eval $ac_try) 2>&5
2085 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002093 (exit $ac_status); }; }; then
2094 ac_cv_prog_cc_g=yes
2095else
2096 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002097sed 's/^/| /' conftest.$ac_ext >&5
2098
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002099ac_cv_prog_cc_g=no
2100fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002102fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002103echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002104echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2105if test "$ac_test_CFLAGS" = set; then
2106 CFLAGS=$ac_save_CFLAGS
2107elif test $ac_cv_prog_cc_g = yes; then
2108 if test "$GCC" = yes; then
2109 CFLAGS="-g -O2"
2110 else
2111 CFLAGS="-g"
2112 fi
2113else
2114 if test "$GCC" = yes; then
2115 CFLAGS="-O2"
2116 else
2117 CFLAGS=
2118 fi
2119fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002120echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2121echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2122if test "${ac_cv_prog_cc_stdc+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125 ac_cv_prog_cc_stdc=no
2126ac_save_CC=$CC
2127cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h. */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h. */
2133#include <stdarg.h>
2134#include <stdio.h>
2135#include <sys/types.h>
2136#include <sys/stat.h>
2137/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2138struct buf { int x; };
2139FILE * (*rcsopen) (struct buf *, struct stat *, int);
2140static char *e (p, i)
2141 char **p;
2142 int i;
2143{
2144 return p[i];
2145}
2146static char *f (char * (*g) (char **, int), char **p, ...)
2147{
2148 char *s;
2149 va_list v;
2150 va_start (v,p);
2151 s = g (p, va_arg (v,int));
2152 va_end (v);
2153 return s;
2154}
2155
2156/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2157 function prototypes and stuff, but not '\xHH' hex character constants.
2158 These don't provoke an error unfortunately, instead are silently treated
2159 as 'x'. The following induces an error, until -std1 is added to get
2160 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2161 array size at least. It's necessary to write '\x00'==0 to get something
2162 that's true only with -std1. */
2163int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2164
2165int test (int i, double x);
2166struct s1 {int (*f) (int a);};
2167struct s2 {int (*f) (double a);};
2168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2169int argc;
2170char **argv;
2171int
2172main ()
2173{
2174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179# Don't try gcc -ansi; that turns off useful extensions and
2180# breaks some systems' header files.
2181# AIX -qlanglvl=ansi
2182# Ultrix and OSF/1 -std1
2183# HP-UX 10.20 and later -Ae
2184# HP-UX older versions -Aa -D_HPUX_SOURCE
2185# SVR4 -Xc -D__EXTENSIONS__
2186for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2187do
2188 CC="$ac_save_CC $ac_arg"
2189 rm -f conftest.$ac_objext
2190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>conftest.er1
2192 ac_status=$?
2193 grep -v '^ *+' conftest.er1 >conftest.err
2194 rm -f conftest.er1
2195 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -z "$ac_c_werror_flag"
2199 || test ! -s conftest.err'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 (eval $ac_try) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; } &&
2205 { ac_try='test -s conftest.$ac_objext'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2211 ac_cv_prog_cc_stdc=$ac_arg
2212break
2213else
2214 echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217fi
2218rm -f conftest.err conftest.$ac_objext
2219done
2220rm -f conftest.$ac_ext conftest.$ac_objext
2221CC=$ac_save_CC
2222
2223fi
2224
2225case "x$ac_cv_prog_cc_stdc" in
2226 x|xno)
2227 echo "$as_me:$LINENO: result: none needed" >&5
2228echo "${ECHO_T}none needed" >&6 ;;
2229 *)
2230 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2231echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2232 CC="$CC $ac_cv_prog_cc_stdc" ;;
2233esac
2234
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002235# Some people use a C++ compiler to compile C. Since we use `exit',
2236# in C++ we need to declare it. In case someone uses the same compiler
2237# for both compiling C and C++ we need to have the C++ compiler decide
2238# the declaration of exit, since it's the most demanding environment.
2239cat >conftest.$ac_ext <<_ACEOF
2240#ifndef __cplusplus
2241 choke me
2242#endif
2243_ACEOF
2244rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002247 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002248 grep -v '^ *+' conftest.er1 >conftest.err
2249 rm -f conftest.er1
2250 cat conftest.err >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002252 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002253 { ac_try='test -z "$ac_c_werror_flag"
2254 || test ! -s conftest.err'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002256 (eval $ac_try) 2>&5
2257 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002265 (exit $ac_status); }; }; then
2266 for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002267 '' \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002268 'extern "C" void std::exit (int) throw (); using std::exit;' \
2269 'extern "C" void std::exit (int); using std::exit;' \
2270 'extern "C" void exit (int) throw ();' \
2271 'extern "C" void exit (int);' \
2272 'void exit (int);'
2273do
2274 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002275/* confdefs.h. */
2276_ACEOF
2277cat confdefs.h >>conftest.$ac_ext
2278cat >>conftest.$ac_ext <<_ACEOF
2279/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002280$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002281#include <stdlib.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002282int
2283main ()
2284{
2285exit (42);
2286 ;
2287 return 0;
2288}
2289_ACEOF
2290rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002293 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002294 grep -v '^ *+' conftest.er1 >conftest.err
2295 rm -f conftest.er1
2296 cat conftest.err >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002298 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002299 { ac_try='test -z "$ac_c_werror_flag"
2300 || test ! -s conftest.err'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002302 (eval $ac_try) 2>&5
2303 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; } &&
2306 { ac_try='test -s conftest.$ac_objext'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002311 (exit $ac_status); }; }; then
2312 :
2313else
2314 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002315sed 's/^/| /' conftest.$ac_ext >&5
2316
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002317continue
2318fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002320 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002321/* confdefs.h. */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002326$ac_declaration
2327int
2328main ()
2329{
2330exit (42);
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002338 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002339 grep -v '^ *+' conftest.er1 >conftest.err
2340 rm -f conftest.er1
2341 cat conftest.err >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002343 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002344 { ac_try='test -z "$ac_c_werror_flag"
2345 || test ! -s conftest.err'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002347 (eval $ac_try) 2>&5
2348 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002356 (exit $ac_status); }; }; then
2357 break
2358else
2359 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002360sed 's/^/| /' conftest.$ac_ext >&5
2361
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002362fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002364done
2365rm -f conftest*
2366if test -n "$ac_declaration"; then
2367 echo '#ifdef __cplusplus' >>confdefs.h
2368 echo $ac_declaration >>confdefs.h
2369 echo '#endif' >>confdefs.h
2370fi
2371
2372else
2373 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002374sed 's/^/| /' conftest.$ac_ext >&5
2375
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002376fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002378ac_ext=c
2379ac_cpp='$CPP $CPPFLAGS'
2380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002384ac_ext=cc
2385ac_cpp='$CXXCPP $CPPFLAGS'
2386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2389if test -n "$ac_tool_prefix"; then
2390 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2391 do
2392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002394echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396if test "${ac_cv_prog_CXX+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399 if test -n "$CXX"; then
2400 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2401else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002414done
2415
2416fi
2417fi
2418CXX=$ac_cv_prog_CXX
2419if test -n "$CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002420 echo "$as_me:$LINENO: result: $CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002421echo "${ECHO_T}$CXX" >&6
2422else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002423 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002424echo "${ECHO_T}no" >&6
2425fi
2426
2427 test -n "$CXX" && break
2428 done
2429fi
2430if test -z "$CXX"; then
2431 ac_ct_CXX=$CXX
2432 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2433do
2434 # Extract the first word of "$ac_prog", so it can be a program name with args.
2435set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002436echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2438if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441 if test -n "$ac_ct_CXX"; then
2442 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2443else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 ac_cv_prog_ac_ct_CXX="$ac_prog"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002456done
2457
2458fi
2459fi
2460ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2461if test -n "$ac_ct_CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002462 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002463echo "${ECHO_T}$ac_ct_CXX" >&6
2464else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002465 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002466echo "${ECHO_T}no" >&6
2467fi
2468
2469 test -n "$ac_ct_CXX" && break
2470done
2471test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2472
2473 CXX=$ac_ct_CXX
2474fi
2475
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002476
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002477# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002478echo "$as_me:$LINENO:" \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002479 "checking for C++ compiler version" >&5
2480ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002481{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002482 (eval $ac_compiler --version </dev/null >&5) 2>&5
2483 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002485 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002486{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002487 (eval $ac_compiler -v </dev/null >&5) 2>&5
2488 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002490 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002491{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002492 (eval $ac_compiler -V </dev/null >&5) 2>&5
2493 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002495 (exit $ac_status); }
2496
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002497echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002498echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2499if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002503/* confdefs.h. */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002508
2509int
2510main ()
2511{
2512#ifndef __GNUC__
2513 choke me
2514#endif
2515
2516 ;
2517 return 0;
2518}
2519_ACEOF
2520rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002523 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002528 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002529 { ac_try='test -z "$ac_cxx_werror_flag"
2530 || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002532 (eval $ac_try) 2>&5
2533 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002541 (exit $ac_status); }; }; then
2542 ac_compiler_gnu=yes
2543else
2544 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002545sed 's/^/| /' conftest.$ac_ext >&5
2546
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002547ac_compiler_gnu=no
2548fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002550ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2551
2552fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002553echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002554echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2555GXX=`test $ac_compiler_gnu = yes && echo yes`
2556ac_test_CXXFLAGS=${CXXFLAGS+set}
2557ac_save_CXXFLAGS=$CXXFLAGS
2558CXXFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002559echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002560echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2561if test "${ac_cv_prog_cxx_g+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002565/* confdefs.h. */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
2569/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002570
2571int
2572main ()
2573{
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002582 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002587 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002588 { ac_try='test -z "$ac_cxx_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002591 (eval $ac_try) 2>&5
2592 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002600 (exit $ac_status); }; }; then
2601 ac_cv_prog_cxx_g=yes
2602else
2603 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002604sed 's/^/| /' conftest.$ac_ext >&5
2605
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002606ac_cv_prog_cxx_g=no
2607fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002609fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002610echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002611echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2612if test "$ac_test_CXXFLAGS" = set; then
2613 CXXFLAGS=$ac_save_CXXFLAGS
2614elif test $ac_cv_prog_cxx_g = yes; then
2615 if test "$GXX" = yes; then
2616 CXXFLAGS="-g -O2"
2617 else
2618 CXXFLAGS="-g"
2619 fi
2620else
2621 if test "$GXX" = yes; then
2622 CXXFLAGS="-O2"
2623 else
2624 CXXFLAGS=
2625 fi
2626fi
2627for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002628 '' \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002629 'extern "C" void std::exit (int) throw (); using std::exit;' \
2630 'extern "C" void std::exit (int); using std::exit;' \
2631 'extern "C" void exit (int) throw ();' \
2632 'extern "C" void exit (int);' \
2633 'void exit (int);'
2634do
2635 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002641$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002642#include <stdlib.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002643int
2644main ()
2645{
2646exit (42);
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002654 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002659 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002660 { ac_try='test -z "$ac_cxx_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002663 (eval $ac_try) 2>&5
2664 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest.$ac_objext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002672 (exit $ac_status); }; }; then
2673 :
2674else
2675 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002676sed 's/^/| /' conftest.$ac_ext >&5
2677
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002678continue
2679fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002681 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002682/* confdefs.h. */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002687$ac_declaration
2688int
2689main ()
2690{
2691exit (42);
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002699 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002704 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002705 { ac_try='test -z "$ac_cxx_werror_flag"
2706 || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002708 (eval $ac_try) 2>&5
2709 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002717 (exit $ac_status); }; }; then
2718 break
2719else
2720 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002721sed 's/^/| /' conftest.$ac_ext >&5
2722
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002723fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002725done
2726rm -f conftest*
2727if test -n "$ac_declaration"; then
2728 echo '#ifdef __cplusplus' >>confdefs.h
2729 echo $ac_declaration >>confdefs.h
2730 echo '#endif' >>confdefs.h
2731fi
2732
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002733ac_ext=c
2734ac_cpp='$CPP $CPPFLAGS'
2735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002745
2746
Benny Prijono12483112007-03-12 10:44:38 +00002747ac_pjdir=`pwd`
2748
2749
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002750
2751echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002752echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2753if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756 ac_check_lib_save_LIBS=$LIBS
2757LIBS="-lpthread $LIBS"
2758cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002759/* confdefs.h. */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002764
2765/* Override any gcc2 internal prototype to avoid an error. */
2766#ifdef __cplusplus
2767extern "C"
2768#endif
2769/* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2771char pthread_create ();
2772int
2773main ()
2774{
2775pthread_create ();
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2782 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002783 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002788 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002792 (eval $ac_try) 2>&5
2793 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest$ac_exeext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002801 (exit $ac_status); }; }; then
2802 ac_cv_lib_pthread_pthread_create=yes
2803else
2804 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002805sed 's/^/| /' conftest.$ac_ext >&5
2806
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002807ac_cv_lib_pthread_pthread_create=no
2808fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002809rm -f conftest.err conftest.$ac_objext \
2810 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002811LIBS=$ac_check_lib_save_LIBS
2812fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002813echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002814echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2815if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002816 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002817#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002818_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002819
2820 LIBS="-lpthread $LIBS"
2821
2822fi
2823
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002824
2825echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002826echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
2827if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830 ac_check_lib_save_LIBS=$LIBS
2831LIBS="-lwsock32 $LIBS"
2832cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002833/* confdefs.h. */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002838
2839/* Override any gcc2 internal prototype to avoid an error. */
2840#ifdef __cplusplus
2841extern "C"
2842#endif
2843/* We use char because int might match the return type of a gcc2
2844 builtin and then its argument prototype would still apply. */
2845char puts ();
2846int
2847main ()
2848{
2849puts ();
2850 ;
2851 return 0;
2852}
2853_ACEOF
2854rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2856 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002857 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002858 grep -v '^ *+' conftest.er1 >conftest.err
2859 rm -f conftest.er1
2860 cat conftest.err >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002862 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002863 { ac_try='test -z "$ac_c_werror_flag"
2864 || test ! -s conftest.err'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002866 (eval $ac_try) 2>&5
2867 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; } &&
2870 { ac_try='test -s conftest$ac_exeext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002875 (exit $ac_status); }; }; then
2876 ac_cv_lib_wsock32_puts=yes
2877else
2878 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002879sed 's/^/| /' conftest.$ac_ext >&5
2880
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002881ac_cv_lib_wsock32_puts=no
2882fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002883rm -f conftest.err conftest.$ac_objext \
2884 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002885LIBS=$ac_check_lib_save_LIBS
2886fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002887echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002888echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
2889if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002890 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002891#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002892_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002893
2894 LIBS="-lwsock32 $LIBS"
2895
2896fi
2897
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002898
2899echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002900echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
2901if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903else
2904 ac_check_lib_save_LIBS=$LIBS
2905LIBS="-lws2_32 $LIBS"
2906cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002912
2913/* Override any gcc2 internal prototype to avoid an error. */
2914#ifdef __cplusplus
2915extern "C"
2916#endif
2917/* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2919char puts ();
2920int
2921main ()
2922{
2923puts ();
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002931 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002936 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002937 { ac_try='test -z "$ac_c_werror_flag"
2938 || test ! -s conftest.err'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002940 (eval $ac_try) 2>&5
2941 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest$ac_exeext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002949 (exit $ac_status); }; }; then
2950 ac_cv_lib_ws2_32_puts=yes
2951else
2952 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002953sed 's/^/| /' conftest.$ac_ext >&5
2954
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002955ac_cv_lib_ws2_32_puts=no
2956fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002957rm -f conftest.err conftest.$ac_objext \
2958 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002959LIBS=$ac_check_lib_save_LIBS
2960fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002961echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002962echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
2963if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002964 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002965#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002966_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002967
2968 LIBS="-lws2_32 $LIBS"
2969
2970fi
2971
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002972
2973echo "$as_me:$LINENO: checking for puts in -lole32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002974echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
2975if test "${ac_cv_lib_ole32_puts+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977else
2978 ac_check_lib_save_LIBS=$LIBS
2979LIBS="-lole32 $LIBS"
2980cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002986
2987/* Override any gcc2 internal prototype to avoid an error. */
2988#ifdef __cplusplus
2989extern "C"
2990#endif
2991/* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2993char puts ();
2994int
2995main ()
2996{
2997puts ();
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3004 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003005 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003010 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003011 { ac_try='test -z "$ac_c_werror_flag"
3012 || test ! -s conftest.err'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003014 (eval $ac_try) 2>&5
3015 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest$ac_exeext'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 (eval $ac_try) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003023 (exit $ac_status); }; }; then
3024 ac_cv_lib_ole32_puts=yes
3025else
3026 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003027sed 's/^/| /' conftest.$ac_ext >&5
3028
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003029ac_cv_lib_ole32_puts=no
3030fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003031rm -f conftest.err conftest.$ac_objext \
3032 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003033LIBS=$ac_check_lib_save_LIBS
3034fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003035echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003036echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
3037if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003038 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003039#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003040_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003041
3042 LIBS="-lole32 $LIBS"
3043
3044fi
3045
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003046
3047echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003048echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
3049if test "${ac_cv_lib_winmm_puts+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052 ac_check_lib_save_LIBS=$LIBS
3053LIBS="-lwinmm $LIBS"
3054cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003060
3061/* Override any gcc2 internal prototype to avoid an error. */
3062#ifdef __cplusplus
3063extern "C"
3064#endif
3065/* We use char because int might match the return type of a gcc2
3066 builtin and then its argument prototype would still apply. */
3067char puts ();
3068int
3069main ()
3070{
3071puts ();
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003079 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003084 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003088 (eval $ac_try) 2>&5
3089 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest$ac_exeext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003097 (exit $ac_status); }; }; then
3098 ac_cv_lib_winmm_puts=yes
3099else
3100 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003101sed 's/^/| /' conftest.$ac_ext >&5
3102
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003103ac_cv_lib_winmm_puts=no
3104fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003105rm -f conftest.err conftest.$ac_objext \
3106 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003107LIBS=$ac_check_lib_save_LIBS
3108fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003109echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003110echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
3111if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003113#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003115
3116 LIBS="-lwinmm $LIBS"
3117
3118fi
3119
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003120
3121echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003122echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
3123if test "${ac_cv_lib_socket_puts+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 ac_check_lib_save_LIBS=$LIBS
3127LIBS="-lsocket $LIBS"
3128cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003134
3135/* Override any gcc2 internal prototype to avoid an error. */
3136#ifdef __cplusplus
3137extern "C"
3138#endif
3139/* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3141char puts ();
3142int
3143main ()
3144{
3145puts ();
3146 ;
3147 return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3152 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003153 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003158 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003159 { ac_try='test -z "$ac_c_werror_flag"
3160 || test ! -s conftest.err'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003162 (eval $ac_try) 2>&5
3163 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest$ac_exeext'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 (eval $ac_try) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003171 (exit $ac_status); }; }; then
3172 ac_cv_lib_socket_puts=yes
3173else
3174 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003175sed 's/^/| /' conftest.$ac_ext >&5
3176
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003177ac_cv_lib_socket_puts=no
3178fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003179rm -f conftest.err conftest.$ac_objext \
3180 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003181LIBS=$ac_check_lib_save_LIBS
3182fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003183echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003184echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
3185if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003186 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003187#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003188_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003189
3190 LIBS="-lsocket $LIBS"
3191
3192fi
3193
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003194
3195echo "$as_me:$LINENO: checking for puts in -lrt" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003196echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
3197if test "${ac_cv_lib_rt_puts+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200 ac_check_lib_save_LIBS=$LIBS
3201LIBS="-lrt $LIBS"
3202cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003203/* confdefs.h. */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003208
3209/* Override any gcc2 internal prototype to avoid an error. */
3210#ifdef __cplusplus
3211extern "C"
3212#endif
3213/* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3215char puts ();
3216int
3217main ()
3218{
3219puts ();
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3226 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003227 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003232 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003233 { ac_try='test -z "$ac_c_werror_flag"
3234 || test ! -s conftest.err'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003236 (eval $ac_try) 2>&5
3237 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003245 (exit $ac_status); }; }; then
3246 ac_cv_lib_rt_puts=yes
3247else
3248 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003249sed 's/^/| /' conftest.$ac_ext >&5
3250
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003251ac_cv_lib_rt_puts=no
3252fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003253rm -f conftest.err conftest.$ac_objext \
3254 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003255LIBS=$ac_check_lib_save_LIBS
3256fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003257echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003258echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
3259if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003260 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003261#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003262_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003263
3264 LIBS="-lrt $LIBS"
3265
3266fi
3267
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003268
3269echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003270echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
3271if test "${ac_cv_lib_nsl_puts+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274 ac_check_lib_save_LIBS=$LIBS
3275LIBS="-lnsl $LIBS"
3276cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003282
3283/* Override any gcc2 internal prototype to avoid an error. */
3284#ifdef __cplusplus
3285extern "C"
3286#endif
3287/* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3289char puts ();
3290int
3291main ()
3292{
3293puts ();
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3300 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003301 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003306 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003307 { ac_try='test -z "$ac_c_werror_flag"
3308 || test ! -s conftest.err'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003310 (eval $ac_try) 2>&5
3311 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest$ac_exeext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003319 (exit $ac_status); }; }; then
3320 ac_cv_lib_nsl_puts=yes
3321else
3322 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003323sed 's/^/| /' conftest.$ac_ext >&5
3324
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003325ac_cv_lib_nsl_puts=no
3326fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003327rm -f conftest.err conftest.$ac_objext \
3328 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003329LIBS=$ac_check_lib_save_LIBS
3330fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003331echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003332echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
3333if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003334 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003335#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003336_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003337
3338 LIBS="-lnsl $LIBS"
3339
3340fi
3341
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003342
Benny Prijono4e48b512007-05-16 13:41:00 +00003343echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3344echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
3345if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348 ac_check_lib_save_LIBS=$LIBS
3349LIBS="-luuid $LIBS"
3350cat >conftest.$ac_ext <<_ACEOF
3351/* confdefs.h. */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h. */
3356
3357/* Override any gcc2 internal prototype to avoid an error. */
3358#ifdef __cplusplus
3359extern "C"
3360#endif
3361/* We use char because int might match the return type of a gcc2
3362 builtin and then its argument prototype would still apply. */
3363char uuid_generate ();
3364int
3365main ()
3366{
3367uuid_generate ();
3368 ;
3369 return 0;
3370}
3371_ACEOF
3372rm -f conftest.$ac_objext conftest$ac_exeext
3373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3374 (eval $ac_link) 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -z "$ac_c_werror_flag"
3382 || test ! -s conftest.err'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest$ac_exeext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_lib_uuid_uuid_generate=yes
3395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399ac_cv_lib_uuid_uuid_generate=no
3400fi
3401rm -f conftest.err conftest.$ac_objext \
3402 conftest$ac_exeext conftest.$ac_ext
3403LIBS=$ac_check_lib_save_LIBS
3404fi
3405echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3406echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
3407if test $ac_cv_lib_uuid_uuid_generate = yes; then
3408 cat >>confdefs.h <<_ACEOF
3409#define HAVE_LIBUUID 1
3410_ACEOF
3411
3412 LIBS="-luuid $LIBS"
3413
3414fi
3415
3416echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3417echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
3418if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421 ac_check_lib_save_LIBS=$LIBS
3422LIBS="-luuid $LIBS"
3423cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
3429
3430/* Override any gcc2 internal prototype to avoid an error. */
3431#ifdef __cplusplus
3432extern "C"
3433#endif
3434/* We use char because int might match the return type of a gcc2
3435 builtin and then its argument prototype would still apply. */
3436char uuid_generate ();
3437int
3438main ()
3439{
3440uuid_generate ();
3441 ;
3442 return 0;
3443}
3444_ACEOF
3445rm -f conftest.$ac_objext conftest$ac_exeext
3446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3447 (eval $ac_link) 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -z "$ac_c_werror_flag"
3455 || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest$ac_exeext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 ac_cv_lib_uuid_uuid_generate=yes
3468else
3469 echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472ac_cv_lib_uuid_uuid_generate=no
3473fi
3474rm -f conftest.err conftest.$ac_objext \
3475 conftest$ac_exeext conftest.$ac_ext
3476LIBS=$ac_check_lib_save_LIBS
3477fi
3478echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3479echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
3480if test $ac_cv_lib_uuid_uuid_generate = yes; then
3481 ac_has_uuid_lib=1
3482fi
3483
3484
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003485echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3486echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
3487cat >>confdefs.h <<_ACEOF
3488#define PJ_M_NAME "$target_cpu"
3489_ACEOF
3490
3491
3492echo "$as_me:$LINENO: checking memory alignment" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003493echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
3494case $target in
3495 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003496 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003497#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003498_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003499
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003500 echo "$as_me:$LINENO: result: 8 bytes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003501echo "${ECHO_T}8 bytes" >&6
3502 ;;
3503 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003504 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003505#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003506_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003507
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003508 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003509echo "${ECHO_T}4 bytes (default)" >&6
3510 ;;
3511esac
3512
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003513
3514echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003515echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3516if test "${ac_cv_c_bigendian+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003519 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003520cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003521/* confdefs.h. */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003526#include <sys/types.h>
3527#include <sys/param.h>
3528
3529int
3530main ()
3531{
3532#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3533 bogus endian macros
3534#endif
3535
3536 ;
3537 return 0;
3538}
3539_ACEOF
3540rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003543 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003548 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003549 { ac_try='test -z "$ac_c_werror_flag"
3550 || test ! -s conftest.err'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003552 (eval $ac_try) 2>&5
3553 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003561 (exit $ac_status); }; }; then
3562 # It does; now see whether it defined to BIG_ENDIAN or not.
3563cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003564/* confdefs.h. */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003569#include <sys/types.h>
3570#include <sys/param.h>
3571
3572int
3573main ()
3574{
3575#if BYTE_ORDER != BIG_ENDIAN
3576 not big endian
3577#endif
3578
3579 ;
3580 return 0;
3581}
3582_ACEOF
3583rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3585 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003586 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003587 grep -v '^ *+' conftest.er1 >conftest.err
3588 rm -f conftest.er1
3589 cat conftest.err >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003591 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003592 { ac_try='test -z "$ac_c_werror_flag"
3593 || test ! -s conftest.err'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003595 (eval $ac_try) 2>&5
3596 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; } &&
3599 { ac_try='test -s conftest.$ac_objext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003604 (exit $ac_status); }; }; then
3605 ac_cv_c_bigendian=yes
3606else
3607 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003608sed 's/^/| /' conftest.$ac_ext >&5
3609
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003610ac_cv_c_bigendian=no
3611fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003613else
3614 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003618if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003619 # try to guess the endianness by grepping values into an object file
3620 ac_cv_c_bigendian=unknown
3621 cat >conftest.$ac_ext <<_ACEOF
3622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3626/* end confdefs.h. */
3627short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3628short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3629void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3630short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3631short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3632void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3633int
3634main ()
3635{
3636 _ascii (); _ebcdic ();
3637 ;
3638 return 0;
3639}
3640_ACEOF
3641rm -f conftest.$ac_objext
3642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3664 ac_cv_c_bigendian=yes
3665fi
3666if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3667 if test "$ac_cv_c_bigendian" = unknown; then
3668 ac_cv_c_bigendian=no
3669 else
3670 # finding both strings is unlikely to happen, but who knows?
3671 ac_cv_c_bigendian=unknown
3672 fi
3673fi
3674else
3675 echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003680else
3681 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003687int
3688main ()
3689{
3690 /* Are we little or big endian? From Harbison&Steele. */
3691 union
3692 {
3693 long l;
3694 char c[sizeof (long)];
3695 } u;
3696 u.l = 1;
3697 exit (u.c[sizeof (long) - 1] == 1);
3698}
3699_ACEOF
3700rm -f conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003702 (eval $ac_link) 2>&5
3703 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003707 (eval $ac_try) 2>&5
3708 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003710 (exit $ac_status); }; }; then
3711 ac_cv_c_bigendian=no
3712else
3713 echo "$as_me: program exited with status $ac_status" >&5
3714echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003718ac_cv_c_bigendian=yes
3719fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003720rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003721fi
3722fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003724fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003725echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003726echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003727case $ac_cv_c_bigendian in
3728 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003729
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003730cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003731#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003732_ACEOF
3733 ;;
3734 no)
3735 ;;
3736 *)
3737 { { echo "$as_me:$LINENO: error: unknown endianness
3738presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3739echo "$as_me: error: unknown endianness
3740presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3741 { (exit 1); exit 1; }; } ;;
3742esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003743
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003744
3745case $target in
3746 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003747 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003748#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003749_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003750
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003751 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003752#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003753_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003754
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003755 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003756#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003757_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003758
3759 ;;
3760 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003761 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003762#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003763_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003764
3765 ;;
3766 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003767 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003768#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003769_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003770
3771 ;;
3772 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003773 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003774#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003775_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003776
3777 ;;
3778 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003779 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003780#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003781_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003782
3783 ;;
3784 *)
3785 ;;
3786esac
3787
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003788
3789
3790
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003791# Check whether --enable-floating-point or --disable-floating-point was given.
3792if test "${enable_floating_point+set}" = set; then
3793 enableval="$enable_floating_point"
3794 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003795 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003796#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003797_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003798
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003799 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003800echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
3801 fi
3802else
3803
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 1
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... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003809echo "${ECHO_T}Checking if floating point is disabled... no" >&6
3810
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003811echo "$as_me:$LINENO: checking for fmod in -lm" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003812echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
3813if test "${ac_cv_lib_m_fmod+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816 ac_check_lib_save_LIBS=$LIBS
3817LIBS="-lm $LIBS"
3818cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003819/* confdefs.h. */
3820_ACEOF
3821cat confdefs.h >>conftest.$ac_ext
3822cat >>conftest.$ac_ext <<_ACEOF
3823/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003824
3825/* Override any gcc2 internal prototype to avoid an error. */
3826#ifdef __cplusplus
3827extern "C"
3828#endif
3829/* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3831char fmod ();
3832int
3833main ()
3834{
3835fmod ();
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003843 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003848 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003849 { ac_try='test -z "$ac_c_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003852 (eval $ac_try) 2>&5
3853 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003861 (exit $ac_status); }; }; then
3862 ac_cv_lib_m_fmod=yes
3863else
3864 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003865sed 's/^/| /' conftest.$ac_ext >&5
3866
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003867ac_cv_lib_m_fmod=no
3868fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003869rm -f conftest.err conftest.$ac_objext \
3870 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003871LIBS=$ac_check_lib_save_LIBS
3872fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003873echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003874echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
3875if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003876 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003877#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003878_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003879
3880 LIBS="-lm $LIBS"
3881
3882fi
3883
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003884
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003885fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003886
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003887
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003888ac_ext=c
3889ac_cpp='$CPP $CPPFLAGS'
3890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003893echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003894echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3895# On Suns, sometimes $CPP names a directory.
3896if test -n "$CPP" && test -d "$CPP"; then
3897 CPP=
3898fi
3899if test -z "$CPP"; then
3900 if test "${ac_cv_prog_CPP+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903 # Double quotes because CPP needs to be expanded
3904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3905 do
3906 ac_preproc_ok=false
3907for ac_c_preproc_warn_flag in '' yes
3908do
3909 # Use a header file that comes with gcc, so configuring glibc
3910 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3912 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003913 # On the NeXT, cc -E runs the code through the compiler's parser,
3914 # not just through cpp. "Syntax error" is here to catch this case.
3915 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003916/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003917_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
3921#ifdef __STDC__
3922# include <limits.h>
3923#else
3924# include <assert.h>
3925#endif
3926 Syntax error
3927_ACEOF
3928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3930 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003931 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003932 rm -f conftest.er1
3933 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003935 (exit $ac_status); } >/dev/null; then
3936 if test -s conftest.err; then
3937 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003939 else
3940 ac_cpp_err=
3941 fi
3942else
3943 ac_cpp_err=yes
3944fi
3945if test -z "$ac_cpp_err"; then
3946 :
3947else
3948 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003949sed 's/^/| /' conftest.$ac_ext >&5
3950
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003951 # Broken: fails on valid input.
3952continue
3953fi
3954rm -f conftest.err conftest.$ac_ext
3955
3956 # OK, works on sane cases. Now check whether non-existent headers
3957 # can be detected and how.
3958 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003964#include <ac_nonexistent.h>
3965_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3968 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003969 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003970 rm -f conftest.er1
3971 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003973 (exit $ac_status); } >/dev/null; then
3974 if test -s conftest.err; then
3975 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003977 else
3978 ac_cpp_err=
3979 fi
3980else
3981 ac_cpp_err=yes
3982fi
3983if test -z "$ac_cpp_err"; then
3984 # Broken: success on invalid input.
3985continue
3986else
3987 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003988sed 's/^/| /' conftest.$ac_ext >&5
3989
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003990 # Passes both tests.
3991ac_preproc_ok=:
3992break
3993fi
3994rm -f conftest.err conftest.$ac_ext
3995
3996done
3997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3998rm -f conftest.err conftest.$ac_ext
3999if $ac_preproc_ok; then
4000 break
4001fi
4002
4003 done
4004 ac_cv_prog_CPP=$CPP
4005
4006fi
4007 CPP=$ac_cv_prog_CPP
4008else
4009 ac_cv_prog_CPP=$CPP
4010fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004011echo "$as_me:$LINENO: result: $CPP" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004012echo "${ECHO_T}$CPP" >&6
4013ac_preproc_ok=false
4014for ac_c_preproc_warn_flag in '' yes
4015do
4016 # Use a header file that comes with gcc, so configuring glibc
4017 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004020 # On the NeXT, cc -E runs the code through the compiler's parser,
4021 # not just through cpp. "Syntax error" is here to catch this case.
4022 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004023/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004024_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h. */
4028#ifdef __STDC__
4029# include <limits.h>
4030#else
4031# include <assert.h>
4032#endif
4033 Syntax error
4034_ACEOF
4035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4037 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004038 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004039 rm -f conftest.er1
4040 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004042 (exit $ac_status); } >/dev/null; then
4043 if test -s conftest.err; then
4044 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004046 else
4047 ac_cpp_err=
4048 fi
4049else
4050 ac_cpp_err=yes
4051fi
4052if test -z "$ac_cpp_err"; then
4053 :
4054else
4055 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004056sed 's/^/| /' conftest.$ac_ext >&5
4057
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004058 # Broken: fails on valid input.
4059continue
4060fi
4061rm -f conftest.err conftest.$ac_ext
4062
4063 # OK, works on sane cases. Now check whether non-existent headers
4064 # can be detected and how.
4065 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004066/* confdefs.h. */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004071#include <ac_nonexistent.h>
4072_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4075 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004076 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004077 rm -f conftest.er1
4078 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004080 (exit $ac_status); } >/dev/null; then
4081 if test -s conftest.err; then
4082 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004084 else
4085 ac_cpp_err=
4086 fi
4087else
4088 ac_cpp_err=yes
4089fi
4090if test -z "$ac_cpp_err"; then
4091 # Broken: success on invalid input.
4092continue
4093else
4094 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004095sed 's/^/| /' conftest.$ac_ext >&5
4096
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004097 # Passes both tests.
4098ac_preproc_ok=:
4099break
4100fi
4101rm -f conftest.err conftest.$ac_ext
4102
4103done
4104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105rm -f conftest.err conftest.$ac_ext
4106if $ac_preproc_ok; then
4107 :
4108else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4110See \`config.log' for more details." >&5
4111echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4112See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004113 { (exit 1); exit 1; }; }
4114fi
4115
4116ac_ext=c
4117ac_cpp='$CPP $CPPFLAGS'
4118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004122
4123echo "$as_me:$LINENO: checking for egrep" >&5
4124echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4125if test "${ac_cv_prog_egrep+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4129 then ac_cv_prog_egrep='grep -E'
4130 else ac_cv_prog_egrep='egrep'
4131 fi
4132fi
4133echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4134echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4135 EGREP=$ac_cv_prog_egrep
4136
4137
4138echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4139echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4140if test "${ac_cv_header_stdc+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142else
4143 cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
4148/* end confdefs.h. */
4149#include <stdlib.h>
4150#include <stdarg.h>
4151#include <string.h>
4152#include <float.h>
4153
4154int
4155main ()
4156{
4157
4158 ;
4159 return 0;
4160}
4161_ACEOF
4162rm -f conftest.$ac_objext
4163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_header_stdc=yes
4185else
4186 echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189ac_cv_header_stdc=no
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192
4193if test $ac_cv_header_stdc = yes; then
4194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4195 cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h. */
4201#include <string.h>
4202
4203_ACEOF
4204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "memchr" >/dev/null 2>&1; then
4206 :
4207else
4208 ac_cv_header_stdc=no
4209fi
4210rm -f conftest*
4211
4212fi
4213
4214if test $ac_cv_header_stdc = yes; then
4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222#include <stdlib.h>
4223
4224_ACEOF
4225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226 $EGREP "free" >/dev/null 2>&1; then
4227 :
4228else
4229 ac_cv_header_stdc=no
4230fi
4231rm -f conftest*
4232
4233fi
4234
4235if test $ac_cv_header_stdc = yes; then
4236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4237 if test "$cross_compiling" = yes; then
4238 :
4239else
4240 cat >conftest.$ac_ext <<_ACEOF
4241/* confdefs.h. */
4242_ACEOF
4243cat confdefs.h >>conftest.$ac_ext
4244cat >>conftest.$ac_ext <<_ACEOF
4245/* end confdefs.h. */
4246#include <ctype.h>
4247#if ((' ' & 0x0FF) == 0x020)
4248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4250#else
4251# define ISLOWER(c) \
4252 (('a' <= (c) && (c) <= 'i') \
4253 || ('j' <= (c) && (c) <= 'r') \
4254 || ('s' <= (c) && (c) <= 'z'))
4255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4256#endif
4257
4258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4259int
4260main ()
4261{
4262 int i;
4263 for (i = 0; i < 256; i++)
4264 if (XOR (islower (i), ISLOWER (i))
4265 || toupper (i) != TOUPPER (i))
4266 exit(2);
4267 exit (0);
4268}
4269_ACEOF
4270rm -f conftest$ac_exeext
4271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 :
4282else
4283 echo "$as_me: program exited with status $ac_status" >&5
4284echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287( exit $ac_status )
4288ac_cv_header_stdc=no
4289fi
4290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291fi
4292fi
4293fi
4294echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4295echo "${ECHO_T}$ac_cv_header_stdc" >&6
4296if test $ac_cv_header_stdc = yes; then
4297
4298cat >>confdefs.h <<\_ACEOF
4299#define STDC_HEADERS 1
4300_ACEOF
4301
4302fi
4303
4304# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4315 inttypes.h stdint.h unistd.h
4316do
4317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4318echo "$as_me:$LINENO: checking for $ac_header" >&5
4319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h. */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h. */
4329$ac_includes_default
4330
4331#include <$ac_header>
4332_ACEOF
4333rm -f conftest.$ac_objext
4334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 eval "$as_ac_Header=yes"
4356else
4357 echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360eval "$as_ac_Header=no"
4361fi
4362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4366if test `eval echo '${'$as_ac_Header'}'` = yes; then
4367 cat >>confdefs.h <<_ACEOF
4368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4369_ACEOF
4370
4371fi
4372
4373done
4374
4375
4376if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4377 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4378echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4379if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381fi
4382echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4383echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4384else
4385 # Is the header compilable?
4386echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4387echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
4388cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394$ac_includes_default
4395#include <arpa/inet.h>
4396_ACEOF
4397rm -f conftest.$ac_objext
4398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag"
4407 || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 ac_header_compiler=yes
4420else
4421 echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424ac_header_compiler=no
4425fi
4426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4427echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4428echo "${ECHO_T}$ac_header_compiler" >&6
4429
4430# Is the header present?
4431echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4432echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
4433cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439#include <arpa/inet.h>
4440_ACEOF
4441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4443 ac_status=$?
4444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } >/dev/null; then
4449 if test -s conftest.err; then
4450 ac_cpp_err=$ac_c_preproc_warn_flag
4451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4452 else
4453 ac_cpp_err=
4454 fi
4455else
4456 ac_cpp_err=yes
4457fi
4458if test -z "$ac_cpp_err"; then
4459 ac_header_preproc=yes
4460else
4461 echo "$as_me: failed program was:" >&5
4462sed 's/^/| /' conftest.$ac_ext >&5
4463
4464 ac_header_preproc=no
4465fi
4466rm -f conftest.err conftest.$ac_ext
4467echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4468echo "${ECHO_T}$ac_header_preproc" >&6
4469
4470# So? What about this header?
4471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4472 yes:no: )
4473 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4474echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4475 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4476echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4477 ac_header_preproc=yes
4478 ;;
4479 no:yes:* )
4480 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4481echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4482 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4483echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4484 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4485echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4487echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4489echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4491echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
4492 (
4493 cat <<\_ASBOX
4494## ------------------------------------ ##
4495## Report this to the pjproject lists. ##
4496## ------------------------------------ ##
4497_ASBOX
4498 ) |
4499 sed "s/^/$as_me: WARNING: /" >&2
4500 ;;
4501esac
4502echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004503echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4504if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004506else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004507 ac_cv_header_arpa_inet_h=$ac_header_preproc
4508fi
4509echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4510echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4511
4512fi
4513if test $ac_cv_header_arpa_inet_h = yes; then
4514 cat >>confdefs.h <<\_ACEOF
4515#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004516_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004517
4518fi
4519
4520
4521if test "${ac_cv_header_assert_h+set}" = set; then
4522 echo "$as_me:$LINENO: checking for assert.h" >&5
4523echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4524if test "${ac_cv_header_assert_h+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526fi
4527echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4528echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4529else
4530 # Is the header compilable?
4531echo "$as_me:$LINENO: checking assert.h usability" >&5
4532echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
4533cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h. */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h. */
4539$ac_includes_default
4540#include <assert.h>
4541_ACEOF
4542rm -f conftest.$ac_objext
4543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004545 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004546 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004547 rm -f conftest.er1
4548 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_header_compiler=yes
4565else
4566 echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569ac_header_compiler=no
4570fi
4571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4573echo "${ECHO_T}$ac_header_compiler" >&6
4574
4575# Is the header present?
4576echo "$as_me:$LINENO: checking assert.h presence" >&5
4577echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
4578cat >conftest.$ac_ext <<_ACEOF
4579/* confdefs.h. */
4580_ACEOF
4581cat confdefs.h >>conftest.$ac_ext
4582cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h. */
4584#include <assert.h>
4585_ACEOF
4586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004593 (exit $ac_status); } >/dev/null; then
4594 if test -s conftest.err; then
4595 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004597 else
4598 ac_cpp_err=
4599 fi
4600else
4601 ac_cpp_err=yes
4602fi
4603if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004604 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004605else
4606 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004610fi
4611rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4613echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004614
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004615# So? What about this header?
4616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4617 yes:no: )
4618 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4619echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4620 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4621echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4622 ac_header_preproc=yes
4623 ;;
4624 no:yes:* )
4625 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4626echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4627 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4628echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4629 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4630echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4631 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4632echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4633 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4634echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4635 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4636echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
4637 (
4638 cat <<\_ASBOX
4639## ------------------------------------ ##
4640## Report this to the pjproject lists. ##
4641## ------------------------------------ ##
4642_ASBOX
4643 ) |
4644 sed "s/^/$as_me: WARNING: /" >&2
4645 ;;
4646esac
4647echo "$as_me:$LINENO: checking for assert.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004648echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4649if test "${ac_cv_header_assert_h+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004651else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004652 ac_cv_header_assert_h=$ac_header_preproc
4653fi
4654echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4655echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4656
4657fi
4658if test $ac_cv_header_assert_h = yes; then
4659 cat >>confdefs.h <<\_ACEOF
4660#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004661_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004662
4663fi
4664
4665
4666if test "${ac_cv_header_ctype_h+set}" = set; then
4667 echo "$as_me:$LINENO: checking for ctype.h" >&5
4668echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4669if test "${ac_cv_header_ctype_h+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671fi
4672echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4673echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4674else
4675 # Is the header compilable?
4676echo "$as_me:$LINENO: checking ctype.h usability" >&5
4677echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
4678cat >conftest.$ac_ext <<_ACEOF
4679/* confdefs.h. */
4680_ACEOF
4681cat confdefs.h >>conftest.$ac_ext
4682cat >>conftest.$ac_ext <<_ACEOF
4683/* end confdefs.h. */
4684$ac_includes_default
4685#include <ctype.h>
4686_ACEOF
4687rm -f conftest.$ac_objext
4688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004690 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004691 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004692 rm -f conftest.er1
4693 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_header_compiler=yes
4710else
4711 echo "$as_me: failed program was:" >&5
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714ac_header_compiler=no
4715fi
4716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4718echo "${ECHO_T}$ac_header_compiler" >&6
4719
4720# Is the header present?
4721echo "$as_me:$LINENO: checking ctype.h presence" >&5
4722echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
4723cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
4729#include <ctype.h>
4730_ACEOF
4731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004738 (exit $ac_status); } >/dev/null; then
4739 if test -s conftest.err; then
4740 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004742 else
4743 ac_cpp_err=
4744 fi
4745else
4746 ac_cpp_err=yes
4747fi
4748if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004749 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004750else
4751 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004755fi
4756rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4758echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004759
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004760# So? What about this header?
4761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4762 yes:no: )
4763 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4764echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4765 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4766echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4767 ac_header_preproc=yes
4768 ;;
4769 no:yes:* )
4770 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4771echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4772 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4773echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4774 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4775echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4776 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4777echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4779echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4780 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4781echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
4782 (
4783 cat <<\_ASBOX
4784## ------------------------------------ ##
4785## Report this to the pjproject lists. ##
4786## ------------------------------------ ##
4787_ASBOX
4788 ) |
4789 sed "s/^/$as_me: WARNING: /" >&2
4790 ;;
4791esac
4792echo "$as_me:$LINENO: checking for ctype.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004793echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4794if test "${ac_cv_header_ctype_h+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004796else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004797 ac_cv_header_ctype_h=$ac_header_preproc
4798fi
4799echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4800echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4801
4802fi
4803if test $ac_cv_header_ctype_h = yes; then
4804 cat >>confdefs.h <<\_ACEOF
4805#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004806_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004807
4808fi
4809
4810
4811
4812case $target in
4813 *mingw* | *cygw* | *win32* | *w32* )
4814 cat >>confdefs.h <<\_ACEOF
4815#define PJ_HAS_ERRNO_H 0
4816_ACEOF
4817
4818 ;;
4819 *)
4820 if test "${ac_cv_header_errno_h+set}" = set; then
4821 echo "$as_me:$LINENO: checking for errno.h" >&5
4822echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4823if test "${ac_cv_header_errno_h+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825fi
4826echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4827echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4828else
4829 # Is the header compilable?
4830echo "$as_me:$LINENO: checking errno.h usability" >&5
4831echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4832cat >conftest.$ac_ext <<_ACEOF
4833/* confdefs.h. */
4834_ACEOF
4835cat confdefs.h >>conftest.$ac_ext
4836cat >>conftest.$ac_ext <<_ACEOF
4837/* end confdefs.h. */
4838$ac_includes_default
4839#include <errno.h>
4840_ACEOF
4841rm -f conftest.$ac_objext
4842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004844 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004845 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004846 rm -f conftest.er1
4847 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_header_compiler=yes
4864else
4865 echo "$as_me: failed program was:" >&5
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
4868ac_header_compiler=no
4869fi
4870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4872echo "${ECHO_T}$ac_header_compiler" >&6
4873
4874# Is the header present?
4875echo "$as_me:$LINENO: checking errno.h presence" >&5
4876echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4877cat >conftest.$ac_ext <<_ACEOF
4878/* confdefs.h. */
4879_ACEOF
4880cat confdefs.h >>conftest.$ac_ext
4881cat >>conftest.$ac_ext <<_ACEOF
4882/* end confdefs.h. */
4883#include <errno.h>
4884_ACEOF
4885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004892 (exit $ac_status); } >/dev/null; then
4893 if test -s conftest.err; then
4894 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004896 else
4897 ac_cpp_err=
4898 fi
4899else
4900 ac_cpp_err=yes
4901fi
4902if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004903 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004904else
4905 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004909fi
4910rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004913
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004914# So? What about this header?
4915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4916 yes:no: )
4917 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4918echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4920echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4921 ac_header_preproc=yes
4922 ;;
4923 no:yes:* )
4924 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4925echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4927echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4928 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4929echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4930 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4931echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4933echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4935echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4936 (
4937 cat <<\_ASBOX
4938## ------------------------------------ ##
4939## Report this to the pjproject lists. ##
4940## ------------------------------------ ##
4941_ASBOX
4942 ) |
4943 sed "s/^/$as_me: WARNING: /" >&2
4944 ;;
4945esac
4946echo "$as_me:$LINENO: checking for errno.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004947echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4948if test "${ac_cv_header_errno_h+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004950else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004951 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004952fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004953echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004954echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004955
4956fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004957if test $ac_cv_header_errno_h = yes; then
4958 cat >>confdefs.h <<\_ACEOF
4959#define PJ_HAS_ERRNO_H 1
4960_ACEOF
4961
4962fi
4963
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004964
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004965 ;;
4966esac
4967
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004968if test "${ac_cv_header_linux_socket_h+set}" = set; then
4969 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4970echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4971if test "${ac_cv_header_linux_socket_h+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973fi
4974echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4975echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4976else
4977 # Is the header compilable?
4978echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
4979echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
4980cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
4986$ac_includes_default
4987#include <linux/socket.h>
4988_ACEOF
4989rm -f conftest.$ac_objext
4990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_c_werror_flag"
4999 || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try='test -s conftest.$ac_objext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_header_compiler=yes
5012else
5013 echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016ac_header_compiler=no
5017fi
5018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5020echo "${ECHO_T}$ac_header_compiler" >&6
5021
5022# Is the header present?
5023echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5024echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
5025cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h. */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h. */
5031#include <linux/socket.h>
5032_ACEOF
5033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } >/dev/null; then
5041 if test -s conftest.err; then
5042 ac_cpp_err=$ac_c_preproc_warn_flag
5043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5044 else
5045 ac_cpp_err=
5046 fi
5047else
5048 ac_cpp_err=yes
5049fi
5050if test -z "$ac_cpp_err"; then
5051 ac_header_preproc=yes
5052else
5053 echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056 ac_header_preproc=no
5057fi
5058rm -f conftest.err conftest.$ac_ext
5059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5060echo "${ECHO_T}$ac_header_preproc" >&6
5061
5062# So? What about this header?
5063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5064 yes:no: )
5065 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5066echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5068echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5069 ac_header_preproc=yes
5070 ;;
5071 no:yes:* )
5072 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5073echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5074 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5075echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5076 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5077echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5078 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5079echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5080 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5081echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5083echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
5084 (
5085 cat <<\_ASBOX
5086## ------------------------------------ ##
5087## Report this to the pjproject lists. ##
5088## ------------------------------------ ##
5089_ASBOX
5090 ) |
5091 sed "s/^/$as_me: WARNING: /" >&2
5092 ;;
5093esac
5094echo "$as_me:$LINENO: checking for linux/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005095echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
5096if test "${ac_cv_header_linux_socket_h+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005098else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005099 ac_cv_header_linux_socket_h=$ac_header_preproc
5100fi
5101echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5102echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
5103
5104fi
5105if test $ac_cv_header_linux_socket_h = yes; then
5106 cat >>confdefs.h <<\_ACEOF
5107#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005108_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005109
5110fi
5111
5112
5113if test "${ac_cv_header_malloc_h+set}" = set; then
5114 echo "$as_me:$LINENO: checking for malloc.h" >&5
5115echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5116if test "${ac_cv_header_malloc_h+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118fi
5119echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5120echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5121else
5122 # Is the header compilable?
5123echo "$as_me:$LINENO: checking malloc.h usability" >&5
5124echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
5125cat >conftest.$ac_ext <<_ACEOF
5126/* confdefs.h. */
5127_ACEOF
5128cat confdefs.h >>conftest.$ac_ext
5129cat >>conftest.$ac_ext <<_ACEOF
5130/* end confdefs.h. */
5131$ac_includes_default
5132#include <malloc.h>
5133_ACEOF
5134rm -f conftest.$ac_objext
5135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5136 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005137 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005138 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005139 rm -f conftest.er1
5140 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } &&
5143 { ac_try='test -z "$ac_c_werror_flag"
5144 || test ! -s conftest.err'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; } &&
5150 { ac_try='test -s conftest.$ac_objext'
5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 (eval $ac_try) 2>&5
5153 ac_status=$?
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; }; then
5156 ac_header_compiler=yes
5157else
5158 echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161ac_header_compiler=no
5162fi
5163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5164echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5165echo "${ECHO_T}$ac_header_compiler" >&6
5166
5167# Is the header present?
5168echo "$as_me:$LINENO: checking malloc.h presence" >&5
5169echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
5170cat >conftest.$ac_ext <<_ACEOF
5171/* confdefs.h. */
5172_ACEOF
5173cat confdefs.h >>conftest.$ac_ext
5174cat >>conftest.$ac_ext <<_ACEOF
5175/* end confdefs.h. */
5176#include <malloc.h>
5177_ACEOF
5178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005185 (exit $ac_status); } >/dev/null; then
5186 if test -s conftest.err; then
5187 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005189 else
5190 ac_cpp_err=
5191 fi
5192else
5193 ac_cpp_err=yes
5194fi
5195if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005196 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005197else
5198 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005202fi
5203rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005204echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5205echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005206
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005207# So? What about this header?
5208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5209 yes:no: )
5210 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5211echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5213echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5214 ac_header_preproc=yes
5215 ;;
5216 no:yes:* )
5217 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5218echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5220echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5222echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5224echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5226echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5228echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5229 (
5230 cat <<\_ASBOX
5231## ------------------------------------ ##
5232## Report this to the pjproject lists. ##
5233## ------------------------------------ ##
5234_ASBOX
5235 ) |
5236 sed "s/^/$as_me: WARNING: /" >&2
5237 ;;
5238esac
5239echo "$as_me:$LINENO: checking for malloc.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005240echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5241if test "${ac_cv_header_malloc_h+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005243else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005244 ac_cv_header_malloc_h=$ac_header_preproc
5245fi
5246echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5247echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5248
5249fi
5250if test $ac_cv_header_malloc_h = yes; then
5251 cat >>confdefs.h <<\_ACEOF
5252#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005253_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005254
5255fi
5256
5257
5258if test "${ac_cv_header_netdb_h+set}" = set; then
5259 echo "$as_me:$LINENO: checking for netdb.h" >&5
5260echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5261if test "${ac_cv_header_netdb_h+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263fi
5264echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5265echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5266else
5267 # Is the header compilable?
5268echo "$as_me:$LINENO: checking netdb.h usability" >&5
5269echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
5270cat >conftest.$ac_ext <<_ACEOF
5271/* confdefs.h. */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h. */
5276$ac_includes_default
5277#include <netdb.h>
5278_ACEOF
5279rm -f conftest.$ac_objext
5280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005282 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005283 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005284 rm -f conftest.er1
5285 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -z "$ac_c_werror_flag"
5289 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_header_compiler=yes
5302else
5303 echo "$as_me: failed program was:" >&5
5304sed 's/^/| /' conftest.$ac_ext >&5
5305
5306ac_header_compiler=no
5307fi
5308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5310echo "${ECHO_T}$ac_header_compiler" >&6
5311
5312# Is the header present?
5313echo "$as_me:$LINENO: checking netdb.h presence" >&5
5314echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
5315cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h. */
5317_ACEOF
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h. */
5321#include <netdb.h>
5322_ACEOF
5323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005330 (exit $ac_status); } >/dev/null; then
5331 if test -s conftest.err; then
5332 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005334 else
5335 ac_cpp_err=
5336 fi
5337else
5338 ac_cpp_err=yes
5339fi
5340if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005341 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005342else
5343 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005347fi
5348rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5350echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005351
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005352# So? What about this header?
5353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5354 yes:no: )
5355 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5356echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5357 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5358echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5359 ac_header_preproc=yes
5360 ;;
5361 no:yes:* )
5362 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5363echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5365echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5367echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5369echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5371echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5373echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
5374 (
5375 cat <<\_ASBOX
5376## ------------------------------------ ##
5377## Report this to the pjproject lists. ##
5378## ------------------------------------ ##
5379_ASBOX
5380 ) |
5381 sed "s/^/$as_me: WARNING: /" >&2
5382 ;;
5383esac
5384echo "$as_me:$LINENO: checking for netdb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005385echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5386if test "${ac_cv_header_netdb_h+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005388else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005389 ac_cv_header_netdb_h=$ac_header_preproc
5390fi
5391echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5392echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5393
5394fi
5395if test $ac_cv_header_netdb_h = yes; then
5396 cat >>confdefs.h <<\_ACEOF
5397#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005398_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005399
5400fi
5401
5402
5403if test "${ac_cv_header_netinet_in_h+set}" = set; then
5404 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5405echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5406if test "${ac_cv_header_netinet_in_h+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408fi
5409echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5410echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5411else
5412 # Is the header compilable?
5413echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5414echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5415cat >conftest.$ac_ext <<_ACEOF
5416/* confdefs.h. */
5417_ACEOF
5418cat confdefs.h >>conftest.$ac_ext
5419cat >>conftest.$ac_ext <<_ACEOF
5420/* end confdefs.h. */
5421$ac_includes_default
5422#include <netinet/in.h>
5423_ACEOF
5424rm -f conftest.$ac_objext
5425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005427 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005428 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005429 rm -f conftest.er1
5430 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -z "$ac_c_werror_flag"
5434 || test ! -s conftest.err'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; } &&
5440 { ac_try='test -s conftest.$ac_objext'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; }; then
5446 ac_header_compiler=yes
5447else
5448 echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
5451ac_header_compiler=no
5452fi
5453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5455echo "${ECHO_T}$ac_header_compiler" >&6
5456
5457# Is the header present?
5458echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5459echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5460cat >conftest.$ac_ext <<_ACEOF
5461/* confdefs.h. */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h. */
5466#include <netinet/in.h>
5467_ACEOF
5468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005475 (exit $ac_status); } >/dev/null; then
5476 if test -s conftest.err; then
5477 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005479 else
5480 ac_cpp_err=
5481 fi
5482else
5483 ac_cpp_err=yes
5484fi
5485if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005486 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005487else
5488 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005492fi
5493rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5495echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005496
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005497# So? What about this header?
5498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5499 yes:no: )
5500 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5501echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5502 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5503echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5504 ac_header_preproc=yes
5505 ;;
5506 no:yes:* )
5507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5508echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5510echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5512echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5514echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5516echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5518echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5519 (
5520 cat <<\_ASBOX
5521## ------------------------------------ ##
5522## Report this to the pjproject lists. ##
5523## ------------------------------------ ##
5524_ASBOX
5525 ) |
5526 sed "s/^/$as_me: WARNING: /" >&2
5527 ;;
5528esac
5529echo "$as_me:$LINENO: checking for netinet/in.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005530echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5531if test "${ac_cv_header_netinet_in_h+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005533else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005534 ac_cv_header_netinet_in_h=$ac_header_preproc
5535fi
5536echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5537echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5538
5539fi
5540if test $ac_cv_header_netinet_in_h = yes; then
5541 cat >>confdefs.h <<\_ACEOF
5542#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005543_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005544
5545fi
5546
5547
Benny Prijonof63a2552007-02-01 00:36:52 +00005548if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5549 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5550echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5551if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553fi
5554echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5555echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5556else
5557 # Is the header compilable?
5558echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5559echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
5560cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566$ac_includes_default
5567#include <netinet/ip.h>
5568_ACEOF
5569rm -f conftest.$ac_objext
5570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_c_werror_flag"
5579 || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 (eval $ac_try) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 ac_header_compiler=yes
5592else
5593 echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596ac_header_compiler=no
5597fi
5598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5599echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5600echo "${ECHO_T}$ac_header_compiler" >&6
5601
5602# Is the header present?
5603echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5604echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
5605cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h. */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */
5611#include <netinet/ip.h>
5612_ACEOF
5613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } >/dev/null; then
5621 if test -s conftest.err; then
5622 ac_cpp_err=$ac_c_preproc_warn_flag
5623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5624 else
5625 ac_cpp_err=
5626 fi
5627else
5628 ac_cpp_err=yes
5629fi
5630if test -z "$ac_cpp_err"; then
5631 ac_header_preproc=yes
5632else
5633 echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 ac_header_preproc=no
5637fi
5638rm -f conftest.err conftest.$ac_ext
5639echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5640echo "${ECHO_T}$ac_header_preproc" >&6
5641
5642# So? What about this header?
5643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5644 yes:no: )
5645 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5646echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5647 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5648echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5649 ac_header_preproc=yes
5650 ;;
5651 no:yes:* )
5652 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5653echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5655echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5657echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5659echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5661echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5663echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
5664 (
5665 cat <<\_ASBOX
5666## ------------------------------------ ##
5667## Report this to the pjproject lists. ##
5668## ------------------------------------ ##
5669_ASBOX
5670 ) |
5671 sed "s/^/$as_me: WARNING: /" >&2
5672 ;;
5673esac
5674echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5675echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5676if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679 ac_cv_header_netinet_ip_h=$ac_header_preproc
5680fi
5681echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5682echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5683
5684fi
5685if test $ac_cv_header_netinet_ip_h = yes; then
5686 cat >>confdefs.h <<\_ACEOF
5687#define PJ_HAS_NETINET_IP_H 1
5688_ACEOF
5689
5690fi
5691
5692
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005693if test "${ac_cv_header_setjmp_h+set}" = set; then
5694 echo "$as_me:$LINENO: checking for setjmp.h" >&5
5695echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5696if test "${ac_cv_header_setjmp_h+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698fi
5699echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5700echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5701else
5702 # Is the header compilable?
5703echo "$as_me:$LINENO: checking setjmp.h usability" >&5
5704echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
5705cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h. */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h. */
5711$ac_includes_default
5712#include <setjmp.h>
5713_ACEOF
5714rm -f conftest.$ac_objext
5715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005717 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005718 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005719 rm -f conftest.er1
5720 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_header_compiler=yes
5737else
5738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741ac_header_compiler=no
5742fi
5743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5745echo "${ECHO_T}$ac_header_compiler" >&6
5746
5747# Is the header present?
5748echo "$as_me:$LINENO: checking setjmp.h presence" >&5
5749echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
5750cat >conftest.$ac_ext <<_ACEOF
5751/* confdefs.h. */
5752_ACEOF
5753cat confdefs.h >>conftest.$ac_ext
5754cat >>conftest.$ac_ext <<_ACEOF
5755/* end confdefs.h. */
5756#include <setjmp.h>
5757_ACEOF
5758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005765 (exit $ac_status); } >/dev/null; then
5766 if test -s conftest.err; then
5767 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005769 else
5770 ac_cpp_err=
5771 fi
5772else
5773 ac_cpp_err=yes
5774fi
5775if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005776 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005777else
5778 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005779sed 's/^/| /' conftest.$ac_ext >&5
5780
5781 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005782fi
5783rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5785echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005786
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005787# So? What about this header?
5788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5789 yes:no: )
5790 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5791echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
5793echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
5794 ac_header_preproc=yes
5795 ;;
5796 no:yes:* )
5797 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
5798echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
5799 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
5800echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
5802echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
5804echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5805 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
5806echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
5807 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
5808echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
5809 (
5810 cat <<\_ASBOX
5811## ------------------------------------ ##
5812## Report this to the pjproject lists. ##
5813## ------------------------------------ ##
5814_ASBOX
5815 ) |
5816 sed "s/^/$as_me: WARNING: /" >&2
5817 ;;
5818esac
5819echo "$as_me:$LINENO: checking for setjmp.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005820echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5821if test "${ac_cv_header_setjmp_h+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005823else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005824 ac_cv_header_setjmp_h=$ac_header_preproc
5825fi
5826echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5827echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5828
5829fi
5830if test $ac_cv_header_setjmp_h = yes; then
5831 cat >>confdefs.h <<\_ACEOF
5832#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005833_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005834
5835fi
5836
5837
5838if test "${ac_cv_header_stdarg_h+set}" = set; then
5839 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5840echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5841if test "${ac_cv_header_stdarg_h+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843fi
5844echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5845echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5846else
5847 # Is the header compilable?
5848echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5849echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
5850cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
5856$ac_includes_default
5857#include <stdarg.h>
5858_ACEOF
5859rm -f conftest.$ac_objext
5860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005862 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005863 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005864 rm -f conftest.er1
5865 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest.$ac_objext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_header_compiler=yes
5882else
5883 echo "$as_me: failed program was:" >&5
5884sed 's/^/| /' conftest.$ac_ext >&5
5885
5886ac_header_compiler=no
5887fi
5888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5890echo "${ECHO_T}$ac_header_compiler" >&6
5891
5892# Is the header present?
5893echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5894echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5895cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901#include <stdarg.h>
5902_ACEOF
5903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005910 (exit $ac_status); } >/dev/null; then
5911 if test -s conftest.err; then
5912 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005914 else
5915 ac_cpp_err=
5916 fi
5917else
5918 ac_cpp_err=yes
5919fi
5920if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005921 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005922else
5923 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005927fi
5928rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005929echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5930echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005931
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005932# So? What about this header?
5933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5934 yes:no: )
5935 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5936echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5937 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5938echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5939 ac_header_preproc=yes
5940 ;;
5941 no:yes:* )
5942 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5943echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5944 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5945echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5947echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5949echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5950 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5951echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5952 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5953echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5954 (
5955 cat <<\_ASBOX
5956## ------------------------------------ ##
5957## Report this to the pjproject lists. ##
5958## ------------------------------------ ##
5959_ASBOX
5960 ) |
5961 sed "s/^/$as_me: WARNING: /" >&2
5962 ;;
5963esac
5964echo "$as_me:$LINENO: checking for stdarg.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005965echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5966if test "${ac_cv_header_stdarg_h+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005968else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005969 ac_cv_header_stdarg_h=$ac_header_preproc
5970fi
5971echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5972echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5973
5974fi
5975if test $ac_cv_header_stdarg_h = yes; then
5976 cat >>confdefs.h <<\_ACEOF
5977#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005978_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005979
5980fi
5981
5982
5983if test "${ac_cv_header_stddef_h+set}" = set; then
5984 echo "$as_me:$LINENO: checking for stddef.h" >&5
5985echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5986if test "${ac_cv_header_stddef_h+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988fi
5989echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5990echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5991else
5992 # Is the header compilable?
5993echo "$as_me:$LINENO: checking stddef.h usability" >&5
5994echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
5995cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h. */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h. */
6001$ac_includes_default
6002#include <stddef.h>
6003_ACEOF
6004rm -f conftest.$ac_objext
6005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006007 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006008 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006009 rm -f conftest.er1
6010 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } &&
6013 { ac_try='test -z "$ac_c_werror_flag"
6014 || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest.$ac_objext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 ac_header_compiler=yes
6027else
6028 echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031ac_header_compiler=no
6032fi
6033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6035echo "${ECHO_T}$ac_header_compiler" >&6
6036
6037# Is the header present?
6038echo "$as_me:$LINENO: checking stddef.h presence" >&5
6039echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
6040cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046#include <stddef.h>
6047_ACEOF
6048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006055 (exit $ac_status); } >/dev/null; then
6056 if test -s conftest.err; then
6057 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006059 else
6060 ac_cpp_err=
6061 fi
6062else
6063 ac_cpp_err=yes
6064fi
6065if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006066 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006067else
6068 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006069sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006072fi
6073rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6075echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006076
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006077# So? What about this header?
6078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6079 yes:no: )
6080 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6081echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6082 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6083echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6084 ac_header_preproc=yes
6085 ;;
6086 no:yes:* )
6087 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6088echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6090echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6092echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6094echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6095 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6096echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6098echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
6099 (
6100 cat <<\_ASBOX
6101## ------------------------------------ ##
6102## Report this to the pjproject lists. ##
6103## ------------------------------------ ##
6104_ASBOX
6105 ) |
6106 sed "s/^/$as_me: WARNING: /" >&2
6107 ;;
6108esac
6109echo "$as_me:$LINENO: checking for stddef.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006110echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
6111if test "${ac_cv_header_stddef_h+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006113else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006114 ac_cv_header_stddef_h=$ac_header_preproc
6115fi
6116echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6117echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
6118
6119fi
6120if test $ac_cv_header_stddef_h = yes; then
6121 cat >>confdefs.h <<\_ACEOF
6122#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006123_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006124
6125fi
6126
6127
6128if test "${ac_cv_header_stdio_h+set}" = set; then
6129 echo "$as_me:$LINENO: checking for stdio.h" >&5
6130echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6131if test "${ac_cv_header_stdio_h+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133fi
6134echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6135echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6136else
6137 # Is the header compilable?
6138echo "$as_me:$LINENO: checking stdio.h usability" >&5
6139echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
6140cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
6146$ac_includes_default
6147#include <stdio.h>
6148_ACEOF
6149rm -f conftest.$ac_objext
6150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6151 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006152 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006153 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006154 rm -f conftest.er1
6155 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } &&
6158 { ac_try='test -z "$ac_c_werror_flag"
6159 || test ! -s conftest.err'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; } &&
6165 { ac_try='test -s conftest.$ac_objext'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_header_compiler=yes
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176ac_header_compiler=no
6177fi
6178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6180echo "${ECHO_T}$ac_header_compiler" >&6
6181
6182# Is the header present?
6183echo "$as_me:$LINENO: checking stdio.h presence" >&5
6184echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
6185cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191#include <stdio.h>
6192_ACEOF
6193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006200 (exit $ac_status); } >/dev/null; then
6201 if test -s conftest.err; then
6202 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006204 else
6205 ac_cpp_err=
6206 fi
6207else
6208 ac_cpp_err=yes
6209fi
6210if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006211 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006212else
6213 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006214sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006217fi
6218rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6220echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006221
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006222# So? What about this header?
6223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6224 yes:no: )
6225 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6226echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6228echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6229 ac_header_preproc=yes
6230 ;;
6231 no:yes:* )
6232 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6233echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6235echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6237echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6239echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6241echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6243echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
6244 (
6245 cat <<\_ASBOX
6246## ------------------------------------ ##
6247## Report this to the pjproject lists. ##
6248## ------------------------------------ ##
6249_ASBOX
6250 ) |
6251 sed "s/^/$as_me: WARNING: /" >&2
6252 ;;
6253esac
6254echo "$as_me:$LINENO: checking for stdio.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006255echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6256if test "${ac_cv_header_stdio_h+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006258else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006259 ac_cv_header_stdio_h=$ac_header_preproc
6260fi
6261echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6262echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6263
6264fi
6265if test $ac_cv_header_stdio_h = yes; then
6266 cat >>confdefs.h <<\_ACEOF
6267#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006268_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006269
6270fi
6271
6272
6273if test "${ac_cv_header_stdlib_h+set}" = set; then
6274 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6275echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6276if test "${ac_cv_header_stdlib_h+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278fi
6279echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6280echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6281else
6282 # Is the header compilable?
6283echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6284echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
6285cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h. */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h. */
6291$ac_includes_default
6292#include <stdlib.h>
6293_ACEOF
6294rm -f conftest.$ac_objext
6295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006297 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006298 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006299 rm -f conftest.er1
6300 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -z "$ac_c_werror_flag"
6304 || test ! -s conftest.err'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_header_compiler=yes
6317else
6318 echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321ac_header_compiler=no
6322fi
6323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6325echo "${ECHO_T}$ac_header_compiler" >&6
6326
6327# Is the header present?
6328echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6329echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
6330cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h. */
6332_ACEOF
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h. */
6336#include <stdlib.h>
6337_ACEOF
6338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006345 (exit $ac_status); } >/dev/null; then
6346 if test -s conftest.err; then
6347 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006349 else
6350 ac_cpp_err=
6351 fi
6352else
6353 ac_cpp_err=yes
6354fi
6355if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006356 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006357else
6358 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006359sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006362fi
6363rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6365echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006366
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006367# So? What about this header?
6368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6369 yes:no: )
6370 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6371echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6372 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6373echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6374 ac_header_preproc=yes
6375 ;;
6376 no:yes:* )
6377 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6378echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6379 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6380echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6382echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6384echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6386echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6388echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
6389 (
6390 cat <<\_ASBOX
6391## ------------------------------------ ##
6392## Report this to the pjproject lists. ##
6393## ------------------------------------ ##
6394_ASBOX
6395 ) |
6396 sed "s/^/$as_me: WARNING: /" >&2
6397 ;;
6398esac
6399echo "$as_me:$LINENO: checking for stdlib.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006400echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6401if test "${ac_cv_header_stdlib_h+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006403else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006404 ac_cv_header_stdlib_h=$ac_header_preproc
6405fi
6406echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6407echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6408
6409fi
6410if test $ac_cv_header_stdlib_h = yes; then
6411 cat >>confdefs.h <<\_ACEOF
6412#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006413_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006414
6415fi
6416
6417
6418if test "${ac_cv_header_string_h+set}" = set; then
6419 echo "$as_me:$LINENO: checking for string.h" >&5
6420echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6421if test "${ac_cv_header_string_h+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423fi
6424echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6425echo "${ECHO_T}$ac_cv_header_string_h" >&6
6426else
6427 # Is the header compilable?
6428echo "$as_me:$LINENO: checking string.h usability" >&5
6429echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
6430cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h. */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h. */
6436$ac_includes_default
6437#include <string.h>
6438_ACEOF
6439rm -f conftest.$ac_objext
6440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006442 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006443 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006444 rm -f conftest.er1
6445 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_header_compiler=yes
6462else
6463 echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466ac_header_compiler=no
6467fi
6468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6470echo "${ECHO_T}$ac_header_compiler" >&6
6471
6472# Is the header present?
6473echo "$as_me:$LINENO: checking string.h presence" >&5
6474echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
6475cat >conftest.$ac_ext <<_ACEOF
6476/* confdefs.h. */
6477_ACEOF
6478cat confdefs.h >>conftest.$ac_ext
6479cat >>conftest.$ac_ext <<_ACEOF
6480/* end confdefs.h. */
6481#include <string.h>
6482_ACEOF
6483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006490 (exit $ac_status); } >/dev/null; then
6491 if test -s conftest.err; then
6492 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006494 else
6495 ac_cpp_err=
6496 fi
6497else
6498 ac_cpp_err=yes
6499fi
6500if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006501 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006502else
6503 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006504sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006507fi
6508rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6510echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006511
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006512# So? What about this header?
6513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6514 yes:no: )
6515 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6516echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6518echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6519 ac_header_preproc=yes
6520 ;;
6521 no:yes:* )
6522 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6523echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6525echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6526 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6527echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6528 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6529echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6530 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6531echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6532 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6533echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6534 (
6535 cat <<\_ASBOX
6536## ------------------------------------ ##
6537## Report this to the pjproject lists. ##
6538## ------------------------------------ ##
6539_ASBOX
6540 ) |
6541 sed "s/^/$as_me: WARNING: /" >&2
6542 ;;
6543esac
6544echo "$as_me:$LINENO: checking for string.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006545echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6546if test "${ac_cv_header_string_h+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006548else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006549 ac_cv_header_string_h=$ac_header_preproc
6550fi
6551echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6552echo "${ECHO_T}$ac_cv_header_string_h" >&6
6553
6554fi
6555if test $ac_cv_header_string_h = yes; then
6556 cat >>confdefs.h <<\_ACEOF
6557#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006558_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006559
6560fi
6561
6562
6563if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6564 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
6565echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6566if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568fi
6569echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6570echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6571else
6572 # Is the header compilable?
6573echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
6574echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
6575cat >conftest.$ac_ext <<_ACEOF
6576/* confdefs.h. */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h. */
6581$ac_includes_default
6582#include <sys/ioctl.h>
6583_ACEOF
6584rm -f conftest.$ac_objext
6585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006587 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006588 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006589 rm -f conftest.er1
6590 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -z "$ac_c_werror_flag"
6594 || test ! -s conftest.err'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; } &&
6600 { ac_try='test -s conftest.$ac_objext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 ac_header_compiler=yes
6607else
6608 echo "$as_me: failed program was:" >&5
6609sed 's/^/| /' conftest.$ac_ext >&5
6610
6611ac_header_compiler=no
6612fi
6613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6615echo "${ECHO_T}$ac_header_compiler" >&6
6616
6617# Is the header present?
6618echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
6619echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
6620cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626#include <sys/ioctl.h>
6627_ACEOF
6628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006635 (exit $ac_status); } >/dev/null; then
6636 if test -s conftest.err; then
6637 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006639 else
6640 ac_cpp_err=
6641 fi
6642else
6643 ac_cpp_err=yes
6644fi
6645if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006646 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006647else
6648 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006649sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006652fi
6653rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6655echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006656
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006657# So? What about this header?
6658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6659 yes:no: )
6660 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6661echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
6663echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
6664 ac_header_preproc=yes
6665 ;;
6666 no:yes:* )
6667 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
6668echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
6670echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
6672echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
6674echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
6676echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
6678echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
6679 (
6680 cat <<\_ASBOX
6681## ------------------------------------ ##
6682## Report this to the pjproject lists. ##
6683## ------------------------------------ ##
6684_ASBOX
6685 ) |
6686 sed "s/^/$as_me: WARNING: /" >&2
6687 ;;
6688esac
6689echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006690echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6691if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006693else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006694 ac_cv_header_sys_ioctl_h=$ac_header_preproc
6695fi
6696echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6697echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6698
6699fi
6700if test $ac_cv_header_sys_ioctl_h = yes; then
6701 cat >>confdefs.h <<\_ACEOF
6702#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006703_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006704
6705fi
6706
6707
6708if test "${ac_cv_header_sys_select_h+set}" = set; then
6709 echo "$as_me:$LINENO: checking for sys/select.h" >&5
6710echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6711if test "${ac_cv_header_sys_select_h+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713fi
6714echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6715echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6716else
6717 # Is the header compilable?
6718echo "$as_me:$LINENO: checking sys/select.h usability" >&5
6719echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
6720cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h. */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h. */
6726$ac_includes_default
6727#include <sys/select.h>
6728_ACEOF
6729rm -f conftest.$ac_objext
6730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006732 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006733 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006734 rm -f conftest.er1
6735 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -z "$ac_c_werror_flag"
6739 || test ! -s conftest.err'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest.$ac_objext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 ac_header_compiler=yes
6752else
6753 echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756ac_header_compiler=no
6757fi
6758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760echo "${ECHO_T}$ac_header_compiler" >&6
6761
6762# Is the header present?
6763echo "$as_me:$LINENO: checking sys/select.h presence" >&5
6764echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
6765cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h. */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h. */
6771#include <sys/select.h>
6772_ACEOF
6773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006780 (exit $ac_status); } >/dev/null; then
6781 if test -s conftest.err; then
6782 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006784 else
6785 ac_cpp_err=
6786 fi
6787else
6788 ac_cpp_err=yes
6789fi
6790if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006791 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006792else
6793 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006794sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006797fi
6798rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6800echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006801
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006802# So? What about this header?
6803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6804 yes:no: )
6805 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
6806echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6807 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
6808echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
6809 ac_header_preproc=yes
6810 ;;
6811 no:yes:* )
6812 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
6813echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
6814 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
6815echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
6817echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
6819echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
6820 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
6821echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
6822 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
6823echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
6824 (
6825 cat <<\_ASBOX
6826## ------------------------------------ ##
6827## Report this to the pjproject lists. ##
6828## ------------------------------------ ##
6829_ASBOX
6830 ) |
6831 sed "s/^/$as_me: WARNING: /" >&2
6832 ;;
6833esac
6834echo "$as_me:$LINENO: checking for sys/select.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006835echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6836if test "${ac_cv_header_sys_select_h+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006838else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006839 ac_cv_header_sys_select_h=$ac_header_preproc
6840fi
6841echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6842echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6843
6844fi
6845if test $ac_cv_header_sys_select_h = yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006848_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006849
6850fi
6851
6852
6853if test "${ac_cv_header_sys_socket_h+set}" = set; then
6854 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6855echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6856if test "${ac_cv_header_sys_socket_h+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858fi
6859echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6860echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6861else
6862 # Is the header compilable?
6863echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
6864echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
6865cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h. */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h. */
6871$ac_includes_default
6872#include <sys/socket.h>
6873_ACEOF
6874rm -f conftest.$ac_objext
6875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006877 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006878 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006879 rm -f conftest.er1
6880 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag"
6884 || test ! -s conftest.err'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; } &&
6890 { ac_try='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_header_compiler=yes
6897else
6898 echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901ac_header_compiler=no
6902fi
6903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6905echo "${ECHO_T}$ac_header_compiler" >&6
6906
6907# Is the header present?
6908echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
6909echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
6910cat >conftest.$ac_ext <<_ACEOF
6911/* confdefs.h. */
6912_ACEOF
6913cat confdefs.h >>conftest.$ac_ext
6914cat >>conftest.$ac_ext <<_ACEOF
6915/* end confdefs.h. */
6916#include <sys/socket.h>
6917_ACEOF
6918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6920 ac_status=$?
6921 grep -v '^ *+' conftest.er1 >conftest.err
6922 rm -f conftest.er1
6923 cat conftest.err >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006925 (exit $ac_status); } >/dev/null; then
6926 if test -s conftest.err; then
6927 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006929 else
6930 ac_cpp_err=
6931 fi
6932else
6933 ac_cpp_err=yes
6934fi
6935if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006936 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006937else
6938 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006942fi
6943rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6945echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006946
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006947# So? What about this header?
6948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6949 yes:no: )
6950 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6951echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6952 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6953echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6954 ac_header_preproc=yes
6955 ;;
6956 no:yes:* )
6957 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6958echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6959 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
6960echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
6961 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6962echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6963 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
6964echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
6965 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6966echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6967 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6968echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
6969 (
6970 cat <<\_ASBOX
6971## ------------------------------------ ##
6972## Report this to the pjproject lists. ##
6973## ------------------------------------ ##
6974_ASBOX
6975 ) |
6976 sed "s/^/$as_me: WARNING: /" >&2
6977 ;;
6978esac
6979echo "$as_me:$LINENO: checking for sys/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006980echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6981if test "${ac_cv_header_sys_socket_h+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006983else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006984 ac_cv_header_sys_socket_h=$ac_header_preproc
6985fi
6986echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6987echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6988
6989fi
6990if test $ac_cv_header_sys_socket_h = yes; then
6991 cat >>confdefs.h <<\_ACEOF
6992#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006993_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006994
6995fi
6996
6997
6998if test "${ac_cv_header_sys_time_h+set}" = set; then
6999 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7000echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7001if test "${ac_cv_header_sys_time_h+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003fi
7004echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7005echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7006else
7007 # Is the header compilable?
7008echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7009echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
7010cat >conftest.$ac_ext <<_ACEOF
7011/* confdefs.h. */
7012_ACEOF
7013cat confdefs.h >>conftest.$ac_ext
7014cat >>conftest.$ac_ext <<_ACEOF
7015/* end confdefs.h. */
7016$ac_includes_default
7017#include <sys/time.h>
7018_ACEOF
7019rm -f conftest.$ac_objext
7020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007022 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007023 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007024 rm -f conftest.er1
7025 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } &&
7028 { ac_try='test -z "$ac_c_werror_flag"
7029 || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try='test -s conftest.$ac_objext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_header_compiler=yes
7042else
7043 echo "$as_me: failed program was:" >&5
7044sed 's/^/| /' conftest.$ac_ext >&5
7045
7046ac_header_compiler=no
7047fi
7048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7050echo "${ECHO_T}$ac_header_compiler" >&6
7051
7052# Is the header present?
7053echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7054echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
7055cat >conftest.$ac_ext <<_ACEOF
7056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
7061#include <sys/time.h>
7062_ACEOF
7063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007070 (exit $ac_status); } >/dev/null; then
7071 if test -s conftest.err; then
7072 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007074 else
7075 ac_cpp_err=
7076 fi
7077else
7078 ac_cpp_err=yes
7079fi
7080if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007081 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007082else
7083 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007084sed 's/^/| /' conftest.$ac_ext >&5
7085
7086 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007087fi
7088rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7090echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007091
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007092# So? What about this header?
7093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7094 yes:no: )
7095 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7096echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7097 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7098echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7099 ac_header_preproc=yes
7100 ;;
7101 no:yes:* )
7102 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7103echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7104 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7105echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7106 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7107echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7108 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7109echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7111echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7112 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7113echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
7114 (
7115 cat <<\_ASBOX
7116## ------------------------------------ ##
7117## Report this to the pjproject lists. ##
7118## ------------------------------------ ##
7119_ASBOX
7120 ) |
7121 sed "s/^/$as_me: WARNING: /" >&2
7122 ;;
7123esac
7124echo "$as_me:$LINENO: checking for sys/time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007125echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7126if test "${ac_cv_header_sys_time_h+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007128else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007129 ac_cv_header_sys_time_h=$ac_header_preproc
7130fi
7131echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7132echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7133
7134fi
7135if test $ac_cv_header_sys_time_h = yes; then
7136 cat >>confdefs.h <<\_ACEOF
7137#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007138_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007139
7140fi
7141
7142
7143if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7144 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7145echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7146if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148fi
7149echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7150echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7151else
7152 # Is the header compilable?
7153echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7154echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
7155cat >conftest.$ac_ext <<_ACEOF
7156/* confdefs.h. */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h. */
7161$ac_includes_default
7162#include <sys/timeb.h>
7163_ACEOF
7164rm -f conftest.$ac_objext
7165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007167 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007168 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007169 rm -f conftest.er1
7170 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -z "$ac_c_werror_flag"
7174 || test ! -s conftest.err'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 (eval $ac_try) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; } &&
7180 { ac_try='test -s conftest.$ac_objext'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7186 ac_header_compiler=yes
7187else
7188 echo "$as_me: failed program was:" >&5
7189sed 's/^/| /' conftest.$ac_ext >&5
7190
7191ac_header_compiler=no
7192fi
7193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7195echo "${ECHO_T}$ac_header_compiler" >&6
7196
7197# Is the header present?
7198echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7199echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
7200cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206#include <sys/timeb.h>
7207_ACEOF
7208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007215 (exit $ac_status); } >/dev/null; then
7216 if test -s conftest.err; then
7217 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007219 else
7220 ac_cpp_err=
7221 fi
7222else
7223 ac_cpp_err=yes
7224fi
7225if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007226 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007227else
7228 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007229sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007232fi
7233rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7235echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007236
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007237# So? What about this header?
7238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7239 yes:no: )
7240 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7241echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7243echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7244 ac_header_preproc=yes
7245 ;;
7246 no:yes:* )
7247 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7248echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7250echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7252echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7254echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7256echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7257 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7258echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
7259 (
7260 cat <<\_ASBOX
7261## ------------------------------------ ##
7262## Report this to the pjproject lists. ##
7263## ------------------------------------ ##
7264_ASBOX
7265 ) |
7266 sed "s/^/$as_me: WARNING: /" >&2
7267 ;;
7268esac
7269echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007270echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7271if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007273else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007274 ac_cv_header_sys_timeb_h=$ac_header_preproc
7275fi
7276echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7277echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7278
7279fi
7280if test $ac_cv_header_sys_timeb_h = yes; then
7281 cat >>confdefs.h <<\_ACEOF
7282#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007283_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007284
7285fi
7286
7287
7288if test "${ac_cv_header_sys_types_h+set}" = set; then
7289 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7290echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7291if test "${ac_cv_header_sys_types_h+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293fi
7294echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7295echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7296else
7297 # Is the header compilable?
7298echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7299echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
7300cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h. */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h. */
7306$ac_includes_default
7307#include <sys/types.h>
7308_ACEOF
7309rm -f conftest.$ac_objext
7310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007312 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007313 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007314 rm -f conftest.er1
7315 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try='test -z "$ac_c_werror_flag"
7319 || test ! -s conftest.err'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 (eval $ac_try) 2>&5
7322 ac_status=$?
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; } &&
7325 { ac_try='test -s conftest.$ac_objext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 ac_header_compiler=yes
7332else
7333 echo "$as_me: failed program was:" >&5
7334sed 's/^/| /' conftest.$ac_ext >&5
7335
7336ac_header_compiler=no
7337fi
7338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7340echo "${ECHO_T}$ac_header_compiler" >&6
7341
7342# Is the header present?
7343echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7344echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
7345cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h. */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h. */
7351#include <sys/types.h>
7352_ACEOF
7353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007360 (exit $ac_status); } >/dev/null; then
7361 if test -s conftest.err; then
7362 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007364 else
7365 ac_cpp_err=
7366 fi
7367else
7368 ac_cpp_err=yes
7369fi
7370if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007371 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007372else
7373 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007374sed 's/^/| /' conftest.$ac_ext >&5
7375
7376 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007377fi
7378rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7380echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007381
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007382# So? What about this header?
7383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7384 yes:no: )
7385 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7386echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7388echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7389 ac_header_preproc=yes
7390 ;;
7391 no:yes:* )
7392 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7393echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7395echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7397echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7399echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7401echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7403echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
7404 (
7405 cat <<\_ASBOX
7406## ------------------------------------ ##
7407## Report this to the pjproject lists. ##
7408## ------------------------------------ ##
7409_ASBOX
7410 ) |
7411 sed "s/^/$as_me: WARNING: /" >&2
7412 ;;
7413esac
7414echo "$as_me:$LINENO: checking for sys/types.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007415echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7416if test "${ac_cv_header_sys_types_h+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007418else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007419 ac_cv_header_sys_types_h=$ac_header_preproc
7420fi
7421echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7422echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7423
7424fi
7425if test $ac_cv_header_sys_types_h = yes; then
7426 cat >>confdefs.h <<\_ACEOF
7427#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007428_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007429
7430fi
7431
7432
7433if test "${ac_cv_header_time_h+set}" = set; then
7434 echo "$as_me:$LINENO: checking for time.h" >&5
7435echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7436if test "${ac_cv_header_time_h+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438fi
7439echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7440echo "${ECHO_T}$ac_cv_header_time_h" >&6
7441else
7442 # Is the header compilable?
7443echo "$as_me:$LINENO: checking time.h usability" >&5
7444echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
7445cat >conftest.$ac_ext <<_ACEOF
7446/* confdefs.h. */
7447_ACEOF
7448cat confdefs.h >>conftest.$ac_ext
7449cat >>conftest.$ac_ext <<_ACEOF
7450/* end confdefs.h. */
7451$ac_includes_default
7452#include <time.h>
7453_ACEOF
7454rm -f conftest.$ac_objext
7455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007457 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007458 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007459 rm -f conftest.er1
7460 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_header_compiler=yes
7477else
7478 echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
7481ac_header_compiler=no
7482fi
7483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7485echo "${ECHO_T}$ac_header_compiler" >&6
7486
7487# Is the header present?
7488echo "$as_me:$LINENO: checking time.h presence" >&5
7489echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
7490cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h. */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h. */
7496#include <time.h>
7497_ACEOF
7498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007505 (exit $ac_status); } >/dev/null; then
7506 if test -s conftest.err; then
7507 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007509 else
7510 ac_cpp_err=
7511 fi
7512else
7513 ac_cpp_err=yes
7514fi
7515if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007516 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007517else
7518 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007519sed 's/^/| /' conftest.$ac_ext >&5
7520
7521 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007522fi
7523rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007526
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007527# So? What about this header?
7528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7529 yes:no: )
7530 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7531echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
7533echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
7534 ac_header_preproc=yes
7535 ;;
7536 no:yes:* )
7537 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
7538echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
7540echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
7542echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
7544echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
7546echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
7548echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
7549 (
7550 cat <<\_ASBOX
7551## ------------------------------------ ##
7552## Report this to the pjproject lists. ##
7553## ------------------------------------ ##
7554_ASBOX
7555 ) |
7556 sed "s/^/$as_me: WARNING: /" >&2
7557 ;;
7558esac
7559echo "$as_me:$LINENO: checking for time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007560echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7561if test "${ac_cv_header_time_h+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007563else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007564 ac_cv_header_time_h=$ac_header_preproc
7565fi
7566echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7567echo "${ECHO_T}$ac_cv_header_time_h" >&6
7568
7569fi
7570if test $ac_cv_header_time_h = yes; then
7571 cat >>confdefs.h <<\_ACEOF
7572#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007573_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007574
7575fi
7576
7577
7578if test "${ac_cv_header_unistd_h+set}" = set; then
7579 echo "$as_me:$LINENO: checking for unistd.h" >&5
7580echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7581if test "${ac_cv_header_unistd_h+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583fi
7584echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7585echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7586else
7587 # Is the header compilable?
7588echo "$as_me:$LINENO: checking unistd.h usability" >&5
7589echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
7590cat >conftest.$ac_ext <<_ACEOF
7591/* confdefs.h. */
7592_ACEOF
7593cat confdefs.h >>conftest.$ac_ext
7594cat >>conftest.$ac_ext <<_ACEOF
7595/* end confdefs.h. */
7596$ac_includes_default
7597#include <unistd.h>
7598_ACEOF
7599rm -f conftest.$ac_objext
7600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007602 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007603 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007604 rm -f conftest.er1
7605 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
7608 { ac_try='test -z "$ac_c_werror_flag"
7609 || test ! -s conftest.err'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; } &&
7615 { ac_try='test -s conftest.$ac_objext'
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 (eval $ac_try) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; }; then
7621 ac_header_compiler=yes
7622else
7623 echo "$as_me: failed program was:" >&5
7624sed 's/^/| /' conftest.$ac_ext >&5
7625
7626ac_header_compiler=no
7627fi
7628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7630echo "${ECHO_T}$ac_header_compiler" >&6
7631
7632# Is the header present?
7633echo "$as_me:$LINENO: checking unistd.h presence" >&5
7634echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
7635cat >conftest.$ac_ext <<_ACEOF
7636/* confdefs.h. */
7637_ACEOF
7638cat confdefs.h >>conftest.$ac_ext
7639cat >>conftest.$ac_ext <<_ACEOF
7640/* end confdefs.h. */
7641#include <unistd.h>
7642_ACEOF
7643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007650 (exit $ac_status); } >/dev/null; then
7651 if test -s conftest.err; then
7652 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007654 else
7655 ac_cpp_err=
7656 fi
7657else
7658 ac_cpp_err=yes
7659fi
7660if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007661 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007662else
7663 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007664sed 's/^/| /' conftest.$ac_ext >&5
7665
7666 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007667fi
7668rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7670echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007671
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007672# So? What about this header?
7673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7674 yes:no: )
7675 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
7676echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
7678echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
7679 ac_header_preproc=yes
7680 ;;
7681 no:yes:* )
7682 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
7683echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
7685echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
7687echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
7689echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
7691echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
7693echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
7694 (
7695 cat <<\_ASBOX
7696## ------------------------------------ ##
7697## Report this to the pjproject lists. ##
7698## ------------------------------------ ##
7699_ASBOX
7700 ) |
7701 sed "s/^/$as_me: WARNING: /" >&2
7702 ;;
7703esac
7704echo "$as_me:$LINENO: checking for unistd.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007705echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7706if test "${ac_cv_header_unistd_h+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007708else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007709 ac_cv_header_unistd_h=$ac_header_preproc
7710fi
7711echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7712echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7713
7714fi
7715if test $ac_cv_header_unistd_h = yes; then
7716 cat >>confdefs.h <<\_ACEOF
7717#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007718_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007719
7720fi
7721
7722
7723if test "${ac_cv_header_mswsock_h+set}" = set; then
7724 echo "$as_me:$LINENO: checking for mswsock.h" >&5
7725echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7726if test "${ac_cv_header_mswsock_h+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728fi
7729echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7730echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7731else
7732 # Is the header compilable?
7733echo "$as_me:$LINENO: checking mswsock.h usability" >&5
7734echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
7735cat >conftest.$ac_ext <<_ACEOF
7736/* confdefs.h. */
7737_ACEOF
7738cat confdefs.h >>conftest.$ac_ext
7739cat >>conftest.$ac_ext <<_ACEOF
7740/* end confdefs.h. */
7741$ac_includes_default
7742#include <mswsock.h>
7743_ACEOF
7744rm -f conftest.$ac_objext
7745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007747 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007748 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007749 rm -f conftest.er1
7750 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_header_compiler=yes
7767else
7768 echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7771ac_header_compiler=no
7772fi
7773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7775echo "${ECHO_T}$ac_header_compiler" >&6
7776
7777# Is the header present?
7778echo "$as_me:$LINENO: checking mswsock.h presence" >&5
7779echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
7780cat >conftest.$ac_ext <<_ACEOF
7781/* confdefs.h. */
7782_ACEOF
7783cat confdefs.h >>conftest.$ac_ext
7784cat >>conftest.$ac_ext <<_ACEOF
7785/* end confdefs.h. */
7786#include <mswsock.h>
7787_ACEOF
7788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007795 (exit $ac_status); } >/dev/null; then
7796 if test -s conftest.err; then
7797 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007799 else
7800 ac_cpp_err=
7801 fi
7802else
7803 ac_cpp_err=yes
7804fi
7805if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007806 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007807else
7808 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007809sed 's/^/| /' conftest.$ac_ext >&5
7810
7811 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007812fi
7813rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7815echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007816
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007817# So? What about this header?
7818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7819 yes:no: )
7820 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7821echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7822 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
7823echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
7824 ac_header_preproc=yes
7825 ;;
7826 no:yes:* )
7827 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
7828echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
7830echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
7831 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
7832echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
7833 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
7834echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
7836echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
7838echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
7839 (
7840 cat <<\_ASBOX
7841## ------------------------------------ ##
7842## Report this to the pjproject lists. ##
7843## ------------------------------------ ##
7844_ASBOX
7845 ) |
7846 sed "s/^/$as_me: WARNING: /" >&2
7847 ;;
7848esac
7849echo "$as_me:$LINENO: checking for mswsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007850echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7851if test "${ac_cv_header_mswsock_h+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007853else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007854 ac_cv_header_mswsock_h=$ac_header_preproc
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7857echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7858
7859fi
7860if test $ac_cv_header_mswsock_h = yes; then
7861 cat >>confdefs.h <<\_ACEOF
7862#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007863_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007864
7865fi
7866
7867
7868if test "${ac_cv_header_winsock_h+set}" = set; then
7869 echo "$as_me:$LINENO: checking for winsock.h" >&5
7870echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7871if test "${ac_cv_header_winsock_h+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873fi
7874echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7875echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7876else
7877 # Is the header compilable?
7878echo "$as_me:$LINENO: checking winsock.h usability" >&5
7879echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
7880cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h. */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h. */
7886$ac_includes_default
7887#include <winsock.h>
7888_ACEOF
7889rm -f conftest.$ac_objext
7890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007892 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007893 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007894 rm -f conftest.er1
7895 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_header_compiler=yes
7912else
7913 echo "$as_me: failed program was:" >&5
7914sed 's/^/| /' conftest.$ac_ext >&5
7915
7916ac_header_compiler=no
7917fi
7918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7920echo "${ECHO_T}$ac_header_compiler" >&6
7921
7922# Is the header present?
7923echo "$as_me:$LINENO: checking winsock.h presence" >&5
7924echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
7925cat >conftest.$ac_ext <<_ACEOF
7926/* confdefs.h. */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h. */
7931#include <winsock.h>
7932_ACEOF
7933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007940 (exit $ac_status); } >/dev/null; then
7941 if test -s conftest.err; then
7942 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007944 else
7945 ac_cpp_err=
7946 fi
7947else
7948 ac_cpp_err=yes
7949fi
7950if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007951 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007952else
7953 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007957fi
7958rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7960echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007961
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007962# So? What about this header?
7963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7964 yes:no: )
7965 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7966echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7967 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
7968echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
7969 ac_header_preproc=yes
7970 ;;
7971 no:yes:* )
7972 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
7973echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
7974 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
7975echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
7976 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
7977echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
7978 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
7979echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7980 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
7981echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
7982 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
7983echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
7984 (
7985 cat <<\_ASBOX
7986## ------------------------------------ ##
7987## Report this to the pjproject lists. ##
7988## ------------------------------------ ##
7989_ASBOX
7990 ) |
7991 sed "s/^/$as_me: WARNING: /" >&2
7992 ;;
7993esac
7994echo "$as_me:$LINENO: checking for winsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007995echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7996if test "${ac_cv_header_winsock_h+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007998else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007999 ac_cv_header_winsock_h=$ac_header_preproc
8000fi
8001echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8002echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
8003
8004fi
8005if test $ac_cv_header_winsock_h = yes; then
8006 cat >>confdefs.h <<\_ACEOF
8007#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008008_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008009
8010fi
8011
8012
8013if test "${ac_cv_header_winsock2_h+set}" = set; then
8014 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8015echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8016if test "${ac_cv_header_winsock2_h+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018fi
8019echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8020echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
8021else
8022 # Is the header compilable?
8023echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8024echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
8025cat >conftest.$ac_ext <<_ACEOF
8026/* confdefs.h. */
8027_ACEOF
8028cat confdefs.h >>conftest.$ac_ext
8029cat >>conftest.$ac_ext <<_ACEOF
8030/* end confdefs.h. */
8031$ac_includes_default
8032#include <winsock2.h>
8033_ACEOF
8034rm -f conftest.$ac_objext
8035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8036 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008037 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008038 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008039 rm -f conftest.er1
8040 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -z "$ac_c_werror_flag"
8044 || test ! -s conftest.err'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest.$ac_objext'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 ac_header_compiler=yes
8057else
8058 echo "$as_me: failed program was:" >&5
8059sed 's/^/| /' conftest.$ac_ext >&5
8060
8061ac_header_compiler=no
8062fi
8063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8065echo "${ECHO_T}$ac_header_compiler" >&6
8066
8067# Is the header present?
8068echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8069echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
8070cat >conftest.$ac_ext <<_ACEOF
8071/* confdefs.h. */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h. */
8076#include <winsock2.h>
8077_ACEOF
8078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008085 (exit $ac_status); } >/dev/null; then
8086 if test -s conftest.err; then
8087 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008089 else
8090 ac_cpp_err=
8091 fi
8092else
8093 ac_cpp_err=yes
8094fi
8095if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008096 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008097else
8098 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008099sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008102fi
8103rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8105echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008106
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008107# So? What about this header?
8108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8109 yes:no: )
8110 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8111echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8113echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8114 ac_header_preproc=yes
8115 ;;
8116 no:yes:* )
8117 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8118echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8120echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8122echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8124echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8126echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8128echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
8129 (
8130 cat <<\_ASBOX
8131## ------------------------------------ ##
8132## Report this to the pjproject lists. ##
8133## ------------------------------------ ##
8134_ASBOX
8135 ) |
8136 sed "s/^/$as_me: WARNING: /" >&2
8137 ;;
8138esac
8139echo "$as_me:$LINENO: checking for winsock2.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008140echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8141if test "${ac_cv_header_winsock2_h+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008143else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008144 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008145fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008146echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008147echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008148
8149fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008150if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008151 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008152#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008153_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008154
8155fi
8156
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008157
Benny Prijono4e48b512007-05-16 13:41:00 +00008158if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8159 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8160echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8161if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163fi
8164echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8165echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8166else
8167 # Is the header compilable?
8168echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8169echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
8170cat >conftest.$ac_ext <<_ACEOF
8171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h. */
8176$ac_includes_default
8177#include <uuid/uuid.h>
8178_ACEOF
8179rm -f conftest.$ac_objext
8180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181 (eval $ac_compile) 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -z "$ac_c_werror_flag"
8189 || test ! -s conftest.err'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest.$ac_objext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_header_compiler=yes
8202else
8203 echo "$as_me: failed program was:" >&5
8204sed 's/^/| /' conftest.$ac_ext >&5
8205
8206ac_header_compiler=no
8207fi
8208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8210echo "${ECHO_T}$ac_header_compiler" >&6
8211
8212# Is the header present?
8213echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8214echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
8215cat >conftest.$ac_ext <<_ACEOF
8216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
8221#include <uuid/uuid.h>
8222_ACEOF
8223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } >/dev/null; then
8231 if test -s conftest.err; then
8232 ac_cpp_err=$ac_c_preproc_warn_flag
8233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8234 else
8235 ac_cpp_err=
8236 fi
8237else
8238 ac_cpp_err=yes
8239fi
8240if test -z "$ac_cpp_err"; then
8241 ac_header_preproc=yes
8242else
8243 echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246 ac_header_preproc=no
8247fi
8248rm -f conftest.err conftest.$ac_ext
8249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8250echo "${ECHO_T}$ac_header_preproc" >&6
8251
8252# So? What about this header?
8253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8254 yes:no: )
8255 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8256echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8257 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8258echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8259 ac_header_preproc=yes
8260 ;;
8261 no:yes:* )
8262 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8263echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8265echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8267echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8269echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8271echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8272 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8273echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
8274 (
8275 cat <<\_ASBOX
8276## ------------------------------------ ##
8277## Report this to the pjproject lists. ##
8278## ------------------------------------ ##
8279_ASBOX
8280 ) |
8281 sed "s/^/$as_me: WARNING: /" >&2
8282 ;;
8283esac
8284echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8285echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8286if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288else
8289 ac_cv_header_uuid_uuid_h=$ac_header_preproc
8290fi
8291echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8292echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8293
8294fi
8295if test $ac_cv_header_uuid_uuid_h = yes; then
8296 ac_has_uuid_h=1
8297fi
8298
8299
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008300
8301echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008302echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008303cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008304#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008305_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008306
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008307
8308echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008309echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008310cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008311#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008312_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008313
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008314
8315echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008316echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008317cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008318#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008319_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008320
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008321
8322echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008323echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008324cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008325#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008326_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008327
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008328
8329echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008330echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008331cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008332#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008333_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008334
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008335
8336echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008337echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008338cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008339#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008340_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008341
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008342
8343echo "$as_me:$LINENO: checking if inet_aton is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008344echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
8345cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008346/* confdefs.h. */
8347_ACEOF
8348cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008351#include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008352int
8353main ()
8354{
8355inet_aton(0, 0);
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008363 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008368 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008372 (eval $ac_try) 2>&5
8373 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008381 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008382 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008383#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008384_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008385
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008386 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008387echo "${ECHO_T}yes" >&6
8388else
8389 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008390sed 's/^/| /' conftest.$ac_ext >&5
8391
8392echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008393echo "${ECHO_T}no" >&6
8394fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008396
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008397echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008398echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
8399cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008405#include <sys/types.h>
8406 #include <sys/socket.h>
8407 #include <netinet/in.h>
8408 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008409int
8410main ()
8411{
8412struct sockaddr_in a; a.sin_len=0;
8413 ;
8414 return 0;
8415}
8416_ACEOF
8417rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8419 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008420 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008425 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008426 { ac_try='test -z "$ac_c_werror_flag"
8427 || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008429 (eval $ac_try) 2>&5
8430 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest.$ac_objext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008438 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008439 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008440#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008441_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008442
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008443 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008444echo "${ECHO_T}yes" >&6
8445else
8446 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008450echo "${ECHO_T}no" >&6
8451fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008453
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008454echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008455echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8456cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008457/* confdefs.h. */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008462#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008463int
8464main ()
8465{
8466socklen_t xxx = 0;
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008474 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008479 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008483 (eval $ac_try) 2>&5
8484 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest.$ac_objext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008492 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008493 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008494#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008495_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008496
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008497 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008498echo "${ECHO_T}yes" >&6
8499else
8500 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008501sed 's/^/| /' conftest.$ac_ext >&5
8502
8503echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008504echo "${ECHO_T}no" >&6
8505fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008507
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008508echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008509echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008510case $target in
8511 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008512 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008513#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008514_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008515
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008516 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008517echo "${ECHO_T}yes" >&6
8518 ;;
8519 *)
8520 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008521/* confdefs.h. */
8522_ACEOF
8523cat confdefs.h >>conftest.$ac_ext
8524cat >>conftest.$ac_ext <<_ACEOF
8525/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008526#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008527 #include <sys/socket.h>
8528 #include <netinet/in.h>
8529 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008530int
8531main ()
8532{
8533int i=SO_ERROR;
8534 ;
8535 return 0;
8536}
8537_ACEOF
8538rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008541 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008546 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008550 (eval $ac_try) 2>&5
8551 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008559 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008560 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008561#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008562_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008563
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008564 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008565echo "${ECHO_T}yes" >&6
8566else
8567 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008568sed 's/^/| /' conftest.$ac_ext >&5
8569
8570echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008571echo "${ECHO_T}no" >&6
8572fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008574 ;;
8575esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008576
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008577
8578echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008579echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
8580cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008581/* confdefs.h. */
8582_ACEOF
8583cat confdefs.h >>conftest.$ac_ext
8584cat >>conftest.$ac_ext <<_ACEOF
8585/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008586#include <pthread.h>
8587int
8588main ()
8589{
8590pthread_rwlock_t *x;
8591 ;
8592 return 0;
8593}
8594_ACEOF
8595rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8597 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008598 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008603 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008607 (eval $ac_try) 2>&5
8608 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest.$ac_objext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008616 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008617 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008618#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008619_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008620
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008621 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008622echo "${ECHO_T}yes" >&6
8623else
8624 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008625sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008626
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008627cat >>confdefs.h <<\_ACEOF
8628#define PJ_EMULATE_RWMUTEX 1
8629_ACEOF
8630
8631 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008632echo "${ECHO_T}no" >&6
8633fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8635
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008636
8637case $target in
8638 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00008639 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 +00008640 ;;
8641 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00008642 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"
8643 # UUID
8644 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
8645 ac_os_objs="$ac_os_objs guid_uuid.o"
8646 else
8647 ac_os_objs="$ac_os_objs guid_simple.o"
8648 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008649 ;;
8650esac
8651
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008652
8653
8654
Benny Prijono4e48b512007-05-16 13:41:00 +00008655
Benny Prijono1d971622006-09-10 22:27:40 +00008656# Check whether --enable-sound or --disable-sound was given.
8657if test "${enable_sound+set}" = set; then
8658 enableval="$enable_sound"
8659 if test "$enable_sound" = "no"; then
8660 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008661 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00008662echo "${ECHO_T}Checking if sound is disabled... yes" >&6
8663 fi
8664
8665fi;
8666
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008667
Benny Prijono27c98722007-04-09 21:28:15 +00008668if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8669 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8670echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8671if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673fi
8674echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8675echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8676else
8677 # Is the header compilable?
8678echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
8679echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
8680cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
8686$ac_includes_default
8687#include <sys/soundcard.h>
8688_ACEOF
8689rm -f conftest.$ac_objext
8690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_header_compiler=yes
8712else
8713 echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716ac_header_compiler=no
8717fi
8718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720echo "${ECHO_T}$ac_header_compiler" >&6
8721
8722# Is the header present?
8723echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
8724echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
8725cat >conftest.$ac_ext <<_ACEOF
8726/* confdefs.h. */
8727_ACEOF
8728cat confdefs.h >>conftest.$ac_ext
8729cat >>conftest.$ac_ext <<_ACEOF
8730/* end confdefs.h. */
8731#include <sys/soundcard.h>
8732_ACEOF
8733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } >/dev/null; then
8741 if test -s conftest.err; then
8742 ac_cpp_err=$ac_c_preproc_warn_flag
8743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8744 else
8745 ac_cpp_err=
8746 fi
8747else
8748 ac_cpp_err=yes
8749fi
8750if test -z "$ac_cpp_err"; then
8751 ac_header_preproc=yes
8752else
8753 echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_header_preproc=no
8757fi
8758rm -f conftest.err conftest.$ac_ext
8759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8760echo "${ECHO_T}$ac_header_preproc" >&6
8761
8762# So? What about this header?
8763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 yes:no: )
8765 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8766echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
8768echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
8769 ac_header_preproc=yes
8770 ;;
8771 no:yes:* )
8772 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
8773echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
8775echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
8777echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8779echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
8781echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
8783echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
8784 (
8785 cat <<\_ASBOX
8786## ------------------------------------ ##
8787## Report this to the pjproject lists. ##
8788## ------------------------------------ ##
8789_ASBOX
8790 ) |
8791 sed "s/^/$as_me: WARNING: /" >&2
8792 ;;
8793esac
8794echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8795echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8796if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798else
8799 ac_cv_header_sys_soundcard_h=$ac_header_preproc
8800fi
8801echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8802echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8803
8804fi
8805if test $ac_cv_header_sys_soundcard_h = yes; then
8806 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
8807fi
8808
8809
8810if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8811 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8812echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8813if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815fi
8816echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8817echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8818else
8819 # Is the header compilable?
8820echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
8821echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
8822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h. */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h. */
8828$ac_includes_default
8829#include <linux/soundcard.h>
8830_ACEOF
8831rm -f conftest.$ac_objext
8832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833 (eval $ac_compile) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag"
8841 || test ! -s conftest.err'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest.$ac_objext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_header_compiler=yes
8854else
8855 echo "$as_me: failed program was:" >&5
8856sed 's/^/| /' conftest.$ac_ext >&5
8857
8858ac_header_compiler=no
8859fi
8860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8862echo "${ECHO_T}$ac_header_compiler" >&6
8863
8864# Is the header present?
8865echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
8866echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
8867cat >conftest.$ac_ext <<_ACEOF
8868/* confdefs.h. */
8869_ACEOF
8870cat confdefs.h >>conftest.$ac_ext
8871cat >>conftest.$ac_ext <<_ACEOF
8872/* end confdefs.h. */
8873#include <linux/soundcard.h>
8874_ACEOF
8875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } >/dev/null; then
8883 if test -s conftest.err; then
8884 ac_cpp_err=$ac_c_preproc_warn_flag
8885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8886 else
8887 ac_cpp_err=
8888 fi
8889else
8890 ac_cpp_err=yes
8891fi
8892if test -z "$ac_cpp_err"; then
8893 ac_header_preproc=yes
8894else
8895 echo "$as_me: failed program was:" >&5
8896sed 's/^/| /' conftest.$ac_ext >&5
8897
8898 ac_header_preproc=no
8899fi
8900rm -f conftest.err conftest.$ac_ext
8901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8902echo "${ECHO_T}$ac_header_preproc" >&6
8903
8904# So? What about this header?
8905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8906 yes:no: )
8907 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8908echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
8910echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
8911 ac_header_preproc=yes
8912 ;;
8913 no:yes:* )
8914 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
8915echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
8917echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
8918 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
8919echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8921echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
8923echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
8925echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
8926 (
8927 cat <<\_ASBOX
8928## ------------------------------------ ##
8929## Report this to the pjproject lists. ##
8930## ------------------------------------ ##
8931_ASBOX
8932 ) |
8933 sed "s/^/$as_me: WARNING: /" >&2
8934 ;;
8935esac
8936echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8937echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8938if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941 ac_cv_header_linux_soundcard_h=$ac_header_preproc
8942fi
8943echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8944echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8945
8946fi
8947if test $ac_cv_header_linux_soundcard_h = yes; then
8948 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
8949fi
8950
8951
8952if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8953 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
8954echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
8955if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957fi
8958echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
8959echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
8960else
8961 # Is the header compilable?
8962echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
8963echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
8964cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h. */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h. */
8970$ac_includes_default
8971#include <machine/soundcard.h>
8972_ACEOF
8973rm -f conftest.$ac_objext
8974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag"
8983 || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest.$ac_objext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_header_compiler=yes
8996else
8997 echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
9000ac_header_compiler=no
9001fi
9002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9004echo "${ECHO_T}$ac_header_compiler" >&6
9005
9006# Is the header present?
9007echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9008echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
9009cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h. */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h. */
9015#include <machine/soundcard.h>
9016_ACEOF
9017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } >/dev/null; then
9025 if test -s conftest.err; then
9026 ac_cpp_err=$ac_c_preproc_warn_flag
9027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9028 else
9029 ac_cpp_err=
9030 fi
9031else
9032 ac_cpp_err=yes
9033fi
9034if test -z "$ac_cpp_err"; then
9035 ac_header_preproc=yes
9036else
9037 echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040 ac_header_preproc=no
9041fi
9042rm -f conftest.err conftest.$ac_ext
9043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9044echo "${ECHO_T}$ac_header_preproc" >&6
9045
9046# So? What about this header?
9047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9048 yes:no: )
9049 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9050echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9052echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9053 ac_header_preproc=yes
9054 ;;
9055 no:yes:* )
9056 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9057echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9059echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9061echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9063echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9065echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9067echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
9068 (
9069 cat <<\_ASBOX
9070## ------------------------------------ ##
9071## Report this to the pjproject lists. ##
9072## ------------------------------------ ##
9073_ASBOX
9074 ) |
9075 sed "s/^/$as_me: WARNING: /" >&2
9076 ;;
9077esac
9078echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9079echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9080if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082else
9083 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9084fi
9085echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9086echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9087
9088fi
9089if test $ac_cv_header_machine_soundcard_h = yes; then
9090 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
9091fi
9092
9093
9094
Benny Prijono1d971622006-09-10 22:27:40 +00009095if test "$enable_sound" = "no"; then
9096 true;
9097else
9098 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00009099 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00009100 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
9101 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009102 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00009103 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
9104 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009105 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00009106echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
9107 else
9108 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009109 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00009110echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00009111 fi
Benny Prijonob466e232006-09-10 08:53:59 +00009112 ;;
9113 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009114 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009115 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009116echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
9117 ;;
9118 *rtems*)
9119 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009120 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009121echo "${ECHO_T}Checking sound device backend... null sound" >&6
9122 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009123 *)
9124 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009125 if test "${ac_cv_header_alsa_version_h+set}" = set; then
9126 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009127echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9128if test "${ac_cv_header_alsa_version_h+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009130fi
9131echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
9132echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009133else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009134 # Is the header compilable?
9135echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
9136echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
9137cat >conftest.$ac_ext <<_ACEOF
9138/* confdefs.h. */
9139_ACEOF
9140cat confdefs.h >>conftest.$ac_ext
9141cat >>conftest.$ac_ext <<_ACEOF
9142/* end confdefs.h. */
9143$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009144#include <alsa/version.h>
9145_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009146rm -f conftest.$ac_objext
9147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009149 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009150 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009151 rm -f conftest.er1
9152 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -z "$ac_c_werror_flag"
9156 || test ! -s conftest.err'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 (eval $ac_try) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; } &&
9162 { ac_try='test -s conftest.$ac_objext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 (eval $ac_try) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 ac_header_compiler=yes
9169else
9170 echo "$as_me: failed program was:" >&5
9171sed 's/^/| /' conftest.$ac_ext >&5
9172
9173ac_header_compiler=no
9174fi
9175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9177echo "${ECHO_T}$ac_header_compiler" >&6
9178
9179# Is the header present?
9180echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
9181echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
9182cat >conftest.$ac_ext <<_ACEOF
9183/* confdefs.h. */
9184_ACEOF
9185cat confdefs.h >>conftest.$ac_ext
9186cat >>conftest.$ac_ext <<_ACEOF
9187/* end confdefs.h. */
9188#include <alsa/version.h>
9189_ACEOF
9190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009197 (exit $ac_status); } >/dev/null; then
9198 if test -s conftest.err; then
9199 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009201 else
9202 ac_cpp_err=
9203 fi
9204else
9205 ac_cpp_err=yes
9206fi
9207if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009208 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009209else
9210 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009211sed 's/^/| /' conftest.$ac_ext >&5
9212
9213 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009214fi
9215rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9217echo "${ECHO_T}$ac_header_preproc" >&6
9218
9219# So? What about this header?
9220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9221 yes:no: )
9222 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9223echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
9225echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
9226 ac_header_preproc=yes
9227 ;;
9228 no:yes:* )
9229 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
9230echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
9232echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
9234echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
9236echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
9238echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
9240echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
9241 (
9242 cat <<\_ASBOX
9243## ------------------------------------ ##
9244## Report this to the pjproject lists. ##
9245## ------------------------------------ ##
9246_ASBOX
9247 ) |
9248 sed "s/^/$as_me: WARNING: /" >&2
9249 ;;
9250esac
9251echo "$as_me:$LINENO: checking for alsa/version.h" >&5
9252echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9253if test "${ac_cv_header_alsa_version_h+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255else
9256 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009257fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009258echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009259echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009260
9261fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009262if test $ac_cv_header_alsa_version_h = yes; then
9263 ac_pa_use_alsa=1
9264
9265 LIBS="$LIBS -lasound"
9266
9267else
9268 ac_pa_use_alsa=0
9269
9270fi
9271
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009272
9273 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009274echo "${ECHO_T}Checking sound device backend... unix" >&6
9275 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00009276 esac
9277fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009278
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009279
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009280# Check whether --enable-small-filter or --disable-small-filter was given.
9281if test "${enable_small_filter+set}" = set; then
9282 enableval="$enable_small_filter"
9283 if test "$enable_small_filter" = "no"; then
9284 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009285 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009286echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
9287 fi
9288else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009289 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009290echo "${ECHO_T}Checking if small filter is disabled... no" >&6
9291fi;
9292
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009293
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009294# Check whether --enable-large-filter or --disable-large-filter was given.
9295if test "${enable_large_filter+set}" = set; then
9296 enableval="$enable_large_filter"
9297 if test "$enable_large_filter" = "no"; then
9298 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009299 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009300echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
9301 fi
9302else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009303 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009304echo "${ECHO_T}Checking if large filter is disabled... no" >&6
9305fi;
9306
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009307
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009308# Check whether --enable-speex-aec or --disable-speex-aec was given.
9309if test "${enable_speex_aec+set}" = set; then
9310 enableval="$enable_speex_aec"
9311 if test "$enable_speex_aec" = "no"; then
9312 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009313 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009314echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
9315 fi
9316else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009317 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009318echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
9319fi;
9320
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009321
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009322# Check whether --enable-g711-codec or --disable-g711-codec was given.
9323if test "${enable_g711_codec+set}" = set; then
9324 enableval="$enable_g711_codec"
9325 if test "$enable_g711_codec" = "no"; then
9326 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009327 cat >>confdefs.h <<\_ACEOF
9328#define PJMEDIA_HAS_G711_CODEC 0
9329_ACEOF
9330
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009331 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009332echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
9333 fi
9334else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009335 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009336echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
9337fi;
9338
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009339
9340
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009341# Check whether --enable-l16-codec or --disable-l16-codec was given.
9342if test "${enable_l16_codec+set}" = set; then
9343 enableval="$enable_l16_codec"
9344 if test "$enable_l16_codec" = "no"; then
9345 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009346 cat >>confdefs.h <<\_ACEOF
9347#define PJMEDIA_HAS_L16_CODEC 0
9348_ACEOF
9349
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009350 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009351echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
9352 fi
9353else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009354 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00009355echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009356fi;
9357
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009358
9359
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009360# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
9361if test "${enable_gsm_codec+set}" = set; then
9362 enableval="$enable_gsm_codec"
9363 if test "$enable_gsm_codec" = "no"; then
9364 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009365 cat >>confdefs.h <<\_ACEOF
9366#define PJMEDIA_HAS_GSM_CODEC 0
9367_ACEOF
9368
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009369 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009370echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
9371 fi
9372else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009373 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009374echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
9375fi;
9376
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009377
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009378# Check whether --enable-speex-codec or --disable-speex-codec was given.
9379if test "${enable_speex_codec+set}" = set; then
9380 enableval="$enable_speex_codec"
9381 if test "$enable_speex_codec" = "no"; then
9382 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009383 cat >>confdefs.h <<\_ACEOF
9384#define PJMEDIA_HAS_SPEEX_CODEC 0
9385_ACEOF
9386
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009387 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009388echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
9389 fi
9390else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009391 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009392echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
9393fi;
9394
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009395
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009396# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
9397if test "${enable_ilbc_codec+set}" = set; then
9398 enableval="$enable_ilbc_codec"
9399 if test "$enable_ilbc_codec" = "no"; then
9400 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009401 cat >>confdefs.h <<\_ACEOF
9402#define PJMEDIA_HAS_ILBC_CODEC 0
9403_ACEOF
9404
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009405 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009406echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
9407 fi
9408else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009409 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009410echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
9411fi;
9412
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009413
9414
9415
9416
9417# Check whether --enable-ssl or --disable-ssl was given.
9418if test "${enable_ssl+set}" = set; then
9419 enableval="$enable_ssl"
9420
9421 if test "$enable_ssl" = "no"; then
9422 ac_no_ssl=1
9423 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
9424echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
9425 fi
9426
9427else
9428
9429 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
9430echo "${ECHO_T}checking for OpenSSL installations.." >&6
9431
9432
9433
9434 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9435 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9436echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9437if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439fi
9440echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9441echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9442else
9443 # Is the header compilable?
9444echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9445echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9446cat >conftest.$ac_ext <<_ACEOF
9447/* confdefs.h. */
9448_ACEOF
9449cat confdefs.h >>conftest.$ac_ext
9450cat >>conftest.$ac_ext <<_ACEOF
9451/* end confdefs.h. */
9452$ac_includes_default
9453#include <openssl/ssl.h>
9454_ACEOF
9455rm -f conftest.$ac_objext
9456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 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_objext'
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_header_compiler=yes
9478else
9479 echo "$as_me: failed program was:" >&5
9480sed 's/^/| /' conftest.$ac_ext >&5
9481
9482ac_header_compiler=no
9483fi
9484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9486echo "${ECHO_T}$ac_header_compiler" >&6
9487
9488# Is the header present?
9489echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9490echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9491cat >conftest.$ac_ext <<_ACEOF
9492/* confdefs.h. */
9493_ACEOF
9494cat confdefs.h >>conftest.$ac_ext
9495cat >>conftest.$ac_ext <<_ACEOF
9496/* end confdefs.h. */
9497#include <openssl/ssl.h>
9498_ACEOF
9499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } >/dev/null; then
9507 if test -s conftest.err; then
9508 ac_cpp_err=$ac_c_preproc_warn_flag
9509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9510 else
9511 ac_cpp_err=
9512 fi
9513else
9514 ac_cpp_err=yes
9515fi
9516if test -z "$ac_cpp_err"; then
9517 ac_header_preproc=yes
9518else
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 ac_header_preproc=no
9523fi
9524rm -f conftest.err conftest.$ac_ext
9525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9526echo "${ECHO_T}$ac_header_preproc" >&6
9527
9528# So? What about this header?
9529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9530 yes:no: )
9531 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9532echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9534echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9535 ac_header_preproc=yes
9536 ;;
9537 no:yes:* )
9538 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9539echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9541echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9543echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9544 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9545echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9546 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9547echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9549echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9550 (
9551 cat <<\_ASBOX
9552## ------------------------------------ ##
9553## Report this to the pjproject lists. ##
9554## ------------------------------------ ##
9555_ASBOX
9556 ) |
9557 sed "s/^/$as_me: WARNING: /" >&2
9558 ;;
9559esac
9560echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9561echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9562if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564else
9565 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9566fi
9567echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9568echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9569
9570fi
9571if test $ac_cv_header_openssl_ssl_h = yes; then
9572 openssl_h_present=1
9573fi
9574
9575
9576 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9577echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
9578if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580else
9581 ac_check_lib_save_LIBS=$LIBS
9582LIBS="-lssl $LIBS"
9583cat >conftest.$ac_ext <<_ACEOF
9584/* confdefs.h. */
9585_ACEOF
9586cat confdefs.h >>conftest.$ac_ext
9587cat >>conftest.$ac_ext <<_ACEOF
9588/* end confdefs.h. */
9589
9590/* Override any gcc2 internal prototype to avoid an error. */
9591#ifdef __cplusplus
9592extern "C"
9593#endif
9594/* We use char because int might match the return type of a gcc2
9595 builtin and then its argument prototype would still apply. */
9596char SSL_library_init ();
9597int
9598main ()
9599{
9600SSL_library_init ();
9601 ;
9602 return 0;
9603}
9604_ACEOF
9605rm -f conftest.$ac_objext conftest$ac_exeext
9606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607 (eval $ac_link) 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try='test -z "$ac_c_werror_flag"
9615 || test ! -s conftest.err'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest$ac_exeext'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 ac_cv_lib_ssl_SSL_library_init=yes
9628else
9629 echo "$as_me: failed program was:" >&5
9630sed 's/^/| /' conftest.$ac_ext >&5
9631
9632ac_cv_lib_ssl_SSL_library_init=no
9633fi
9634rm -f conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636LIBS=$ac_check_lib_save_LIBS
9637fi
9638echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9639echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
9640if test $ac_cv_lib_ssl_SSL_library_init = yes; then
9641 libssl_present=1 && LIBS="$LIBS -lssl"
9642fi
9643
9644 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
9645echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
9646if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648else
9649 ac_check_lib_save_LIBS=$LIBS
9650LIBS="-lcrypto $LIBS"
9651cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657
9658/* Override any gcc2 internal prototype to avoid an error. */
9659#ifdef __cplusplus
9660extern "C"
9661#endif
9662/* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9664char ERR_load_BIO_strings ();
9665int
9666main ()
9667{
9668ERR_load_BIO_strings ();
9669 ;
9670 return 0;
9671}
9672_ACEOF
9673rm -f conftest.$ac_objext conftest$ac_exeext
9674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700ac_cv_lib_crypto_ERR_load_BIO_strings=no
9701fi
9702rm -f conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704LIBS=$ac_check_lib_save_LIBS
9705fi
9706echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
9707echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
9708if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
9709 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
9710fi
9711
9712 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
9713 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
9714echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
9715 cat >>confdefs.h <<\_ACEOF
9716#define PJSIP_HAS_TLS_TRANSPORT 1
9717_ACEOF
9718
9719 else
9720 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
9721echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
9722 fi
9723
9724fi;
9725
9726
9727
9728
9729echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009730echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009731case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009732 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009733#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009734_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009735
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009736 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009737echo "${ECHO_T}yes" >&6
9738 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009739 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009740#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009741_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009742
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009743 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009744echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009745 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009746echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
9747 ;;
9748esac
9749
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009750echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009751echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
9752case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009753 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009754#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009755_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009756
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009757 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009758echo "${ECHO_T}yes" >&6
9759 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009760 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009761#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009762_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009763
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009764 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009765echo "${ECHO_T}no (default)" >&6
9766 ;;
9767esac
9768
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009769echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009770echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
9771case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009772 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009773#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009774_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009775
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009776 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009777echo "${ECHO_T}yes" >&6
9778 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009779 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009780#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009781_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009782
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009783 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009784echo "${ECHO_T}no (default)" >&6
9785 ;;
9786esac
9787
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009788case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009789 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009790 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009791#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009792_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009793
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009794 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009795 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009796#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009797_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009798
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009799 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009800echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
9801 ;;
9802esac
9803
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009804case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009805 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009806 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009807#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009808_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009809
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009810 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009811 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009812#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009813_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009814
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009815 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009816echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
9817 ;;
9818esac
9819
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009820
9821
9822
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009823if test "$build" = "$host"; then
9824 ac_cross_compile=
9825else
Benny Prijono5b818b22006-09-17 22:58:51 +00009826 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009827fi
9828ac_linux_poll=select
9829
9830ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009831
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009832
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009833case $target in
9834 *rtems*)
9835 ac_main_obj=main_rtems.o
9836 ;;
9837 *)
9838 ac_main_obj=main.o
9839 ;;
9840esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009841
9842cat >confcache <<\_ACEOF
9843# This file is a shell script that caches the results of configure
9844# tests run on this system so they can be shared between configure
9845# scripts and configure runs, see configure's option --config-cache.
9846# It is not useful on other systems. If it contains results you don't
9847# want to keep, you may remove or edit it.
9848#
9849# config.status only pays attention to the cache file if you give it
9850# the --recheck option to rerun configure.
9851#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009852# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009853# loading this file, other *unset* `ac_cv_foo' will be assigned the
9854# following values.
9855
9856_ACEOF
9857
9858# The following way of writing the cache mishandles newlines in values,
9859# but we know of no workaround that is simple, portable, and efficient.
9860# So, don't put newlines in cache variables' values.
9861# Ultrix sh set writes to stderr and can't be redirected directly,
9862# and sets the high bit in the cache file unless we assign to the vars.
9863{
9864 (set) 2>&1 |
9865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9866 *ac_space=\ *)
9867 # `set' does not quote correctly, so add quotes (double-quote
9868 # substitution turns \\\\ into \\, and sed turns \\ into \).
9869 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009870 "s/'/'\\\\''/g;
9871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009872 ;;
9873 *)
9874 # `set' quotes correctly as required by POSIX, so do not add quotes.
9875 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009876 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009877 ;;
9878 esac;
9879} |
9880 sed '
9881 t clear
9882 : clear
9883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9884 t end
9885 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9886 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009887if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009888 if test -w $cache_file; then
9889 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9890 cat confcache >$cache_file
9891 else
9892 echo "not updating unwritable cache $cache_file"
9893 fi
9894fi
9895rm -f confcache
9896
9897test "x$prefix" = xNONE && prefix=$ac_default_prefix
9898# Let make expand exec_prefix.
9899test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9900
9901# VPATH may cause trouble with some makes, so we remove $(srcdir),
9902# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9903# trailing colons and then remove the whole line if VPATH becomes empty
9904# (actually we leave an empty line to preserve line numbers).
9905if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009906 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009907s/:*\$(srcdir):*/:/;
9908s/:*\${srcdir}:*/:/;
9909s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009910s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009911s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009912s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009913}'
9914fi
9915
9916DEFS=-DHAVE_CONFIG_H
9917
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009918ac_libobjs=
9919ac_ltlibobjs=
9920for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9921 # 1. Remove the extension, and $U if already installed.
9922 ac_i=`echo "$ac_i" |
9923 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9924 # 2. Add them.
9925 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9926 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9927done
9928LIBOBJS=$ac_libobjs
9929
9930LTLIBOBJS=$ac_ltlibobjs
9931
9932
9933
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009934: ${CONFIG_STATUS=./config.status}
9935ac_clean_files_save=$ac_clean_files
9936ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009937{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009938echo "$as_me: creating $CONFIG_STATUS" >&6;}
9939cat >$CONFIG_STATUS <<_ACEOF
9940#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009941# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009942# Run this file to recreate the current configuration.
9943# Compiler output produced by configure, useful for debugging
9944# configure, is in config.log if it exists.
9945
9946debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009947ac_cs_recheck=false
9948ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009949SHELL=\${CONFIG_SHELL-$SHELL}
9950_ACEOF
9951
9952cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009953## --------------------- ##
9954## M4sh Initialization. ##
9955## --------------------- ##
9956
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009957# Be Bourne compatible
9958if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9959 emulate sh
9960 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9962 # is contrary to our usage. Disable this feature.
9963 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009964elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9965 set -o posix
9966fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009967DUALCASE=1; export DUALCASE # for MKS sh
9968
9969# Support unset when possible.
9970if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9971 as_unset=unset
9972else
9973 as_unset=false
9974fi
9975
9976
9977# Work around bugs in pre-3.0 UWIN ksh.
9978$as_unset ENV MAIL MAILPATH
9979PS1='$ '
9980PS2='> '
9981PS4='+ '
9982
9983# NLS nuisances.
9984for as_var in \
9985 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9986 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9987 LC_TELEPHONE LC_TIME
9988do
9989 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9990 eval $as_var=C; export $as_var
9991 else
9992 $as_unset $as_var
9993 fi
9994done
9995
9996# Required to use basename.
9997if expr a : '\(a\)' >/dev/null 2>&1; then
9998 as_expr=expr
9999else
10000 as_expr=false
10001fi
10002
10003if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10004 as_basename=basename
10005else
10006 as_basename=false
10007fi
10008
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010009
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010010# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010011as_me=`$as_basename "$0" ||
10012$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10013 X"$0" : 'X\(//\)$' \| \
10014 X"$0" : 'X\(/\)$' \| \
10015 . : '\(.\)' 2>/dev/null ||
10016echo X/"$0" |
10017 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10018 /^X\/\(\/\/\)$/{ s//\1/; q; }
10019 /^X\/\(\/\).*/{ s//\1/; q; }
10020 s/.*/./; q'`
10021
10022
10023# PATH needs CR, and LINENO needs CR and PATH.
10024# Avoid depending upon Character Ranges.
10025as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10026as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10027as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10028as_cr_digits='0123456789'
10029as_cr_alnum=$as_cr_Letters$as_cr_digits
10030
10031# The user is always right.
10032if test "${PATH_SEPARATOR+set}" != set; then
10033 echo "#! /bin/sh" >conf$$.sh
10034 echo "exit 0" >>conf$$.sh
10035 chmod +x conf$$.sh
10036 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10037 PATH_SEPARATOR=';'
10038 else
10039 PATH_SEPARATOR=:
10040 fi
10041 rm -f conf$$.sh
10042fi
10043
10044
10045 as_lineno_1=$LINENO
10046 as_lineno_2=$LINENO
10047 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10048 test "x$as_lineno_1" != "x$as_lineno_2" &&
10049 test "x$as_lineno_3" = "x$as_lineno_2" || {
10050 # Find who we are. Look in the path if we contain no path at all
10051 # relative or not.
10052 case $0 in
10053 *[\\/]* ) as_myself=$0 ;;
10054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055for as_dir in $PATH
10056do
10057 IFS=$as_save_IFS
10058 test -z "$as_dir" && as_dir=.
10059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10060done
10061
10062 ;;
10063 esac
10064 # We did not find ourselves, most probably we were run as `sh COMMAND'
10065 # in which case we are not to be found in the path.
10066 if test "x$as_myself" = x; then
10067 as_myself=$0
10068 fi
10069 if test ! -f "$as_myself"; then
10070 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10071echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10072 { (exit 1); exit 1; }; }
10073 fi
10074 case $CONFIG_SHELL in
10075 '')
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10078do
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for as_base in sh bash ksh sh5; do
10082 case $as_dir in
10083 /*)
10084 if ("$as_dir/$as_base" -c '
10085 as_lineno_1=$LINENO
10086 as_lineno_2=$LINENO
10087 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10088 test "x$as_lineno_1" != "x$as_lineno_2" &&
10089 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10090 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10091 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10092 CONFIG_SHELL=$as_dir/$as_base
10093 export CONFIG_SHELL
10094 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10095 fi;;
10096 esac
10097 done
10098done
10099;;
10100 esac
10101
10102 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10103 # uniformly replaced by the line number. The first 'sed' inserts a
10104 # line-number line before each line; the second 'sed' does the real
10105 # work. The second script uses 'N' to pair each line-number line
10106 # with the numbered line, and appends trailing '-' during
10107 # substitution so that $LINENO is not a special case at line end.
10108 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10109 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10110 sed '=' <$as_myself |
10111 sed '
10112 N
10113 s,$,-,
10114 : loop
10115 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10116 t loop
10117 s,-$,,
10118 s,^['$as_cr_digits']*\n,,
10119 ' >$as_me.lineno &&
10120 chmod +x $as_me.lineno ||
10121 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10122echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10123 { (exit 1); exit 1; }; }
10124
10125 # Don't try to exec as it changes $[0], causing all sort of problems
10126 # (the dirname of $[0] is not the place where we might find the
10127 # original and so on. Autoconf is especially sensible to this).
10128 . ./$as_me.lineno
10129 # Exit status is that of the last command.
10130 exit
10131}
10132
10133
10134case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10135 *c*,-n*) ECHO_N= ECHO_C='
10136' ECHO_T=' ' ;;
10137 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10138 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10139esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010140
10141if expr a : '\(a\)' >/dev/null 2>&1; then
10142 as_expr=expr
10143else
10144 as_expr=false
10145fi
10146
10147rm -f conf$$ conf$$.exe conf$$.file
10148echo >conf$$.file
10149if ln -s conf$$.file conf$$ 2>/dev/null; then
10150 # We could just check for DJGPP; but this test a) works b) is more generic
10151 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10152 if test -f conf$$.exe; then
10153 # Don't use ln at all; we don't have any links
10154 as_ln_s='cp -p'
10155 else
10156 as_ln_s='ln -s'
10157 fi
10158elif ln conf$$.file conf$$ 2>/dev/null; then
10159 as_ln_s=ln
10160else
10161 as_ln_s='cp -p'
10162fi
10163rm -f conf$$ conf$$.exe conf$$.file
10164
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010165if mkdir -p . 2>/dev/null; then
10166 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000010167else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010168 test -d ./-p && rmdir ./-p
10169 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000010170fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010171
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010172as_executable_p="test -f"
10173
10174# Sed expression to map a string onto a valid CPP name.
10175as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10176
10177# Sed expression to map a string onto a valid variable name.
10178as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10179
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010180
10181# IFS
10182# We need space, tab and new line, in precisely that order.
10183as_nl='
10184'
10185IFS=" $as_nl"
10186
10187# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010188$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010189
10190exec 6>&1
10191
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010192# Open the log real soon, to keep \$[0] and so on meaningful, and to
10193# report actual input values of CONFIG_FILES etc. instead of their
10194# values after options handling. Logging --version etc. is OK.
10195exec 5>>config.log
10196{
10197 echo
10198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10199## Running $as_me. ##
10200_ASBOX
10201} >&5
10202cat >&5 <<_CSEOF
10203
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010204This file was extended by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010205generated by GNU Autoconf 2.59. Invocation command line was
10206
10207 CONFIG_FILES = $CONFIG_FILES
10208 CONFIG_HEADERS = $CONFIG_HEADERS
10209 CONFIG_LINKS = $CONFIG_LINKS
10210 CONFIG_COMMANDS = $CONFIG_COMMANDS
10211 $ $0 $@
10212
10213_CSEOF
10214echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10215echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010216_ACEOF
10217
10218# Files that config.status was made for.
10219if test -n "$ac_config_files"; then
10220 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10221fi
10222
10223if test -n "$ac_config_headers"; then
10224 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10225fi
10226
10227if test -n "$ac_config_links"; then
10228 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10229fi
10230
10231if test -n "$ac_config_commands"; then
10232 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10233fi
10234
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010235cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010236
10237ac_cs_usage="\
10238\`$as_me' instantiates files from templates according to the
10239current configuration.
10240
10241Usage: $0 [OPTIONS] [FILE]...
10242
10243 -h, --help print this help, then exit
10244 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010245 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010246 -d, --debug don't remove temporary files
10247 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010248 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010249 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010250 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010251 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010252
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010253Configuration files:
10254$config_files
10255
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010256Configuration headers:
10257$config_headers
10258
10259Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010260_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010261
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010262cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010263ac_cs_version="\\
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010264pjproject config.status 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010265configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010266 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10267
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010268Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010269This config.status script is free software; the Free Software Foundation
10270gives unlimited permission to copy, distribute and modify it."
10271srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010272_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010273
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010274cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010275# If no file are specified by the user, then we need to provide default
10276# value. By we need to know if files were specified by the user.
10277ac_need_defaults=:
10278while test $# != 0
10279do
10280 case $1 in
10281 --*=*)
10282 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10283 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010284 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010285 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010286 -*)
10287 ac_option=$1
10288 ac_optarg=$2
10289 ac_shift=shift
10290 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010291 *) # This is not an option, so the user has probably given explicit
10292 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010293 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010294 ac_need_defaults=false;;
10295 esac
10296
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010297 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010298 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010299_ACEOF
10300cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010302 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010303 --version | --vers* | -V )
10304 echo "$ac_cs_version"; exit 0 ;;
10305 --he | --h)
10306 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010307 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010308Try \`$0 --help' for more information." >&5
10309echo "$as_me: error: ambiguous option: $1
10310Try \`$0 --help' for more information." >&2;}
10311 { (exit 1); exit 1; }; };;
10312 --help | --hel | -h )
10313 echo "$ac_cs_usage"; exit 0 ;;
10314 --debug | --d* | -d )
10315 debug=: ;;
10316 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010317 $ac_shift
10318 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010319 ac_need_defaults=false;;
10320 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010321 $ac_shift
10322 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010323 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10326 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010327
10328 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010329 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010330Try \`$0 --help' for more information." >&5
10331echo "$as_me: error: unrecognized option: $1
10332Try \`$0 --help' for more information." >&2;}
10333 { (exit 1); exit 1; }; } ;;
10334
10335 *) ac_config_targets="$ac_config_targets $1" ;;
10336
10337 esac
10338 shift
10339done
10340
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010341ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010342
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010343if $ac_cs_silent; then
10344 exec 6>/dev/null
10345 ac_configure_extra_args="$ac_configure_extra_args --silent"
10346fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010347
10348_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010349cat >>$CONFIG_STATUS <<_ACEOF
10350if \$ac_cs_recheck; then
10351 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10352 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10353fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010354
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010355_ACEOF
10356
10357
10358
10359
10360
10361cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010362for ac_config_target in $ac_config_targets
10363do
10364 case "$ac_config_target" in
10365 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010366 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
10367 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
10368 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
10369 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
10370 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
10371 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod9627842007-04-18 09:24:31 +000010372 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
10373 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010374 "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 +000010375 "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 +000010376 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
10377 "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 +000010378 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
10379 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010380echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10381 { (exit 1); exit 1; }; };;
10382 esac
10383done
10384
10385# If the user did not use the arguments to specify the items to instantiate,
10386# then the envvar interface is used. Set only those that are not.
10387# We use the long form for the default assignment because of an extremely
10388# bizarre bug on SunOS 4.1.3.
10389if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010390 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010391 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10392fi
10393
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010394# Have a temporary directory for convenience. Make it in the build tree
10395# simply because there is no reason to put it here, and in addition,
10396# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010397# Create a temporary directory, and hook for its removal unless debugging.
10398$debug ||
10399{
10400 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10401 trap '{ (exit 1); exit 1; }' 1 2 13 15
10402}
10403
10404# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010405
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010406{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010407 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010408 test -n "$tmp" && test -d "$tmp"
10409} ||
10410{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010411 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010412 (umask 077 && mkdir $tmp)
10413} ||
10414{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010415 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010416 { (exit 1); exit 1; }
10417}
10418
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010419_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010420
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010421cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010422
10423#
10424# CONFIG_FILES section.
10425#
10426
10427# No need to generate the scripts if there are no CONFIG_FILES.
10428# This happens for instance when ./config.status config.h
10429if test -n "\$CONFIG_FILES"; then
10430 # Protect against being on the right side of a sed subst in config.status.
10431 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10432 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10433s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010434s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10435s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10436s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10437s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10438s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10439s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010440s,@exec_prefix@,$exec_prefix,;t t
10441s,@prefix@,$prefix,;t t
10442s,@program_transform_name@,$program_transform_name,;t t
10443s,@bindir@,$bindir,;t t
10444s,@sbindir@,$sbindir,;t t
10445s,@libexecdir@,$libexecdir,;t t
10446s,@datadir@,$datadir,;t t
10447s,@sysconfdir@,$sysconfdir,;t t
10448s,@sharedstatedir@,$sharedstatedir,;t t
10449s,@localstatedir@,$localstatedir,;t t
10450s,@libdir@,$libdir,;t t
10451s,@includedir@,$includedir,;t t
10452s,@oldincludedir@,$oldincludedir,;t t
10453s,@infodir@,$infodir,;t t
10454s,@mandir@,$mandir,;t t
10455s,@build_alias@,$build_alias,;t t
10456s,@host_alias@,$host_alias,;t t
10457s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010458s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010459s,@ECHO_C@,$ECHO_C,;t t
10460s,@ECHO_N@,$ECHO_N,;t t
10461s,@ECHO_T@,$ECHO_T,;t t
10462s,@LIBS@,$LIBS,;t t
10463s,@build@,$build,;t t
10464s,@build_cpu@,$build_cpu,;t t
10465s,@build_vendor@,$build_vendor,;t t
10466s,@build_os@,$build_os,;t t
10467s,@host@,$host,;t t
10468s,@host_cpu@,$host_cpu,;t t
10469s,@host_vendor@,$host_vendor,;t t
10470s,@host_os@,$host_os,;t t
10471s,@target@,$target,;t t
10472s,@target_cpu@,$target_cpu,;t t
10473s,@target_vendor@,$target_vendor,;t t
10474s,@target_os@,$target_os,;t t
10475s,@CC@,$CC,;t t
10476s,@CFLAGS@,$CFLAGS,;t t
10477s,@LDFLAGS@,$LDFLAGS,;t t
10478s,@CPPFLAGS@,$CPPFLAGS,;t t
10479s,@ac_ct_CC@,$ac_ct_CC,;t t
10480s,@EXEEXT@,$EXEEXT,;t t
10481s,@OBJEXT@,$OBJEXT,;t t
10482s,@CXX@,$CXX,;t t
10483s,@CXXFLAGS@,$CXXFLAGS,;t t
10484s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +000010485s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010486s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010487s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010488s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010489s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +000010490s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010491s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
10492s,@ac_no_small_filter@,$ac_no_small_filter,;t t
10493s,@ac_no_large_filter@,$ac_no_large_filter,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010494s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
10495s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
10496s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
10497s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
10498s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
10499s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010500s,@ac_no_ssl@,$ac_no_ssl,;t t
10501s,@openssl_h_present@,$openssl_h_present,;t t
10502s,@libssl_present@,$libssl_present,;t t
10503s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010504s,@ac_cross_compile@,$ac_cross_compile,;t t
10505s,@ac_linux_poll@,$ac_linux_poll,;t t
10506s,@ac_host@,$ac_host,;t t
10507s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010508s,@LIBOBJS@,$LIBOBJS,;t t
10509s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010510CEOF
10511
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010512_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010513
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010514 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010515 # Split the substitutions into bite-sized pieces for seds with
10516 # small command number limits, like on Digital OSF/1 and HP-UX.
10517 ac_max_sed_lines=48
10518 ac_sed_frag=1 # Number of current file.
10519 ac_beg=1 # First line for current file.
10520 ac_end=$ac_max_sed_lines # Line after last line for current file.
10521 ac_more_lines=:
10522 ac_sed_cmds=
10523 while $ac_more_lines; do
10524 if test $ac_beg -gt 1; then
10525 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10526 else
10527 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10528 fi
10529 if test ! -s $tmp/subs.frag; then
10530 ac_more_lines=false
10531 else
10532 # The purpose of the label and of the branching condition is to
10533 # speed up the sed processing (if there are no `@' at all, there
10534 # is no need to browse any of the substitutions).
10535 # These are the two extra sed commands mentioned above.
10536 (echo ':t
10537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10538 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010539 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010540 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010541 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010542 fi
10543 ac_sed_frag=`expr $ac_sed_frag + 1`
10544 ac_beg=$ac_end
10545 ac_end=`expr $ac_end + $ac_max_sed_lines`
10546 fi
10547 done
10548 if test -z "$ac_sed_cmds"; then
10549 ac_sed_cmds=cat
10550 fi
10551fi # test -n "$CONFIG_FILES"
10552
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010553_ACEOF
10554cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010555for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10556 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10557 case $ac_file in
10558 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010559 cat >$tmp/stdin
10560 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010562 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010564 * ) ac_file_in=$ac_file.in ;;
10565 esac
10566
10567 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010568 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10569$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10570 X"$ac_file" : 'X\(//\)[^/]' \| \
10571 X"$ac_file" : 'X\(//\)$' \| \
10572 X"$ac_file" : 'X\(/\)' \| \
10573 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010574echo X"$ac_file" |
10575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10577 /^X\(\/\/\)$/{ s//\1/; q; }
10578 /^X\(\/\).*/{ s//\1/; q; }
10579 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010580 { if $as_mkdir_p; then
10581 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010582 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010583 as_dir="$ac_dir"
10584 as_dirs=
10585 while test ! -d "$as_dir"; do
10586 as_dirs="$as_dir $as_dirs"
10587 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10588$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10589 X"$as_dir" : 'X\(//\)[^/]' \| \
10590 X"$as_dir" : 'X\(//\)$' \| \
10591 X"$as_dir" : 'X\(/\)' \| \
10592 . : '\(.\)' 2>/dev/null ||
10593echo X"$as_dir" |
10594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10596 /^X\(\/\/\)$/{ s//\1/; q; }
10597 /^X\(\/\).*/{ s//\1/; q; }
10598 s/.*/./; q'`
10599 done
10600 test ! -n "$as_dirs" || mkdir $as_dirs
10601 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10602echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10603 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010604
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010605 ac_builddir=.
10606
10607if test "$ac_dir" != .; then
10608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10609 # A "../" for each directory in $ac_dir_suffix.
10610 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10611else
10612 ac_dir_suffix= ac_top_builddir=
10613fi
10614
10615case $srcdir in
10616 .) # No --srcdir option. We are building in place.
10617 ac_srcdir=.
10618 if test -z "$ac_top_builddir"; then
10619 ac_top_srcdir=.
10620 else
10621 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10622 fi ;;
10623 [\\/]* | ?:[\\/]* ) # Absolute path.
10624 ac_srcdir=$srcdir$ac_dir_suffix;
10625 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010626 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010627 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10628 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10629esac
10630
10631# Do not use `cd foo && pwd` to compute absolute paths, because
10632# the directories may not exist.
10633case `pwd` in
10634.) ac_abs_builddir="$ac_dir";;
10635*)
10636 case "$ac_dir" in
10637 .) ac_abs_builddir=`pwd`;;
10638 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10639 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10640 esac;;
10641esac
10642case $ac_abs_builddir in
10643.) ac_abs_top_builddir=${ac_top_builddir}.;;
10644*)
10645 case ${ac_top_builddir}. in
10646 .) ac_abs_top_builddir=$ac_abs_builddir;;
10647 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10648 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10649 esac;;
10650esac
10651case $ac_abs_builddir in
10652.) ac_abs_srcdir=$ac_srcdir;;
10653*)
10654 case $ac_srcdir in
10655 .) ac_abs_srcdir=$ac_abs_builddir;;
10656 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10657 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10658 esac;;
10659esac
10660case $ac_abs_builddir in
10661.) ac_abs_top_srcdir=$ac_top_srcdir;;
10662*)
10663 case $ac_top_srcdir in
10664 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10665 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10666 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10667 esac;;
10668esac
10669
10670
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010671
10672 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010673 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010674echo "$as_me: creating $ac_file" >&6;}
10675 rm -f "$ac_file"
10676 fi
10677 # Let's still pretend it is `configure' which instantiates (i.e., don't
10678 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010679 # /* config.h. Generated by config.status. */
10680 if test x"$ac_file" = x-; then
10681 configure_input=
10682 else
10683 configure_input="$ac_file. "
10684 fi
10685 configure_input=$configure_input"Generated from `echo $ac_file_in |
10686 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010687
10688 # First look for the input files in the build tree, otherwise in the
10689 # src tree.
10690 ac_file_inputs=`IFS=:
10691 for f in $ac_file_in; do
10692 case $f in
10693 -) echo $tmp/stdin ;;
10694 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010695 # Absolute (can't be DOS-style, as IFS=:)
10696 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010697echo "$as_me: error: cannot find input file: $f" >&2;}
10698 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010699 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010700 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010701 if test -f "$f"; then
10702 # Build tree
10703 echo "$f"
10704 elif test -f "$srcdir/$f"; then
10705 # Source tree
10706 echo "$srcdir/$f"
10707 else
10708 # /dev/null tree
10709 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010710echo "$as_me: error: cannot find input file: $f" >&2;}
10711 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010712 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010713 esac
10714 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010715_ACEOF
10716cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010717 sed "$ac_vpsub
10718$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010719_ACEOF
10720cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010721:t
10722/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10723s,@configure_input@,$configure_input,;t t
10724s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010725s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010726s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010727s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10728s,@builddir@,$ac_builddir,;t t
10729s,@abs_builddir@,$ac_abs_builddir,;t t
10730s,@top_builddir@,$ac_top_builddir,;t t
10731s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010732" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10733 rm -f $tmp/stdin
10734 if test x"$ac_file" != x-; then
10735 mv $tmp/out $ac_file
10736 else
10737 cat $tmp/out
10738 rm -f $tmp/out
10739 fi
10740
10741done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010742_ACEOF
10743cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010744
10745#
10746# CONFIG_HEADER section.
10747#
10748
10749# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10750# NAME is the cpp macro being defined and VALUE is the value it is being given.
10751#
10752# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010753ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10754ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010755ac_dC=' '
10756ac_dD=',;t'
10757# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010758ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010759ac_uB='$,\1#\2define\3'
10760ac_uC=' '
10761ac_uD=',;t'
10762
10763for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10764 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10765 case $ac_file in
10766 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010767 cat >$tmp/stdin
10768 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10769 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010770 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010771 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010772 * ) ac_file_in=$ac_file.in ;;
10773 esac
10774
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010775 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010776echo "$as_me: creating $ac_file" >&6;}
10777
10778 # First look for the input files in the build tree, otherwise in the
10779 # src tree.
10780 ac_file_inputs=`IFS=:
10781 for f in $ac_file_in; do
10782 case $f in
10783 -) echo $tmp/stdin ;;
10784 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010785 # Absolute (can't be DOS-style, as IFS=:)
10786 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010787echo "$as_me: error: cannot find input file: $f" >&2;}
10788 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010789 # Do quote $f, to prevent DOS paths from being IFS'd.
10790 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +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 Prijonoa9b372a2006-07-24 02:07:11 +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 Prijonoa9b372a2006-07-24 02:07:11 +000010804 esac
10805 done` || { (exit 1); exit 1; }
10806 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010807 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010808
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010809_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010810
10811# Transform confdefs.h into two sed scripts, `conftest.defines' and
10812# `conftest.undefs', that substitutes the proper values into
10813# config.h.in to produce config.h. The first handles `#define'
10814# templates, and the second `#undef' templates.
10815# And first: Protect against being on the right side of a sed subst in
10816# config.status. Protect against being in an unquoted here document
10817# in config.status.
10818rm -f conftest.defines conftest.undefs
10819# Using a here document instead of a string reduces the quoting nightmare.
10820# Putting comments in sed scripts is not portable.
10821#
10822# `end' is used to avoid that the second main sed command (meant for
10823# 0-ary CPP macros) applies to n-ary macro definitions.
10824# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010825cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010826s/[\\&,]/\\&/g
10827s,[\\$`],\\&,g
10828t clear
10829: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010830s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010831t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010832s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010833: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010834_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010835# If some macros were called several times there might be several times
10836# the same #defines, which is useless. Nevertheless, we may not want to
10837# sort them, since we want the *last* AC-DEFINE to be honored.
10838uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10839sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10840rm -f confdef2sed.sed
10841
10842# This sed command replaces #undef with comments. This is necessary, for
10843# example, in the case of _POSIX_SOURCE, which is predefined and required
10844# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010845cat >>conftest.undefs <<\_ACEOF
10846s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10847_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010848
10849# Break up conftest.defines because some shells have a limit on the size
10850# of here documents, and old seds have small limits too (100 cmds).
10851echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010852echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010853echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10854echo ' :' >>$CONFIG_STATUS
10855rm -f conftest.tail
10856while grep . conftest.defines >/dev/null
10857do
10858 # Write a limited-size here document to $tmp/defines.sed.
10859 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10860 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010861 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010862 # Work around the forget-to-reset-the-flag bug.
10863 echo 't clr' >>$CONFIG_STATUS
10864 echo ': clr' >>$CONFIG_STATUS
10865 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10866 echo 'CEOF
10867 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10868 rm -f $tmp/in
10869 mv $tmp/out $tmp/in
10870' >>$CONFIG_STATUS
10871 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10872 rm -f conftest.defines
10873 mv conftest.tail conftest.defines
10874done
10875rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010876echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010877echo >>$CONFIG_STATUS
10878
10879# Break up conftest.undefs because some shells have a limit on the size
10880# of here documents, and old seds have small limits too (100 cmds).
10881echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10882rm -f conftest.tail
10883while grep . conftest.undefs >/dev/null
10884do
10885 # Write a limited-size here document to $tmp/undefs.sed.
10886 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10887 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010888 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010889 # Work around the forget-to-reset-the-flag bug.
10890 echo 't clr' >>$CONFIG_STATUS
10891 echo ': clr' >>$CONFIG_STATUS
10892 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10893 echo 'CEOF
10894 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10895 rm -f $tmp/in
10896 mv $tmp/out $tmp/in
10897' >>$CONFIG_STATUS
10898 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10899 rm -f conftest.undefs
10900 mv conftest.tail conftest.undefs
10901done
10902rm -f conftest.undefs
10903
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010904cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010905 # Let's still pretend it is `configure' which instantiates (i.e., don't
10906 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010907 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010908 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010909 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010910 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010911 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010912 fi
10913 cat $tmp/in >>$tmp/config.h
10914 rm -f $tmp/in
10915 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010916 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10917 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010918echo "$as_me: $ac_file is unchanged" >&6;}
10919 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010920 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10921$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10922 X"$ac_file" : 'X\(//\)[^/]' \| \
10923 X"$ac_file" : 'X\(//\)$' \| \
10924 X"$ac_file" : 'X\(/\)' \| \
10925 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010926echo X"$ac_file" |
10927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10929 /^X\(\/\/\)$/{ s//\1/; q; }
10930 /^X\(\/\).*/{ s//\1/; q; }
10931 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010932 { if $as_mkdir_p; then
10933 mkdir -p "$ac_dir"
10934 else
10935 as_dir="$ac_dir"
10936 as_dirs=
10937 while test ! -d "$as_dir"; do
10938 as_dirs="$as_dir $as_dirs"
10939 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10941 X"$as_dir" : 'X\(//\)[^/]' \| \
10942 X"$as_dir" : 'X\(//\)$' \| \
10943 X"$as_dir" : 'X\(/\)' \| \
10944 . : '\(.\)' 2>/dev/null ||
10945echo X"$as_dir" |
10946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10948 /^X\(\/\/\)$/{ s//\1/; q; }
10949 /^X\(\/\).*/{ s//\1/; q; }
10950 s/.*/./; q'`
10951 done
10952 test ! -n "$as_dirs" || mkdir $as_dirs
10953 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10954echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10955 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010956
10957 rm -f $ac_file
10958 mv $tmp/config.h $ac_file
10959 fi
10960 else
10961 cat $tmp/config.h
10962 rm -f $tmp/config.h
10963 fi
10964done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010965_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010966
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010967cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010968
10969{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010970_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010971chmod +x $CONFIG_STATUS
10972ac_clean_files=$ac_clean_files_save
10973
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010974
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010975# configure is writing to config.log, and then calls config.status.
10976# config.status does its own redirection, appending to config.log.
10977# Unfortunately, on DOS this fails, as config.log is still kept open
10978# by configure, so config.status won't be able to write to it; its
10979# output is simply discarded. So we exec the FD to /dev/null,
10980# effectively closing config.log, so it can be properly (re)opened and
10981# appended to by config.status. When coming back to configure, we
10982# need to make the FD available again.
10983if test "$no_create" != yes; then
10984 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010985 ac_config_status_args=
10986 test "$silent" = yes &&
10987 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010988 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010989 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010990 exec 5>>config.log
10991 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10992 # would make configure fail if this is the last instruction.
10993 $ac_cs_success || { (exit 1); exit 1; }
10994fi
10995
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010996
Benny Prijonod9627842007-04-18 09:24:31 +000010997
10998echo "$as_me:$LINENO: result:
10999
11000The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
11001
11002Customizations can be put in:
11003 - 'user.mak'
11004 - 'pjlib/include/pj/config_site.h'
11005
11006The next step now is to run 'make dep' and 'make'.
11007" >&5
11008echo "${ECHO_T}
11009
11010The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
11011
11012Customizations can be put in:
11013 - 'user.mak'
11014 - 'pjlib/include/pj/config_site.h'
11015
11016The next step now is to run 'make dep' and 'make'.
11017" >&6
11018