blob: 5f65eaa9f1109b34aeb09ab4e5eebe19c87e12c8 [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 Prijono53847a32007-09-24 16:10:13 +00002747case $target in
2748 *mingw* | *cygw* | *win32* | *w32* )
2749 ac_pjdir=`pwd -W`
2750 ;;
2751 *)
2752 ac_pjdir=`pwd`
2753 ;;
2754esac
Benny Prijono12483112007-03-12 10:44:38 +00002755
2756
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002757
2758echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002759echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2760if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762else
2763 ac_check_lib_save_LIBS=$LIBS
2764LIBS="-lpthread $LIBS"
2765cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002766/* confdefs.h. */
2767_ACEOF
2768cat confdefs.h >>conftest.$ac_ext
2769cat >>conftest.$ac_ext <<_ACEOF
2770/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002771
2772/* Override any gcc2 internal prototype to avoid an error. */
2773#ifdef __cplusplus
2774extern "C"
2775#endif
2776/* We use char because int might match the return type of a gcc2
2777 builtin and then its argument prototype would still apply. */
2778char pthread_create ();
2779int
2780main ()
2781{
2782pthread_create ();
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2789 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002790 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002795 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002799 (eval $ac_try) 2>&5
2800 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002808 (exit $ac_status); }; }; then
2809 ac_cv_lib_pthread_pthread_create=yes
2810else
2811 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002812sed 's/^/| /' conftest.$ac_ext >&5
2813
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002814ac_cv_lib_pthread_pthread_create=no
2815fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002816rm -f conftest.err conftest.$ac_objext \
2817 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002818LIBS=$ac_check_lib_save_LIBS
2819fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002820echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002821echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2822if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002823 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002824#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002825_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002826
2827 LIBS="-lpthread $LIBS"
2828
2829fi
2830
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002831
2832echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002833echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
2834if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837 ac_check_lib_save_LIBS=$LIBS
2838LIBS="-lwsock32 $LIBS"
2839cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002840/* confdefs.h. */
2841_ACEOF
2842cat confdefs.h >>conftest.$ac_ext
2843cat >>conftest.$ac_ext <<_ACEOF
2844/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002845
2846/* Override any gcc2 internal prototype to avoid an error. */
2847#ifdef __cplusplus
2848extern "C"
2849#endif
2850/* We use char because int might match the return type of a gcc2
2851 builtin and then its argument prototype would still apply. */
2852char puts ();
2853int
2854main ()
2855{
2856puts ();
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2863 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002864 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002869 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002870 { ac_try='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002873 (eval $ac_try) 2>&5
2874 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest$ac_exeext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002882 (exit $ac_status); }; }; then
2883 ac_cv_lib_wsock32_puts=yes
2884else
2885 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002886sed 's/^/| /' conftest.$ac_ext >&5
2887
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002888ac_cv_lib_wsock32_puts=no
2889fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002890rm -f conftest.err conftest.$ac_objext \
2891 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002892LIBS=$ac_check_lib_save_LIBS
2893fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002894echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002895echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
2896if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002897 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002898#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002899_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002900
2901 LIBS="-lwsock32 $LIBS"
2902
2903fi
2904
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002905
2906echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002907echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
2908if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911 ac_check_lib_save_LIBS=$LIBS
2912LIBS="-lws2_32 $LIBS"
2913cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002914/* confdefs.h. */
2915_ACEOF
2916cat confdefs.h >>conftest.$ac_ext
2917cat >>conftest.$ac_ext <<_ACEOF
2918/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002919
2920/* Override any gcc2 internal prototype to avoid an error. */
2921#ifdef __cplusplus
2922extern "C"
2923#endif
2924/* We use char because int might match the return type of a gcc2
2925 builtin and then its argument prototype would still apply. */
2926char puts ();
2927int
2928main ()
2929{
2930puts ();
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2937 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002938 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002943 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002947 (eval $ac_try) 2>&5
2948 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest$ac_exeext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002956 (exit $ac_status); }; }; then
2957 ac_cv_lib_ws2_32_puts=yes
2958else
2959 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002960sed 's/^/| /' conftest.$ac_ext >&5
2961
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002962ac_cv_lib_ws2_32_puts=no
2963fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002964rm -f conftest.err conftest.$ac_objext \
2965 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002966LIBS=$ac_check_lib_save_LIBS
2967fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002968echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002969echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
2970if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002971 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002972#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002973_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002974
2975 LIBS="-lws2_32 $LIBS"
2976
2977fi
2978
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002979
2980echo "$as_me:$LINENO: checking for puts in -lole32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002981echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
2982if test "${ac_cv_lib_ole32_puts+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985 ac_check_lib_save_LIBS=$LIBS
2986LIBS="-lole32 $LIBS"
2987cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002993
2994/* Override any gcc2 internal prototype to avoid an error. */
2995#ifdef __cplusplus
2996extern "C"
2997#endif
2998/* We use char because int might match the return type of a gcc2
2999 builtin and then its argument prototype would still apply. */
3000char puts ();
3001int
3002main ()
3003{
3004puts ();
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3011 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003012 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003017 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003018 { ac_try='test -z "$ac_c_werror_flag"
3019 || test ! -s conftest.err'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003021 (eval $ac_try) 2>&5
3022 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest$ac_exeext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003030 (exit $ac_status); }; }; then
3031 ac_cv_lib_ole32_puts=yes
3032else
3033 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003034sed 's/^/| /' conftest.$ac_ext >&5
3035
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003036ac_cv_lib_ole32_puts=no
3037fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003038rm -f conftest.err conftest.$ac_objext \
3039 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003040LIBS=$ac_check_lib_save_LIBS
3041fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003042echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003043echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
3044if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003045 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003046#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003047_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003048
3049 LIBS="-lole32 $LIBS"
3050
3051fi
3052
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003053
3054echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003055echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
3056if test "${ac_cv_lib_winmm_puts+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059 ac_check_lib_save_LIBS=$LIBS
3060LIBS="-lwinmm $LIBS"
3061cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003067
3068/* Override any gcc2 internal prototype to avoid an error. */
3069#ifdef __cplusplus
3070extern "C"
3071#endif
3072/* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3074char puts ();
3075int
3076main ()
3077{
3078puts ();
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003086 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003091 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003092 { ac_try='test -z "$ac_c_werror_flag"
3093 || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003095 (eval $ac_try) 2>&5
3096 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest$ac_exeext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003104 (exit $ac_status); }; }; then
3105 ac_cv_lib_winmm_puts=yes
3106else
3107 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003108sed 's/^/| /' conftest.$ac_ext >&5
3109
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003110ac_cv_lib_winmm_puts=no
3111fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112rm -f conftest.err conftest.$ac_objext \
3113 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003114LIBS=$ac_check_lib_save_LIBS
3115fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003116echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003117echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
3118if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003119 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003120#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003121_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003122
3123 LIBS="-lwinmm $LIBS"
3124
3125fi
3126
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003127
3128echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003129echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
3130if test "${ac_cv_lib_socket_puts+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132else
3133 ac_check_lib_save_LIBS=$LIBS
3134LIBS="-lsocket $LIBS"
3135cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003136/* confdefs.h. */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003141
3142/* Override any gcc2 internal prototype to avoid an error. */
3143#ifdef __cplusplus
3144extern "C"
3145#endif
3146/* We use char because int might match the return type of a gcc2
3147 builtin and then its argument prototype would still apply. */
3148char puts ();
3149int
3150main ()
3151{
3152puts ();
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3159 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003160 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003161 grep -v '^ *+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003165 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003166 { ac_try='test -z "$ac_c_werror_flag"
3167 || test ! -s conftest.err'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003169 (eval $ac_try) 2>&5
3170 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest$ac_exeext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003178 (exit $ac_status); }; }; then
3179 ac_cv_lib_socket_puts=yes
3180else
3181 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003182sed 's/^/| /' conftest.$ac_ext >&5
3183
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003184ac_cv_lib_socket_puts=no
3185fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003186rm -f conftest.err conftest.$ac_objext \
3187 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003188LIBS=$ac_check_lib_save_LIBS
3189fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003190echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003191echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
3192if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003193 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003194#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003195_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003196
3197 LIBS="-lsocket $LIBS"
3198
3199fi
3200
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003201
3202echo "$as_me:$LINENO: checking for puts in -lrt" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003203echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
3204if test "${ac_cv_lib_rt_puts+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206else
3207 ac_check_lib_save_LIBS=$LIBS
3208LIBS="-lrt $LIBS"
3209cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003215
3216/* Override any gcc2 internal prototype to avoid an error. */
3217#ifdef __cplusplus
3218extern "C"
3219#endif
3220/* We use char because int might match the return type of a gcc2
3221 builtin and then its argument prototype would still apply. */
3222char puts ();
3223int
3224main ()
3225{
3226puts ();
3227 ;
3228 return 0;
3229}
3230_ACEOF
3231rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3233 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003234 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003239 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003240 { ac_try='test -z "$ac_c_werror_flag"
3241 || test ! -s conftest.err'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003243 (eval $ac_try) 2>&5
3244 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try='test -s conftest$ac_exeext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003252 (exit $ac_status); }; }; then
3253 ac_cv_lib_rt_puts=yes
3254else
3255 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003256sed 's/^/| /' conftest.$ac_ext >&5
3257
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003258ac_cv_lib_rt_puts=no
3259fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003260rm -f conftest.err conftest.$ac_objext \
3261 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003262LIBS=$ac_check_lib_save_LIBS
3263fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003264echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003265echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
3266if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003267 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003268#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003269_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003270
3271 LIBS="-lrt $LIBS"
3272
3273fi
3274
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003275
3276echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003277echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
3278if test "${ac_cv_lib_nsl_puts+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280else
3281 ac_check_lib_save_LIBS=$LIBS
3282LIBS="-lnsl $LIBS"
3283cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003289
3290/* Override any gcc2 internal prototype to avoid an error. */
3291#ifdef __cplusplus
3292extern "C"
3293#endif
3294/* We use char because int might match the return type of a gcc2
3295 builtin and then its argument prototype would still apply. */
3296char puts ();
3297int
3298main ()
3299{
3300puts ();
3301 ;
3302 return 0;
3303}
3304_ACEOF
3305rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3307 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003308 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003313 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003314 { ac_try='test -z "$ac_c_werror_flag"
3315 || test ! -s conftest.err'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003317 (eval $ac_try) 2>&5
3318 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try='test -s conftest$ac_exeext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003326 (exit $ac_status); }; }; then
3327 ac_cv_lib_nsl_puts=yes
3328else
3329 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003330sed 's/^/| /' conftest.$ac_ext >&5
3331
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003332ac_cv_lib_nsl_puts=no
3333fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003334rm -f conftest.err conftest.$ac_objext \
3335 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003336LIBS=$ac_check_lib_save_LIBS
3337fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003338echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003339echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
3340if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003341 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003342#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003343_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003344
3345 LIBS="-lnsl $LIBS"
3346
3347fi
3348
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003349
Benny Prijono4e48b512007-05-16 13:41:00 +00003350echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3351echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
3352if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 ac_check_lib_save_LIBS=$LIBS
3356LIBS="-luuid $LIBS"
3357cat >conftest.$ac_ext <<_ACEOF
3358/* confdefs.h. */
3359_ACEOF
3360cat confdefs.h >>conftest.$ac_ext
3361cat >>conftest.$ac_ext <<_ACEOF
3362/* end confdefs.h. */
3363
3364/* Override any gcc2 internal prototype to avoid an error. */
3365#ifdef __cplusplus
3366extern "C"
3367#endif
3368/* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3370char uuid_generate ();
3371int
3372main ()
3373{
3374uuid_generate ();
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext conftest$ac_exeext
3380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -z "$ac_c_werror_flag"
3389 || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try='test -s conftest$ac_exeext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 (eval $ac_try) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_cv_lib_uuid_uuid_generate=yes
3402else
3403 echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406ac_cv_lib_uuid_uuid_generate=no
3407fi
3408rm -f conftest.err conftest.$ac_objext \
3409 conftest$ac_exeext conftest.$ac_ext
3410LIBS=$ac_check_lib_save_LIBS
3411fi
3412echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3413echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
3414if test $ac_cv_lib_uuid_uuid_generate = yes; then
3415 cat >>confdefs.h <<_ACEOF
3416#define HAVE_LIBUUID 1
3417_ACEOF
3418
3419 LIBS="-luuid $LIBS"
3420
3421fi
3422
3423echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3424echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
3425if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 ac_check_lib_save_LIBS=$LIBS
3429LIBS="-luuid $LIBS"
3430cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h. */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h. */
3436
3437/* Override any gcc2 internal prototype to avoid an error. */
3438#ifdef __cplusplus
3439extern "C"
3440#endif
3441/* We use char because int might match the return type of a gcc2
3442 builtin and then its argument prototype would still apply. */
3443char uuid_generate ();
3444int
3445main ()
3446{
3447uuid_generate ();
3448 ;
3449 return 0;
3450}
3451_ACEOF
3452rm -f conftest.$ac_objext conftest$ac_exeext
3453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3454 (eval $ac_link) 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag"
3462 || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_lib_uuid_uuid_generate=yes
3475else
3476 echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479ac_cv_lib_uuid_uuid_generate=no
3480fi
3481rm -f conftest.err conftest.$ac_objext \
3482 conftest$ac_exeext conftest.$ac_ext
3483LIBS=$ac_check_lib_save_LIBS
3484fi
3485echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3486echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
3487if test $ac_cv_lib_uuid_uuid_generate = yes; then
3488 ac_has_uuid_lib=1
3489fi
3490
3491
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003492echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3493echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
3494cat >>confdefs.h <<_ACEOF
3495#define PJ_M_NAME "$target_cpu"
3496_ACEOF
3497
3498
3499echo "$as_me:$LINENO: checking memory alignment" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003500echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
3501case $target in
3502 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003503 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003504#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003505_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003506
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003507 echo "$as_me:$LINENO: result: 8 bytes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003508echo "${ECHO_T}8 bytes" >&6
3509 ;;
3510 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003511 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003512#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003513_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003514
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003515 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003516echo "${ECHO_T}4 bytes (default)" >&6
3517 ;;
3518esac
3519
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003520
3521echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003522echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3523if test "${ac_cv_c_bigendian+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003526 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003527cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003528/* confdefs.h. */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003533#include <sys/types.h>
3534#include <sys/param.h>
3535
3536int
3537main ()
3538{
3539#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3540 bogus endian macros
3541#endif
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
3547rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3549 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003550 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003555 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003556 { ac_try='test -z "$ac_c_werror_flag"
3557 || test ! -s conftest.err'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003559 (eval $ac_try) 2>&5
3560 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; } &&
3563 { ac_try='test -s conftest.$ac_objext'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003568 (exit $ac_status); }; }; then
3569 # It does; now see whether it defined to BIG_ENDIAN or not.
3570cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003576#include <sys/types.h>
3577#include <sys/param.h>
3578
3579int
3580main ()
3581{
3582#if BYTE_ORDER != BIG_ENDIAN
3583 not big endian
3584#endif
3585
3586 ;
3587 return 0;
3588}
3589_ACEOF
3590rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003593 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003598 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003602 (eval $ac_try) 2>&5
3603 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003611 (exit $ac_status); }; }; then
3612 ac_cv_c_bigendian=yes
3613else
3614 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003615sed 's/^/| /' conftest.$ac_ext >&5
3616
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003617ac_cv_c_bigendian=no
3618fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003620else
3621 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003625if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003626 # try to guess the endianness by grepping values into an object file
3627 ac_cv_c_bigendian=unknown
3628 cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h. */
3634short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3635short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3636void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3637short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3638short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3639void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3640int
3641main ()
3642{
3643 _ascii (); _ebcdic ();
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext
3649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>conftest.er1
3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_c_werror_flag"
3658 || test ! -s conftest.err'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; } &&
3664 { ac_try='test -s conftest.$ac_objext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3671 ac_cv_c_bigendian=yes
3672fi
3673if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3674 if test "$ac_cv_c_bigendian" = unknown; then
3675 ac_cv_c_bigendian=no
3676 else
3677 # finding both strings is unlikely to happen, but who knows?
3678 ac_cv_c_bigendian=unknown
3679 fi
3680fi
3681else
3682 echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003687else
3688 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003689/* confdefs.h. */
3690_ACEOF
3691cat confdefs.h >>conftest.$ac_ext
3692cat >>conftest.$ac_ext <<_ACEOF
3693/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003694int
3695main ()
3696{
3697 /* Are we little or big endian? From Harbison&Steele. */
3698 union
3699 {
3700 long l;
3701 char c[sizeof (long)];
3702 } u;
3703 u.l = 1;
3704 exit (u.c[sizeof (long) - 1] == 1);
3705}
3706_ACEOF
3707rm -f conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003709 (eval $ac_link) 2>&5
3710 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003714 (eval $ac_try) 2>&5
3715 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003717 (exit $ac_status); }; }; then
3718 ac_cv_c_bigendian=no
3719else
3720 echo "$as_me: program exited with status $ac_status" >&5
3721echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003725ac_cv_c_bigendian=yes
3726fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003728fi
3729fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003731fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003732echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003733echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003734case $ac_cv_c_bigendian in
3735 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003736
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003737cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003738#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003739_ACEOF
3740 ;;
3741 no)
3742 ;;
3743 *)
3744 { { echo "$as_me:$LINENO: error: unknown endianness
3745presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3746echo "$as_me: error: unknown endianness
3747presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3748 { (exit 1); exit 1; }; } ;;
3749esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003750
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003751
3752case $target in
3753 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003754 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003755#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003756_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003758 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003759#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003760_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003762 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003764_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003765
3766 ;;
3767 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003768 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003770_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003771
3772 ;;
3773 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003776_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777
3778 ;;
3779 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003780 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003781#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003782_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783
3784 ;;
3785 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003786 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003787#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003788_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789
3790 ;;
3791 *)
3792 ;;
3793esac
3794
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003795
3796
3797
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003798# Check whether --enable-floating-point or --disable-floating-point was given.
3799if test "${enable_floating_point+set}" = set; then
3800 enableval="$enable_floating_point"
3801 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003802 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003803#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003804_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003805
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003806 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003807echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
3808 fi
3809else
3810
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003811 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003812#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003813_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003814
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003815 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003816echo "${ECHO_T}Checking if floating point is disabled... no" >&6
3817
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003818echo "$as_me:$LINENO: checking for fmod in -lm" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003819echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
3820if test "${ac_cv_lib_m_fmod+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 ac_check_lib_save_LIBS=$LIBS
3824LIBS="-lm $LIBS"
3825cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003831
3832/* Override any gcc2 internal prototype to avoid an error. */
3833#ifdef __cplusplus
3834extern "C"
3835#endif
3836/* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3838char fmod ();
3839int
3840main ()
3841{
3842fmod ();
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003850 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003855 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003856 { ac_try='test -z "$ac_c_werror_flag"
3857 || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003859 (eval $ac_try) 2>&5
3860 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003868 (exit $ac_status); }; }; then
3869 ac_cv_lib_m_fmod=yes
3870else
3871 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003872sed 's/^/| /' conftest.$ac_ext >&5
3873
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003874ac_cv_lib_m_fmod=no
3875fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003876rm -f conftest.err conftest.$ac_objext \
3877 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003878LIBS=$ac_check_lib_save_LIBS
3879fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003880echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003881echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
3882if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003883 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003884#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003885_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003886
3887 LIBS="-lm $LIBS"
3888
3889fi
3890
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003891
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003892fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003893
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003894
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003895ac_ext=c
3896ac_cpp='$CPP $CPPFLAGS'
3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003900echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003901echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3902# On Suns, sometimes $CPP names a directory.
3903if test -n "$CPP" && test -d "$CPP"; then
3904 CPP=
3905fi
3906if test -z "$CPP"; then
3907 if test "${ac_cv_prog_CPP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910 # Double quotes because CPP needs to be expanded
3911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3912 do
3913 ac_preproc_ok=false
3914for ac_c_preproc_warn_flag in '' yes
3915do
3916 # Use a header file that comes with gcc, so configuring glibc
3917 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3919 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003920 # On the NeXT, cc -E runs the code through the compiler's parser,
3921 # not just through cpp. "Syntax error" is here to catch this case.
3922 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003923/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003924_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
3927/* end confdefs.h. */
3928#ifdef __STDC__
3929# include <limits.h>
3930#else
3931# include <assert.h>
3932#endif
3933 Syntax error
3934_ACEOF
3935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3937 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003938 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003939 rm -f conftest.er1
3940 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003942 (exit $ac_status); } >/dev/null; then
3943 if test -s conftest.err; then
3944 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003946 else
3947 ac_cpp_err=
3948 fi
3949else
3950 ac_cpp_err=yes
3951fi
3952if test -z "$ac_cpp_err"; then
3953 :
3954else
3955 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003956sed 's/^/| /' conftest.$ac_ext >&5
3957
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003958 # Broken: fails on valid input.
3959continue
3960fi
3961rm -f conftest.err conftest.$ac_ext
3962
3963 # OK, works on sane cases. Now check whether non-existent headers
3964 # can be detected and how.
3965 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003966/* confdefs.h. */
3967_ACEOF
3968cat confdefs.h >>conftest.$ac_ext
3969cat >>conftest.$ac_ext <<_ACEOF
3970/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003971#include <ac_nonexistent.h>
3972_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3975 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003976 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003977 rm -f conftest.er1
3978 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003980 (exit $ac_status); } >/dev/null; then
3981 if test -s conftest.err; then
3982 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003984 else
3985 ac_cpp_err=
3986 fi
3987else
3988 ac_cpp_err=yes
3989fi
3990if test -z "$ac_cpp_err"; then
3991 # Broken: success on invalid input.
3992continue
3993else
3994 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003995sed 's/^/| /' conftest.$ac_ext >&5
3996
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003997 # Passes both tests.
3998ac_preproc_ok=:
3999break
4000fi
4001rm -f conftest.err conftest.$ac_ext
4002
4003done
4004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4005rm -f conftest.err conftest.$ac_ext
4006if $ac_preproc_ok; then
4007 break
4008fi
4009
4010 done
4011 ac_cv_prog_CPP=$CPP
4012
4013fi
4014 CPP=$ac_cv_prog_CPP
4015else
4016 ac_cv_prog_CPP=$CPP
4017fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004018echo "$as_me:$LINENO: result: $CPP" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004019echo "${ECHO_T}$CPP" >&6
4020ac_preproc_ok=false
4021for ac_c_preproc_warn_flag in '' yes
4022do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
4029 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004030/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004031_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
4035#ifdef __STDC__
4036# include <limits.h>
4037#else
4038# include <assert.h>
4039#endif
4040 Syntax error
4041_ACEOF
4042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4044 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004045 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004046 rm -f conftest.er1
4047 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004049 (exit $ac_status); } >/dev/null; then
4050 if test -s conftest.err; then
4051 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004053 else
4054 ac_cpp_err=
4055 fi
4056else
4057 ac_cpp_err=yes
4058fi
4059if test -z "$ac_cpp_err"; then
4060 :
4061else
4062 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004063sed 's/^/| /' conftest.$ac_ext >&5
4064
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004065 # Broken: fails on valid input.
4066continue
4067fi
4068rm -f conftest.err conftest.$ac_ext
4069
4070 # OK, works on sane cases. Now check whether non-existent headers
4071 # can be detected and how.
4072 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004073/* confdefs.h. */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004078#include <ac_nonexistent.h>
4079_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004083 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004084 rm -f conftest.er1
4085 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004091 else
4092 ac_cpp_err=
4093 fi
4094else
4095 ac_cpp_err=yes
4096fi
4097if test -z "$ac_cpp_err"; then
4098 # Broken: success on invalid input.
4099continue
4100else
4101 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004102sed 's/^/| /' conftest.$ac_ext >&5
4103
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004104 # Passes both tests.
4105ac_preproc_ok=:
4106break
4107fi
4108rm -f conftest.err conftest.$ac_ext
4109
4110done
4111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112rm -f conftest.err conftest.$ac_ext
4113if $ac_preproc_ok; then
4114 :
4115else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004116 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4117See \`config.log' for more details." >&5
4118echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4119See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004120 { (exit 1); exit 1; }; }
4121fi
4122
4123ac_ext=c
4124ac_cpp='$CPP $CPPFLAGS'
4125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004129
4130echo "$as_me:$LINENO: checking for egrep" >&5
4131echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4132if test "${ac_cv_prog_egrep+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4136 then ac_cv_prog_egrep='grep -E'
4137 else ac_cv_prog_egrep='egrep'
4138 fi
4139fi
4140echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4141echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4142 EGREP=$ac_cv_prog_egrep
4143
4144
4145echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4146echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4147if test "${ac_cv_header_stdc+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150 cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h. */
4156#include <stdlib.h>
4157#include <stdarg.h>
4158#include <string.h>
4159#include <float.h>
4160
4161int
4162main ()
4163{
4164
4165 ;
4166 return 0;
4167}
4168_ACEOF
4169rm -f conftest.$ac_objext
4170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 ac_cv_header_stdc=yes
4192else
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196ac_cv_header_stdc=no
4197fi
4198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199
4200if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h. */
4208#include <string.h>
4209
4210_ACEOF
4211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "memchr" >/dev/null 2>&1; then
4213 :
4214else
4215 ac_cv_header_stdc=no
4216fi
4217rm -f conftest*
4218
4219fi
4220
4221if test $ac_cv_header_stdc = yes; then
4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
4229#include <stdlib.h>
4230
4231_ACEOF
4232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 $EGREP "free" >/dev/null 2>&1; then
4234 :
4235else
4236 ac_cv_header_stdc=no
4237fi
4238rm -f conftest*
4239
4240fi
4241
4242if test $ac_cv_header_stdc = yes; then
4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244 if test "$cross_compiling" = yes; then
4245 :
4246else
4247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
4253#include <ctype.h>
4254#if ((' ' & 0x0FF) == 0x020)
4255# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4256# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4257#else
4258# define ISLOWER(c) \
4259 (('a' <= (c) && (c) <= 'i') \
4260 || ('j' <= (c) && (c) <= 'r') \
4261 || ('s' <= (c) && (c) <= 'z'))
4262# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4263#endif
4264
4265#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4266int
4267main ()
4268{
4269 int i;
4270 for (i = 0; i < 256; i++)
4271 if (XOR (islower (i), ISLOWER (i))
4272 || toupper (i) != TOUPPER (i))
4273 exit(2);
4274 exit (0);
4275}
4276_ACEOF
4277rm -f conftest$ac_exeext
4278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 :
4289else
4290 echo "$as_me: program exited with status $ac_status" >&5
4291echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294( exit $ac_status )
4295ac_cv_header_stdc=no
4296fi
4297rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298fi
4299fi
4300fi
4301echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302echo "${ECHO_T}$ac_cv_header_stdc" >&6
4303if test $ac_cv_header_stdc = yes; then
4304
4305cat >>confdefs.h <<\_ACEOF
4306#define STDC_HEADERS 1
4307_ACEOF
4308
4309fi
4310
4311# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322 inttypes.h stdint.h unistd.h
4323do
4324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325echo "$as_me:$LINENO: checking for $ac_header" >&5
4326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4327if eval "test \"\${$as_ac_Header+set}\" = set"; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330 cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h. */
4336$ac_includes_default
4337
4338#include <$ac_header>
4339_ACEOF
4340rm -f conftest.$ac_objext
4341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 eval "$as_ac_Header=yes"
4363else
4364 echo "$as_me: failed program was:" >&5
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
4367eval "$as_ac_Header=no"
4368fi
4369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370fi
4371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4373if test `eval echo '${'$as_ac_Header'}'` = yes; then
4374 cat >>confdefs.h <<_ACEOF
4375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376_ACEOF
4377
4378fi
4379
4380done
4381
4382
4383if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4384 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4385echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4386if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388fi
4389echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4390echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4391else
4392 # Is the header compilable?
4393echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4394echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
4395cat >conftest.$ac_ext <<_ACEOF
4396/* confdefs.h. */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h. */
4401$ac_includes_default
4402#include <arpa/inet.h>
4403_ACEOF
4404rm -f conftest.$ac_objext
4405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag"
4414 || test ! -s conftest.err'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_header_compiler=yes
4427else
4428 echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431ac_header_compiler=no
4432fi
4433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4435echo "${ECHO_T}$ac_header_compiler" >&6
4436
4437# Is the header present?
4438echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4439echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
4440cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h. */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h. */
4446#include <arpa/inet.h>
4447_ACEOF
4448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4450 ac_status=$?
4451 grep -v '^ *+' conftest.er1 >conftest.err
4452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } >/dev/null; then
4456 if test -s conftest.err; then
4457 ac_cpp_err=$ac_c_preproc_warn_flag
4458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4459 else
4460 ac_cpp_err=
4461 fi
4462else
4463 ac_cpp_err=yes
4464fi
4465if test -z "$ac_cpp_err"; then
4466 ac_header_preproc=yes
4467else
4468 echo "$as_me: failed program was:" >&5
4469sed 's/^/| /' conftest.$ac_ext >&5
4470
4471 ac_header_preproc=no
4472fi
4473rm -f conftest.err conftest.$ac_ext
4474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4475echo "${ECHO_T}$ac_header_preproc" >&6
4476
4477# So? What about this header?
4478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4479 yes:no: )
4480 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4481echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4482 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4483echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4484 ac_header_preproc=yes
4485 ;;
4486 no:yes:* )
4487 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4488echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4490echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4492echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4494echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4496echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4498echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
4499 (
4500 cat <<\_ASBOX
4501## ------------------------------------ ##
4502## Report this to the pjproject lists. ##
4503## ------------------------------------ ##
4504_ASBOX
4505 ) |
4506 sed "s/^/$as_me: WARNING: /" >&2
4507 ;;
4508esac
4509echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004510echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4511if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004513else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004514 ac_cv_header_arpa_inet_h=$ac_header_preproc
4515fi
4516echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4517echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4518
4519fi
4520if test $ac_cv_header_arpa_inet_h = yes; then
4521 cat >>confdefs.h <<\_ACEOF
4522#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004523_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004524
4525fi
4526
4527
4528if test "${ac_cv_header_assert_h+set}" = set; then
4529 echo "$as_me:$LINENO: checking for assert.h" >&5
4530echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4531if test "${ac_cv_header_assert_h+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533fi
4534echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4535echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4536else
4537 # Is the header compilable?
4538echo "$as_me:$LINENO: checking assert.h usability" >&5
4539echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
4540cat >conftest.$ac_ext <<_ACEOF
4541/* confdefs.h. */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */
4546$ac_includes_default
4547#include <assert.h>
4548_ACEOF
4549rm -f conftest.$ac_objext
4550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004552 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004553 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004554 rm -f conftest.er1
4555 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try='test -z "$ac_c_werror_flag"
4559 || test ! -s conftest.err'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; } &&
4565 { ac_try='test -s conftest.$ac_objext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_header_compiler=yes
4572else
4573 echo "$as_me: failed program was:" >&5
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576ac_header_compiler=no
4577fi
4578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4579echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4580echo "${ECHO_T}$ac_header_compiler" >&6
4581
4582# Is the header present?
4583echo "$as_me:$LINENO: checking assert.h presence" >&5
4584echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
4585cat >conftest.$ac_ext <<_ACEOF
4586/* confdefs.h. */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h. */
4591#include <assert.h>
4592_ACEOF
4593if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004600 (exit $ac_status); } >/dev/null; then
4601 if test -s conftest.err; then
4602 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004604 else
4605 ac_cpp_err=
4606 fi
4607else
4608 ac_cpp_err=yes
4609fi
4610if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004611 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004612else
4613 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004614sed 's/^/| /' conftest.$ac_ext >&5
4615
4616 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004617fi
4618rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004619echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4620echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004621
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004622# So? What about this header?
4623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4624 yes:no: )
4625 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4626echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4627 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4628echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4629 ac_header_preproc=yes
4630 ;;
4631 no:yes:* )
4632 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4633echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4634 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4635echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4636 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4637echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4638 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4639echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4641echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4643echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
4644 (
4645 cat <<\_ASBOX
4646## ------------------------------------ ##
4647## Report this to the pjproject lists. ##
4648## ------------------------------------ ##
4649_ASBOX
4650 ) |
4651 sed "s/^/$as_me: WARNING: /" >&2
4652 ;;
4653esac
4654echo "$as_me:$LINENO: checking for assert.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004655echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4656if test "${ac_cv_header_assert_h+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004658else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004659 ac_cv_header_assert_h=$ac_header_preproc
4660fi
4661echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4662echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4663
4664fi
4665if test $ac_cv_header_assert_h = yes; then
4666 cat >>confdefs.h <<\_ACEOF
4667#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004668_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004669
4670fi
4671
4672
4673if test "${ac_cv_header_ctype_h+set}" = set; then
4674 echo "$as_me:$LINENO: checking for ctype.h" >&5
4675echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4676if test "${ac_cv_header_ctype_h+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678fi
4679echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4680echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4681else
4682 # Is the header compilable?
4683echo "$as_me:$LINENO: checking ctype.h usability" >&5
4684echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
4685cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h. */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h. */
4691$ac_includes_default
4692#include <ctype.h>
4693_ACEOF
4694rm -f conftest.$ac_objext
4695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004697 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004698 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004699 rm -f conftest.er1
4700 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -z "$ac_c_werror_flag"
4704 || test ! -s conftest.err'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; } &&
4710 { ac_try='test -s conftest.$ac_objext'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 ac_header_compiler=yes
4717else
4718 echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721ac_header_compiler=no
4722fi
4723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4724echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4725echo "${ECHO_T}$ac_header_compiler" >&6
4726
4727# Is the header present?
4728echo "$as_me:$LINENO: checking ctype.h presence" >&5
4729echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
4730cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h. */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h. */
4736#include <ctype.h>
4737_ACEOF
4738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004745 (exit $ac_status); } >/dev/null; then
4746 if test -s conftest.err; then
4747 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004749 else
4750 ac_cpp_err=
4751 fi
4752else
4753 ac_cpp_err=yes
4754fi
4755if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004756 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004757else
4758 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004762fi
4763rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004764echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4765echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004766
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004767# So? What about this header?
4768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4769 yes:no: )
4770 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4771echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4772 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4773echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4774 ac_header_preproc=yes
4775 ;;
4776 no:yes:* )
4777 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4778echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4779 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4780echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4781 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4782echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4784echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4786echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4788echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
4789 (
4790 cat <<\_ASBOX
4791## ------------------------------------ ##
4792## Report this to the pjproject lists. ##
4793## ------------------------------------ ##
4794_ASBOX
4795 ) |
4796 sed "s/^/$as_me: WARNING: /" >&2
4797 ;;
4798esac
4799echo "$as_me:$LINENO: checking for ctype.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004800echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4801if test "${ac_cv_header_ctype_h+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004803else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004804 ac_cv_header_ctype_h=$ac_header_preproc
4805fi
4806echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4807echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4808
4809fi
4810if test $ac_cv_header_ctype_h = yes; then
4811 cat >>confdefs.h <<\_ACEOF
4812#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004813_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004814
4815fi
4816
4817
4818
4819case $target in
4820 *mingw* | *cygw* | *win32* | *w32* )
4821 cat >>confdefs.h <<\_ACEOF
4822#define PJ_HAS_ERRNO_H 0
4823_ACEOF
4824
4825 ;;
4826 *)
4827 if test "${ac_cv_header_errno_h+set}" = set; then
4828 echo "$as_me:$LINENO: checking for errno.h" >&5
4829echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4830if test "${ac_cv_header_errno_h+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832fi
4833echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4834echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4835else
4836 # Is the header compilable?
4837echo "$as_me:$LINENO: checking errno.h usability" >&5
4838echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4839cat >conftest.$ac_ext <<_ACEOF
4840/* confdefs.h. */
4841_ACEOF
4842cat confdefs.h >>conftest.$ac_ext
4843cat >>conftest.$ac_ext <<_ACEOF
4844/* end confdefs.h. */
4845$ac_includes_default
4846#include <errno.h>
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004851 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004852 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004853 rm -f conftest.er1
4854 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_header_compiler=yes
4871else
4872 echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875ac_header_compiler=no
4876fi
4877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4879echo "${ECHO_T}$ac_header_compiler" >&6
4880
4881# Is the header present?
4882echo "$as_me:$LINENO: checking errno.h presence" >&5
4883echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4884cat >conftest.$ac_ext <<_ACEOF
4885/* confdefs.h. */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h. */
4890#include <errno.h>
4891_ACEOF
4892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004899 (exit $ac_status); } >/dev/null; then
4900 if test -s conftest.err; then
4901 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004903 else
4904 ac_cpp_err=
4905 fi
4906else
4907 ac_cpp_err=yes
4908fi
4909if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004910 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004911else
4912 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004913sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004916fi
4917rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4919echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004920
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004921# So? What about this header?
4922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4923 yes:no: )
4924 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4925echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4927echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4928 ac_header_preproc=yes
4929 ;;
4930 no:yes:* )
4931 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4932echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4934echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4936echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4937 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4938echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4940echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4942echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4943 (
4944 cat <<\_ASBOX
4945## ------------------------------------ ##
4946## Report this to the pjproject lists. ##
4947## ------------------------------------ ##
4948_ASBOX
4949 ) |
4950 sed "s/^/$as_me: WARNING: /" >&2
4951 ;;
4952esac
4953echo "$as_me:$LINENO: checking for errno.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004954echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4955if test "${ac_cv_header_errno_h+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004957else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004958 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004959fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004960echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004961echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004962
4963fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004964if test $ac_cv_header_errno_h = yes; then
4965 cat >>confdefs.h <<\_ACEOF
4966#define PJ_HAS_ERRNO_H 1
4967_ACEOF
4968
4969fi
4970
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004971
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004972 ;;
4973esac
4974
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004975if test "${ac_cv_header_linux_socket_h+set}" = set; then
4976 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4977echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4978if test "${ac_cv_header_linux_socket_h+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980fi
4981echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4982echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4983else
4984 # Is the header compilable?
4985echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
4986echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
4987cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h. */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h. */
4993$ac_includes_default
4994#include <linux/socket.h>
4995_ACEOF
4996rm -f conftest.$ac_objext
4997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -z "$ac_c_werror_flag"
5006 || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest.$ac_objext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_header_compiler=yes
5019else
5020 echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023ac_header_compiler=no
5024fi
5025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5027echo "${ECHO_T}$ac_header_compiler" >&6
5028
5029# Is the header present?
5030echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5031echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
5032cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h. */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h. */
5038#include <linux/socket.h>
5039_ACEOF
5040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } >/dev/null; then
5048 if test -s conftest.err; then
5049 ac_cpp_err=$ac_c_preproc_warn_flag
5050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5051 else
5052 ac_cpp_err=
5053 fi
5054else
5055 ac_cpp_err=yes
5056fi
5057if test -z "$ac_cpp_err"; then
5058 ac_header_preproc=yes
5059else
5060 echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_header_preproc=no
5064fi
5065rm -f conftest.err conftest.$ac_ext
5066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5067echo "${ECHO_T}$ac_header_preproc" >&6
5068
5069# So? What about this header?
5070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5071 yes:no: )
5072 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5073echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5074 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5075echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5076 ac_header_preproc=yes
5077 ;;
5078 no:yes:* )
5079 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5080echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5081 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5082echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5084echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5086echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5088echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5090echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
5091 (
5092 cat <<\_ASBOX
5093## ------------------------------------ ##
5094## Report this to the pjproject lists. ##
5095## ------------------------------------ ##
5096_ASBOX
5097 ) |
5098 sed "s/^/$as_me: WARNING: /" >&2
5099 ;;
5100esac
5101echo "$as_me:$LINENO: checking for linux/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005102echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
5103if test "${ac_cv_header_linux_socket_h+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005105else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005106 ac_cv_header_linux_socket_h=$ac_header_preproc
5107fi
5108echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5109echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
5110
5111fi
5112if test $ac_cv_header_linux_socket_h = yes; then
5113 cat >>confdefs.h <<\_ACEOF
5114#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005115_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005116
5117fi
5118
5119
5120if test "${ac_cv_header_malloc_h+set}" = set; then
5121 echo "$as_me:$LINENO: checking for malloc.h" >&5
5122echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5123if test "${ac_cv_header_malloc_h+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125fi
5126echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5127echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5128else
5129 # Is the header compilable?
5130echo "$as_me:$LINENO: checking malloc.h usability" >&5
5131echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
5132cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h. */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h. */
5138$ac_includes_default
5139#include <malloc.h>
5140_ACEOF
5141rm -f conftest.$ac_objext
5142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005144 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005145 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005146 rm -f conftest.er1
5147 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try='test -z "$ac_c_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_header_compiler=yes
5164else
5165 echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168ac_header_compiler=no
5169fi
5170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5171echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5172echo "${ECHO_T}$ac_header_compiler" >&6
5173
5174# Is the header present?
5175echo "$as_me:$LINENO: checking malloc.h presence" >&5
5176echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
5177cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h. */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h. */
5183#include <malloc.h>
5184_ACEOF
5185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005192 (exit $ac_status); } >/dev/null; then
5193 if test -s conftest.err; then
5194 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005196 else
5197 ac_cpp_err=
5198 fi
5199else
5200 ac_cpp_err=yes
5201fi
5202if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005203 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005204else
5205 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005209fi
5210rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5212echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005213
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005214# So? What about this header?
5215case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5216 yes:no: )
5217 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5218echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5220echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5221 ac_header_preproc=yes
5222 ;;
5223 no:yes:* )
5224 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5225echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5227echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5229echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5231echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5233echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5235echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5236 (
5237 cat <<\_ASBOX
5238## ------------------------------------ ##
5239## Report this to the pjproject lists. ##
5240## ------------------------------------ ##
5241_ASBOX
5242 ) |
5243 sed "s/^/$as_me: WARNING: /" >&2
5244 ;;
5245esac
5246echo "$as_me:$LINENO: checking for malloc.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005247echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5248if test "${ac_cv_header_malloc_h+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005250else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005251 ac_cv_header_malloc_h=$ac_header_preproc
5252fi
5253echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5254echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5255
5256fi
5257if test $ac_cv_header_malloc_h = yes; then
5258 cat >>confdefs.h <<\_ACEOF
5259#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005260_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005261
5262fi
5263
5264
5265if test "${ac_cv_header_netdb_h+set}" = set; then
5266 echo "$as_me:$LINENO: checking for netdb.h" >&5
5267echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5268if test "${ac_cv_header_netdb_h+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270fi
5271echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5272echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5273else
5274 # Is the header compilable?
5275echo "$as_me:$LINENO: checking netdb.h usability" >&5
5276echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
5277cat >conftest.$ac_ext <<_ACEOF
5278/* confdefs.h. */
5279_ACEOF
5280cat confdefs.h >>conftest.$ac_ext
5281cat >>conftest.$ac_ext <<_ACEOF
5282/* end confdefs.h. */
5283$ac_includes_default
5284#include <netdb.h>
5285_ACEOF
5286rm -f conftest.$ac_objext
5287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005289 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005290 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005291 rm -f conftest.er1
5292 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 ac_header_compiler=yes
5309else
5310 echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313ac_header_compiler=no
5314fi
5315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5316echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5317echo "${ECHO_T}$ac_header_compiler" >&6
5318
5319# Is the header present?
5320echo "$as_me:$LINENO: checking netdb.h presence" >&5
5321echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
5322cat >conftest.$ac_ext <<_ACEOF
5323/* confdefs.h. */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h. */
5328#include <netdb.h>
5329_ACEOF
5330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005337 (exit $ac_status); } >/dev/null; then
5338 if test -s conftest.err; then
5339 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005341 else
5342 ac_cpp_err=
5343 fi
5344else
5345 ac_cpp_err=yes
5346fi
5347if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005348 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005349else
5350 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005354fi
5355rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005356echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5357echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005358
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005359# So? What about this header?
5360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5361 yes:no: )
5362 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5363echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5365echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5366 ac_header_preproc=yes
5367 ;;
5368 no:yes:* )
5369 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5370echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5372echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5374echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5376echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5378echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5380echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
5381 (
5382 cat <<\_ASBOX
5383## ------------------------------------ ##
5384## Report this to the pjproject lists. ##
5385## ------------------------------------ ##
5386_ASBOX
5387 ) |
5388 sed "s/^/$as_me: WARNING: /" >&2
5389 ;;
5390esac
5391echo "$as_me:$LINENO: checking for netdb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005392echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5393if test "${ac_cv_header_netdb_h+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005395else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005396 ac_cv_header_netdb_h=$ac_header_preproc
5397fi
5398echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5399echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5400
5401fi
5402if test $ac_cv_header_netdb_h = yes; then
5403 cat >>confdefs.h <<\_ACEOF
5404#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005405_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005406
5407fi
5408
5409
5410if test "${ac_cv_header_netinet_in_h+set}" = set; then
5411 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5412echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5413if test "${ac_cv_header_netinet_in_h+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415fi
5416echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5417echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5418else
5419 # Is the header compilable?
5420echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5421echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5422cat >conftest.$ac_ext <<_ACEOF
5423/* confdefs.h. */
5424_ACEOF
5425cat confdefs.h >>conftest.$ac_ext
5426cat >>conftest.$ac_ext <<_ACEOF
5427/* end confdefs.h. */
5428$ac_includes_default
5429#include <netinet/in.h>
5430_ACEOF
5431rm -f conftest.$ac_objext
5432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005434 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005435 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005436 rm -f conftest.er1
5437 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_header_compiler=yes
5454else
5455 echo "$as_me: failed program was:" >&5
5456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458ac_header_compiler=no
5459fi
5460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5462echo "${ECHO_T}$ac_header_compiler" >&6
5463
5464# Is the header present?
5465echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5466echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5467cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473#include <netinet/in.h>
5474_ACEOF
5475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005482 (exit $ac_status); } >/dev/null; then
5483 if test -s conftest.err; then
5484 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005486 else
5487 ac_cpp_err=
5488 fi
5489else
5490 ac_cpp_err=yes
5491fi
5492if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005493 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005494else
5495 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005499fi
5500rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5502echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005503
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005504# So? What about this header?
5505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5506 yes:no: )
5507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5508echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5510echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5511 ac_header_preproc=yes
5512 ;;
5513 no:yes:* )
5514 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5515echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5517echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5519echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5521echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5523echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5525echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5526 (
5527 cat <<\_ASBOX
5528## ------------------------------------ ##
5529## Report this to the pjproject lists. ##
5530## ------------------------------------ ##
5531_ASBOX
5532 ) |
5533 sed "s/^/$as_me: WARNING: /" >&2
5534 ;;
5535esac
5536echo "$as_me:$LINENO: checking for netinet/in.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005537echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5538if test "${ac_cv_header_netinet_in_h+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005540else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005541 ac_cv_header_netinet_in_h=$ac_header_preproc
5542fi
5543echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5544echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5545
5546fi
5547if test $ac_cv_header_netinet_in_h = yes; then
5548 cat >>confdefs.h <<\_ACEOF
5549#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005550_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005551
5552fi
5553
5554
Benny Prijonof63a2552007-02-01 00:36:52 +00005555if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5556 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5557echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5558if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560fi
5561echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5562echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5563else
5564 # Is the header compilable?
5565echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5566echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
5567cat >conftest.$ac_ext <<_ACEOF
5568/* confdefs.h. */
5569_ACEOF
5570cat confdefs.h >>conftest.$ac_ext
5571cat >>conftest.$ac_ext <<_ACEOF
5572/* end confdefs.h. */
5573$ac_includes_default
5574#include <netinet/ip.h>
5575_ACEOF
5576rm -f conftest.$ac_objext
5577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578 (eval $ac_compile) 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try='test -z "$ac_c_werror_flag"
5586 || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try='test -s conftest.$ac_objext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_header_compiler=yes
5599else
5600 echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603ac_header_compiler=no
5604fi
5605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5607echo "${ECHO_T}$ac_header_compiler" >&6
5608
5609# Is the header present?
5610echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5611echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
5612cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618#include <netinet/ip.h>
5619_ACEOF
5620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } >/dev/null; then
5628 if test -s conftest.err; then
5629 ac_cpp_err=$ac_c_preproc_warn_flag
5630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5631 else
5632 ac_cpp_err=
5633 fi
5634else
5635 ac_cpp_err=yes
5636fi
5637if test -z "$ac_cpp_err"; then
5638 ac_header_preproc=yes
5639else
5640 echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_header_preproc=no
5644fi
5645rm -f conftest.err conftest.$ac_ext
5646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5647echo "${ECHO_T}$ac_header_preproc" >&6
5648
5649# So? What about this header?
5650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5651 yes:no: )
5652 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5653echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5655echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5656 ac_header_preproc=yes
5657 ;;
5658 no:yes:* )
5659 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5660echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5661 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5662echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5664echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5666echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5668echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5670echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
5671 (
5672 cat <<\_ASBOX
5673## ------------------------------------ ##
5674## Report this to the pjproject lists. ##
5675## ------------------------------------ ##
5676_ASBOX
5677 ) |
5678 sed "s/^/$as_me: WARNING: /" >&2
5679 ;;
5680esac
5681echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5682echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5683if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 ac_cv_header_netinet_ip_h=$ac_header_preproc
5687fi
5688echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5689echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5690
5691fi
5692if test $ac_cv_header_netinet_ip_h = yes; then
5693 cat >>confdefs.h <<\_ACEOF
5694#define PJ_HAS_NETINET_IP_H 1
5695_ACEOF
5696
5697fi
5698
5699
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005700if test "${ac_cv_header_setjmp_h+set}" = set; then
5701 echo "$as_me:$LINENO: checking for setjmp.h" >&5
5702echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5703if test "${ac_cv_header_setjmp_h+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705fi
5706echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5707echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5708else
5709 # Is the header compilable?
5710echo "$as_me:$LINENO: checking setjmp.h usability" >&5
5711echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
5712cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718$ac_includes_default
5719#include <setjmp.h>
5720_ACEOF
5721rm -f conftest.$ac_objext
5722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005724 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005725 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005726 rm -f conftest.er1
5727 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_header_compiler=yes
5744else
5745 echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748ac_header_compiler=no
5749fi
5750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5752echo "${ECHO_T}$ac_header_compiler" >&6
5753
5754# Is the header present?
5755echo "$as_me:$LINENO: checking setjmp.h presence" >&5
5756echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
5757cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
5763#include <setjmp.h>
5764_ACEOF
5765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005772 (exit $ac_status); } >/dev/null; then
5773 if test -s conftest.err; then
5774 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005776 else
5777 ac_cpp_err=
5778 fi
5779else
5780 ac_cpp_err=yes
5781fi
5782if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005783 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005784else
5785 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005786sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005789fi
5790rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5792echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005793
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005794# So? What about this header?
5795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5796 yes:no: )
5797 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5798echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5799 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
5800echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
5801 ac_header_preproc=yes
5802 ;;
5803 no:yes:* )
5804 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
5805echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
5806 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
5807echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
5808 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
5809echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
5810 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
5811echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5812 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
5813echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
5815echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
5816 (
5817 cat <<\_ASBOX
5818## ------------------------------------ ##
5819## Report this to the pjproject lists. ##
5820## ------------------------------------ ##
5821_ASBOX
5822 ) |
5823 sed "s/^/$as_me: WARNING: /" >&2
5824 ;;
5825esac
5826echo "$as_me:$LINENO: checking for setjmp.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005827echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5828if test "${ac_cv_header_setjmp_h+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005830else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005831 ac_cv_header_setjmp_h=$ac_header_preproc
5832fi
5833echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5834echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5835
5836fi
5837if test $ac_cv_header_setjmp_h = yes; then
5838 cat >>confdefs.h <<\_ACEOF
5839#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005840_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005841
5842fi
5843
5844
5845if test "${ac_cv_header_stdarg_h+set}" = set; then
5846 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5847echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5848if test "${ac_cv_header_stdarg_h+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850fi
5851echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5852echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5853else
5854 # Is the header compilable?
5855echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5856echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
5857cat >conftest.$ac_ext <<_ACEOF
5858/* confdefs.h. */
5859_ACEOF
5860cat confdefs.h >>conftest.$ac_ext
5861cat >>conftest.$ac_ext <<_ACEOF
5862/* end confdefs.h. */
5863$ac_includes_default
5864#include <stdarg.h>
5865_ACEOF
5866rm -f conftest.$ac_objext
5867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005869 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005870 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005871 rm -f conftest.er1
5872 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_header_compiler=yes
5889else
5890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893ac_header_compiler=no
5894fi
5895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5897echo "${ECHO_T}$ac_header_compiler" >&6
5898
5899# Is the header present?
5900echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5901echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5902cat >conftest.$ac_ext <<_ACEOF
5903/* confdefs.h. */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h. */
5908#include <stdarg.h>
5909_ACEOF
5910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005917 (exit $ac_status); } >/dev/null; then
5918 if test -s conftest.err; then
5919 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005921 else
5922 ac_cpp_err=
5923 fi
5924else
5925 ac_cpp_err=yes
5926fi
5927if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005928 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005929else
5930 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005931sed 's/^/| /' conftest.$ac_ext >&5
5932
5933 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005934fi
5935rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5937echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005938
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005939# So? What about this header?
5940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5941 yes:no: )
5942 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5943echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5944 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5945echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5946 ac_header_preproc=yes
5947 ;;
5948 no:yes:* )
5949 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5950echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5951 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5952echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5954echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5956echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5958echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5960echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5961 (
5962 cat <<\_ASBOX
5963## ------------------------------------ ##
5964## Report this to the pjproject lists. ##
5965## ------------------------------------ ##
5966_ASBOX
5967 ) |
5968 sed "s/^/$as_me: WARNING: /" >&2
5969 ;;
5970esac
5971echo "$as_me:$LINENO: checking for stdarg.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005972echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5973if test "${ac_cv_header_stdarg_h+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005975else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005976 ac_cv_header_stdarg_h=$ac_header_preproc
5977fi
5978echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5979echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5980
5981fi
5982if test $ac_cv_header_stdarg_h = yes; then
5983 cat >>confdefs.h <<\_ACEOF
5984#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005985_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005986
5987fi
5988
5989
5990if test "${ac_cv_header_stddef_h+set}" = set; then
5991 echo "$as_me:$LINENO: checking for stddef.h" >&5
5992echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
5993if test "${ac_cv_header_stddef_h+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995fi
5996echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5997echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
5998else
5999 # Is the header compilable?
6000echo "$as_me:$LINENO: checking stddef.h usability" >&5
6001echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
6002cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008$ac_includes_default
6009#include <stddef.h>
6010_ACEOF
6011rm -f conftest.$ac_objext
6012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006014 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006015 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006016 rm -f conftest.er1
6017 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_header_compiler=yes
6034else
6035 echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038ac_header_compiler=no
6039fi
6040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6042echo "${ECHO_T}$ac_header_compiler" >&6
6043
6044# Is the header present?
6045echo "$as_me:$LINENO: checking stddef.h presence" >&5
6046echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
6047cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
6053#include <stddef.h>
6054_ACEOF
6055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006062 (exit $ac_status); } >/dev/null; then
6063 if test -s conftest.err; then
6064 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006066 else
6067 ac_cpp_err=
6068 fi
6069else
6070 ac_cpp_err=yes
6071fi
6072if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006073 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006074else
6075 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006076sed 's/^/| /' conftest.$ac_ext >&5
6077
6078 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006079fi
6080rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6082echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006083
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006084# So? What about this header?
6085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6086 yes:no: )
6087 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6088echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6090echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6091 ac_header_preproc=yes
6092 ;;
6093 no:yes:* )
6094 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6095echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6097echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6099echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6101echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6103echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6105echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
6106 (
6107 cat <<\_ASBOX
6108## ------------------------------------ ##
6109## Report this to the pjproject lists. ##
6110## ------------------------------------ ##
6111_ASBOX
6112 ) |
6113 sed "s/^/$as_me: WARNING: /" >&2
6114 ;;
6115esac
6116echo "$as_me:$LINENO: checking for stddef.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006117echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
6118if test "${ac_cv_header_stddef_h+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006120else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006121 ac_cv_header_stddef_h=$ac_header_preproc
6122fi
6123echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6124echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
6125
6126fi
6127if test $ac_cv_header_stddef_h = yes; then
6128 cat >>confdefs.h <<\_ACEOF
6129#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006130_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006131
6132fi
6133
6134
6135if test "${ac_cv_header_stdio_h+set}" = set; then
6136 echo "$as_me:$LINENO: checking for stdio.h" >&5
6137echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6138if test "${ac_cv_header_stdio_h+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140fi
6141echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6142echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6143else
6144 # Is the header compilable?
6145echo "$as_me:$LINENO: checking stdio.h usability" >&5
6146echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
6147cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
6153$ac_includes_default
6154#include <stdio.h>
6155_ACEOF
6156rm -f conftest.$ac_objext
6157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6158 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006159 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006160 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006161 rm -f conftest.er1
6162 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -z "$ac_c_werror_flag"
6166 || test ! -s conftest.err'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 (eval $ac_try) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; } &&
6172 { ac_try='test -s conftest.$ac_objext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 ac_header_compiler=yes
6179else
6180 echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183ac_header_compiler=no
6184fi
6185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6187echo "${ECHO_T}$ac_header_compiler" >&6
6188
6189# Is the header present?
6190echo "$as_me:$LINENO: checking stdio.h presence" >&5
6191echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
6192cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h. */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h. */
6198#include <stdio.h>
6199_ACEOF
6200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006207 (exit $ac_status); } >/dev/null; then
6208 if test -s conftest.err; then
6209 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006211 else
6212 ac_cpp_err=
6213 fi
6214else
6215 ac_cpp_err=yes
6216fi
6217if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006218 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006219else
6220 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006224fi
6225rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6227echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006228
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006229# So? What about this header?
6230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6231 yes:no: )
6232 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6233echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6235echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6236 ac_header_preproc=yes
6237 ;;
6238 no:yes:* )
6239 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6240echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6242echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6244echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6246echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6248echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6250echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
6251 (
6252 cat <<\_ASBOX
6253## ------------------------------------ ##
6254## Report this to the pjproject lists. ##
6255## ------------------------------------ ##
6256_ASBOX
6257 ) |
6258 sed "s/^/$as_me: WARNING: /" >&2
6259 ;;
6260esac
6261echo "$as_me:$LINENO: checking for stdio.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006262echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6263if test "${ac_cv_header_stdio_h+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006265else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006266 ac_cv_header_stdio_h=$ac_header_preproc
6267fi
6268echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6269echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6270
6271fi
6272if test $ac_cv_header_stdio_h = yes; then
6273 cat >>confdefs.h <<\_ACEOF
6274#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006275_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006276
6277fi
6278
6279
6280if test "${ac_cv_header_stdlib_h+set}" = set; then
6281 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6282echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6283if test "${ac_cv_header_stdlib_h+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285fi
6286echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6287echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6288else
6289 # Is the header compilable?
6290echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6291echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
6292cat >conftest.$ac_ext <<_ACEOF
6293/* confdefs.h. */
6294_ACEOF
6295cat confdefs.h >>conftest.$ac_ext
6296cat >>conftest.$ac_ext <<_ACEOF
6297/* end confdefs.h. */
6298$ac_includes_default
6299#include <stdlib.h>
6300_ACEOF
6301rm -f conftest.$ac_objext
6302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006304 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006305 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006306 rm -f conftest.er1
6307 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_header_compiler=yes
6324else
6325 echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
6328ac_header_compiler=no
6329fi
6330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6332echo "${ECHO_T}$ac_header_compiler" >&6
6333
6334# Is the header present?
6335echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6336echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
6337cat >conftest.$ac_ext <<_ACEOF
6338/* confdefs.h. */
6339_ACEOF
6340cat confdefs.h >>conftest.$ac_ext
6341cat >>conftest.$ac_ext <<_ACEOF
6342/* end confdefs.h. */
6343#include <stdlib.h>
6344_ACEOF
6345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006352 (exit $ac_status); } >/dev/null; then
6353 if test -s conftest.err; then
6354 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006356 else
6357 ac_cpp_err=
6358 fi
6359else
6360 ac_cpp_err=yes
6361fi
6362if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006363 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006364else
6365 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006369fi
6370rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6372echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006373
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006374# So? What about this header?
6375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6376 yes:no: )
6377 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6378echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6379 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6380echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6381 ac_header_preproc=yes
6382 ;;
6383 no:yes:* )
6384 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6385echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6387echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6389echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6391echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6393echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6395echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
6396 (
6397 cat <<\_ASBOX
6398## ------------------------------------ ##
6399## Report this to the pjproject lists. ##
6400## ------------------------------------ ##
6401_ASBOX
6402 ) |
6403 sed "s/^/$as_me: WARNING: /" >&2
6404 ;;
6405esac
6406echo "$as_me:$LINENO: checking for stdlib.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006407echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6408if test "${ac_cv_header_stdlib_h+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006410else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006411 ac_cv_header_stdlib_h=$ac_header_preproc
6412fi
6413echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6414echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6415
6416fi
6417if test $ac_cv_header_stdlib_h = yes; then
6418 cat >>confdefs.h <<\_ACEOF
6419#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006420_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006421
6422fi
6423
6424
6425if test "${ac_cv_header_string_h+set}" = set; then
6426 echo "$as_me:$LINENO: checking for string.h" >&5
6427echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6428if test "${ac_cv_header_string_h+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430fi
6431echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6432echo "${ECHO_T}$ac_cv_header_string_h" >&6
6433else
6434 # Is the header compilable?
6435echo "$as_me:$LINENO: checking string.h usability" >&5
6436echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
6437cat >conftest.$ac_ext <<_ACEOF
6438/* confdefs.h. */
6439_ACEOF
6440cat confdefs.h >>conftest.$ac_ext
6441cat >>conftest.$ac_ext <<_ACEOF
6442/* end confdefs.h. */
6443$ac_includes_default
6444#include <string.h>
6445_ACEOF
6446rm -f conftest.$ac_objext
6447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006449 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006450 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006451 rm -f conftest.er1
6452 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag"
6456 || test ! -s conftest.err'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_header_compiler=yes
6469else
6470 echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
6472
6473ac_header_compiler=no
6474fi
6475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6477echo "${ECHO_T}$ac_header_compiler" >&6
6478
6479# Is the header present?
6480echo "$as_me:$LINENO: checking string.h presence" >&5
6481echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
6482cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h. */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h. */
6488#include <string.h>
6489_ACEOF
6490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006497 (exit $ac_status); } >/dev/null; then
6498 if test -s conftest.err; then
6499 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006501 else
6502 ac_cpp_err=
6503 fi
6504else
6505 ac_cpp_err=yes
6506fi
6507if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006508 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006509else
6510 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006514fi
6515rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6517echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006518
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006519# So? What about this header?
6520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6521 yes:no: )
6522 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6523echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6525echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6526 ac_header_preproc=yes
6527 ;;
6528 no:yes:* )
6529 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6530echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6532echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6534echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6536echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6538echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6540echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6541 (
6542 cat <<\_ASBOX
6543## ------------------------------------ ##
6544## Report this to the pjproject lists. ##
6545## ------------------------------------ ##
6546_ASBOX
6547 ) |
6548 sed "s/^/$as_me: WARNING: /" >&2
6549 ;;
6550esac
6551echo "$as_me:$LINENO: checking for string.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006552echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6553if test "${ac_cv_header_string_h+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006555else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006556 ac_cv_header_string_h=$ac_header_preproc
6557fi
6558echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6559echo "${ECHO_T}$ac_cv_header_string_h" >&6
6560
6561fi
6562if test $ac_cv_header_string_h = yes; then
6563 cat >>confdefs.h <<\_ACEOF
6564#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006565_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006566
6567fi
6568
6569
6570if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6571 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
6572echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6573if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575fi
6576echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6577echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6578else
6579 # Is the header compilable?
6580echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
6581echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
6582cat >conftest.$ac_ext <<_ACEOF
6583/* confdefs.h. */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h. */
6588$ac_includes_default
6589#include <sys/ioctl.h>
6590_ACEOF
6591rm -f conftest.$ac_objext
6592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006594 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006595 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006596 rm -f conftest.er1
6597 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_header_compiler=yes
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618ac_header_compiler=no
6619fi
6620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622echo "${ECHO_T}$ac_header_compiler" >&6
6623
6624# Is the header present?
6625echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
6626echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
6627cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h. */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h. */
6633#include <sys/ioctl.h>
6634_ACEOF
6635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006642 (exit $ac_status); } >/dev/null; then
6643 if test -s conftest.err; then
6644 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006646 else
6647 ac_cpp_err=
6648 fi
6649else
6650 ac_cpp_err=yes
6651fi
6652if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006653 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006654else
6655 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006656sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006659fi
6660rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6662echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006663
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006664# So? What about this header?
6665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6666 yes:no: )
6667 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6668echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
6670echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
6671 ac_header_preproc=yes
6672 ;;
6673 no:yes:* )
6674 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
6675echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
6677echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
6679echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
6681echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
6683echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
6685echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
6686 (
6687 cat <<\_ASBOX
6688## ------------------------------------ ##
6689## Report this to the pjproject lists. ##
6690## ------------------------------------ ##
6691_ASBOX
6692 ) |
6693 sed "s/^/$as_me: WARNING: /" >&2
6694 ;;
6695esac
6696echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006697echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6698if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006700else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006701 ac_cv_header_sys_ioctl_h=$ac_header_preproc
6702fi
6703echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6704echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6705
6706fi
6707if test $ac_cv_header_sys_ioctl_h = yes; then
6708 cat >>confdefs.h <<\_ACEOF
6709#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006710_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006711
6712fi
6713
6714
6715if test "${ac_cv_header_sys_select_h+set}" = set; then
6716 echo "$as_me:$LINENO: checking for sys/select.h" >&5
6717echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6718if test "${ac_cv_header_sys_select_h+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720fi
6721echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6722echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6723else
6724 # Is the header compilable?
6725echo "$as_me:$LINENO: checking sys/select.h usability" >&5
6726echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
6727cat >conftest.$ac_ext <<_ACEOF
6728/* confdefs.h. */
6729_ACEOF
6730cat confdefs.h >>conftest.$ac_ext
6731cat >>conftest.$ac_ext <<_ACEOF
6732/* end confdefs.h. */
6733$ac_includes_default
6734#include <sys/select.h>
6735_ACEOF
6736rm -f conftest.$ac_objext
6737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006739 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006740 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006741 rm -f conftest.er1
6742 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_c_werror_flag"
6746 || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest.$ac_objext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_header_compiler=yes
6759else
6760 echo "$as_me: failed program was:" >&5
6761sed 's/^/| /' conftest.$ac_ext >&5
6762
6763ac_header_compiler=no
6764fi
6765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6767echo "${ECHO_T}$ac_header_compiler" >&6
6768
6769# Is the header present?
6770echo "$as_me:$LINENO: checking sys/select.h presence" >&5
6771echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
6772cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
6778#include <sys/select.h>
6779_ACEOF
6780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006787 (exit $ac_status); } >/dev/null; then
6788 if test -s conftest.err; then
6789 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006791 else
6792 ac_cpp_err=
6793 fi
6794else
6795 ac_cpp_err=yes
6796fi
6797if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006798 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006799else
6800 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006804fi
6805rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6807echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006808
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006809# So? What about this header?
6810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6811 yes:no: )
6812 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
6813echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6814 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
6815echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
6816 ac_header_preproc=yes
6817 ;;
6818 no:yes:* )
6819 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
6820echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
6821 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
6822echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
6823 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
6824echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
6825 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
6826echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
6828echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
6830echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
6831 (
6832 cat <<\_ASBOX
6833## ------------------------------------ ##
6834## Report this to the pjproject lists. ##
6835## ------------------------------------ ##
6836_ASBOX
6837 ) |
6838 sed "s/^/$as_me: WARNING: /" >&2
6839 ;;
6840esac
6841echo "$as_me:$LINENO: checking for sys/select.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006842echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6843if test "${ac_cv_header_sys_select_h+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006845else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006846 ac_cv_header_sys_select_h=$ac_header_preproc
6847fi
6848echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6849echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6850
6851fi
6852if test $ac_cv_header_sys_select_h = yes; then
6853 cat >>confdefs.h <<\_ACEOF
6854#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006855_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006856
6857fi
6858
6859
6860if test "${ac_cv_header_sys_socket_h+set}" = set; then
6861 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
6862echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6863if test "${ac_cv_header_sys_socket_h+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865fi
6866echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6867echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6868else
6869 # Is the header compilable?
6870echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
6871echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
6872cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
6878$ac_includes_default
6879#include <sys/socket.h>
6880_ACEOF
6881rm -f conftest.$ac_objext
6882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6883 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006884 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006885 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006886 rm -f conftest.er1
6887 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag"
6891 || test ! -s conftest.err'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; } &&
6897 { ac_try='test -s conftest.$ac_objext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_header_compiler=yes
6904else
6905 echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908ac_header_compiler=no
6909fi
6910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6911echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6912echo "${ECHO_T}$ac_header_compiler" >&6
6913
6914# Is the header present?
6915echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
6916echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
6917cat >conftest.$ac_ext <<_ACEOF
6918/* confdefs.h. */
6919_ACEOF
6920cat confdefs.h >>conftest.$ac_ext
6921cat >>conftest.$ac_ext <<_ACEOF
6922/* end confdefs.h. */
6923#include <sys/socket.h>
6924_ACEOF
6925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006932 (exit $ac_status); } >/dev/null; then
6933 if test -s conftest.err; then
6934 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006936 else
6937 ac_cpp_err=
6938 fi
6939else
6940 ac_cpp_err=yes
6941fi
6942if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006943 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006944else
6945 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006946sed 's/^/| /' conftest.$ac_ext >&5
6947
6948 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006949fi
6950rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006951echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6952echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006953
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006954# So? What about this header?
6955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6956 yes:no: )
6957 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
6958echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6959 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
6960echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
6961 ac_header_preproc=yes
6962 ;;
6963 no:yes:* )
6964 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
6965echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
6966 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
6967echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
6969echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
6971echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
6973echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
6975echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
6976 (
6977 cat <<\_ASBOX
6978## ------------------------------------ ##
6979## Report this to the pjproject lists. ##
6980## ------------------------------------ ##
6981_ASBOX
6982 ) |
6983 sed "s/^/$as_me: WARNING: /" >&2
6984 ;;
6985esac
6986echo "$as_me:$LINENO: checking for sys/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006987echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
6988if test "${ac_cv_header_sys_socket_h+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006990else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006991 ac_cv_header_sys_socket_h=$ac_header_preproc
6992fi
6993echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
6994echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
6995
6996fi
6997if test $ac_cv_header_sys_socket_h = yes; then
6998 cat >>confdefs.h <<\_ACEOF
6999#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007000_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007001
7002fi
7003
7004
7005if test "${ac_cv_header_sys_time_h+set}" = set; then
7006 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7007echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7008if test "${ac_cv_header_sys_time_h+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010fi
7011echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7012echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7013else
7014 # Is the header compilable?
7015echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7016echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
7017cat >conftest.$ac_ext <<_ACEOF
7018/* confdefs.h. */
7019_ACEOF
7020cat confdefs.h >>conftest.$ac_ext
7021cat >>conftest.$ac_ext <<_ACEOF
7022/* end confdefs.h. */
7023$ac_includes_default
7024#include <sys/time.h>
7025_ACEOF
7026rm -f conftest.$ac_objext
7027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007029 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007030 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007031 rm -f conftest.er1
7032 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -z "$ac_c_werror_flag"
7036 || test ! -s conftest.err'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; } &&
7042 { ac_try='test -s conftest.$ac_objext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_header_compiler=yes
7049else
7050 echo "$as_me: failed program was:" >&5
7051sed 's/^/| /' conftest.$ac_ext >&5
7052
7053ac_header_compiler=no
7054fi
7055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7057echo "${ECHO_T}$ac_header_compiler" >&6
7058
7059# Is the header present?
7060echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7061echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
7062cat >conftest.$ac_ext <<_ACEOF
7063/* confdefs.h. */
7064_ACEOF
7065cat confdefs.h >>conftest.$ac_ext
7066cat >>conftest.$ac_ext <<_ACEOF
7067/* end confdefs.h. */
7068#include <sys/time.h>
7069_ACEOF
7070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007077 (exit $ac_status); } >/dev/null; then
7078 if test -s conftest.err; then
7079 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007081 else
7082 ac_cpp_err=
7083 fi
7084else
7085 ac_cpp_err=yes
7086fi
7087if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007088 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007089else
7090 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007094fi
7095rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7097echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007098
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007099# So? What about this header?
7100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7101 yes:no: )
7102 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7103echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7104 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7105echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7106 ac_header_preproc=yes
7107 ;;
7108 no:yes:* )
7109 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7110echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7112echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7114echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7115 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7116echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7118echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7119 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7120echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
7121 (
7122 cat <<\_ASBOX
7123## ------------------------------------ ##
7124## Report this to the pjproject lists. ##
7125## ------------------------------------ ##
7126_ASBOX
7127 ) |
7128 sed "s/^/$as_me: WARNING: /" >&2
7129 ;;
7130esac
7131echo "$as_me:$LINENO: checking for sys/time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007132echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7133if test "${ac_cv_header_sys_time_h+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007135else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007136 ac_cv_header_sys_time_h=$ac_header_preproc
7137fi
7138echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7139echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7140
7141fi
7142if test $ac_cv_header_sys_time_h = yes; then
7143 cat >>confdefs.h <<\_ACEOF
7144#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007145_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007146
7147fi
7148
7149
7150if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7151 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7152echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7153if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155fi
7156echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7157echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7158else
7159 # Is the header compilable?
7160echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7161echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
7162cat >conftest.$ac_ext <<_ACEOF
7163/* confdefs.h. */
7164_ACEOF
7165cat confdefs.h >>conftest.$ac_ext
7166cat >>conftest.$ac_ext <<_ACEOF
7167/* end confdefs.h. */
7168$ac_includes_default
7169#include <sys/timeb.h>
7170_ACEOF
7171rm -f conftest.$ac_objext
7172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007174 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007175 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007176 rm -f conftest.er1
7177 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_header_compiler=yes
7194else
7195 echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
7198ac_header_compiler=no
7199fi
7200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7201echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7202echo "${ECHO_T}$ac_header_compiler" >&6
7203
7204# Is the header present?
7205echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7206echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
7207cat >conftest.$ac_ext <<_ACEOF
7208/* confdefs.h. */
7209_ACEOF
7210cat confdefs.h >>conftest.$ac_ext
7211cat >>conftest.$ac_ext <<_ACEOF
7212/* end confdefs.h. */
7213#include <sys/timeb.h>
7214_ACEOF
7215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007222 (exit $ac_status); } >/dev/null; then
7223 if test -s conftest.err; then
7224 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007226 else
7227 ac_cpp_err=
7228 fi
7229else
7230 ac_cpp_err=yes
7231fi
7232if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007233 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007234else
7235 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007239fi
7240rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007241echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7242echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007243
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007244# So? What about this header?
7245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7246 yes:no: )
7247 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7248echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7250echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7251 ac_header_preproc=yes
7252 ;;
7253 no:yes:* )
7254 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7255echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7257echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7259echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7261echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7263echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7265echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
7266 (
7267 cat <<\_ASBOX
7268## ------------------------------------ ##
7269## Report this to the pjproject lists. ##
7270## ------------------------------------ ##
7271_ASBOX
7272 ) |
7273 sed "s/^/$as_me: WARNING: /" >&2
7274 ;;
7275esac
7276echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007277echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7278if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007280else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007281 ac_cv_header_sys_timeb_h=$ac_header_preproc
7282fi
7283echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7284echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7285
7286fi
7287if test $ac_cv_header_sys_timeb_h = yes; then
7288 cat >>confdefs.h <<\_ACEOF
7289#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007290_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007291
7292fi
7293
7294
7295if test "${ac_cv_header_sys_types_h+set}" = set; then
7296 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7297echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7298if test "${ac_cv_header_sys_types_h+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300fi
7301echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7302echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7303else
7304 # Is the header compilable?
7305echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7306echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
7307cat >conftest.$ac_ext <<_ACEOF
7308/* confdefs.h. */
7309_ACEOF
7310cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h. */
7313$ac_includes_default
7314#include <sys/types.h>
7315_ACEOF
7316rm -f conftest.$ac_objext
7317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007319 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007320 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007321 rm -f conftest.er1
7322 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 (eval $ac_try) 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 ac_header_compiler=yes
7339else
7340 echo "$as_me: failed program was:" >&5
7341sed 's/^/| /' conftest.$ac_ext >&5
7342
7343ac_header_compiler=no
7344fi
7345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7346echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7347echo "${ECHO_T}$ac_header_compiler" >&6
7348
7349# Is the header present?
7350echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7351echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
7352cat >conftest.$ac_ext <<_ACEOF
7353/* confdefs.h. */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h. */
7358#include <sys/types.h>
7359_ACEOF
7360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007367 (exit $ac_status); } >/dev/null; then
7368 if test -s conftest.err; then
7369 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007371 else
7372 ac_cpp_err=
7373 fi
7374else
7375 ac_cpp_err=yes
7376fi
7377if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007378 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007379else
7380 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007381sed 's/^/| /' conftest.$ac_ext >&5
7382
7383 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007384fi
7385rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007386echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7387echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007388
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007389# So? What about this header?
7390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7391 yes:no: )
7392 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7393echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7395echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7396 ac_header_preproc=yes
7397 ;;
7398 no:yes:* )
7399 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7400echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7401 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7402echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7403 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7404echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7405 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7406echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7408echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7410echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
7411 (
7412 cat <<\_ASBOX
7413## ------------------------------------ ##
7414## Report this to the pjproject lists. ##
7415## ------------------------------------ ##
7416_ASBOX
7417 ) |
7418 sed "s/^/$as_me: WARNING: /" >&2
7419 ;;
7420esac
7421echo "$as_me:$LINENO: checking for sys/types.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007422echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7423if test "${ac_cv_header_sys_types_h+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007425else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007426 ac_cv_header_sys_types_h=$ac_header_preproc
7427fi
7428echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7429echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7430
7431fi
7432if test $ac_cv_header_sys_types_h = yes; then
7433 cat >>confdefs.h <<\_ACEOF
7434#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007435_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007436
7437fi
7438
7439
7440if test "${ac_cv_header_time_h+set}" = set; then
7441 echo "$as_me:$LINENO: checking for time.h" >&5
7442echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7443if test "${ac_cv_header_time_h+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445fi
7446echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7447echo "${ECHO_T}$ac_cv_header_time_h" >&6
7448else
7449 # Is the header compilable?
7450echo "$as_me:$LINENO: checking time.h usability" >&5
7451echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
7452cat >conftest.$ac_ext <<_ACEOF
7453/* confdefs.h. */
7454_ACEOF
7455cat confdefs.h >>conftest.$ac_ext
7456cat >>conftest.$ac_ext <<_ACEOF
7457/* end confdefs.h. */
7458$ac_includes_default
7459#include <time.h>
7460_ACEOF
7461rm -f conftest.$ac_objext
7462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007464 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007465 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007466 rm -f conftest.er1
7467 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_header_compiler=yes
7484else
7485 echo "$as_me: failed program was:" >&5
7486sed 's/^/| /' conftest.$ac_ext >&5
7487
7488ac_header_compiler=no
7489fi
7490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7491echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7492echo "${ECHO_T}$ac_header_compiler" >&6
7493
7494# Is the header present?
7495echo "$as_me:$LINENO: checking time.h presence" >&5
7496echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
7497cat >conftest.$ac_ext <<_ACEOF
7498/* confdefs.h. */
7499_ACEOF
7500cat confdefs.h >>conftest.$ac_ext
7501cat >>conftest.$ac_ext <<_ACEOF
7502/* end confdefs.h. */
7503#include <time.h>
7504_ACEOF
7505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007512 (exit $ac_status); } >/dev/null; then
7513 if test -s conftest.err; then
7514 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007516 else
7517 ac_cpp_err=
7518 fi
7519else
7520 ac_cpp_err=yes
7521fi
7522if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007523 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007524else
7525 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007529fi
7530rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007531echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7532echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007533
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007534# So? What about this header?
7535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7536 yes:no: )
7537 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7538echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
7540echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
7541 ac_header_preproc=yes
7542 ;;
7543 no:yes:* )
7544 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
7545echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
7547echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
7549echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
7551echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
7553echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
7555echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
7556 (
7557 cat <<\_ASBOX
7558## ------------------------------------ ##
7559## Report this to the pjproject lists. ##
7560## ------------------------------------ ##
7561_ASBOX
7562 ) |
7563 sed "s/^/$as_me: WARNING: /" >&2
7564 ;;
7565esac
7566echo "$as_me:$LINENO: checking for time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007567echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7568if test "${ac_cv_header_time_h+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007570else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007571 ac_cv_header_time_h=$ac_header_preproc
7572fi
7573echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7574echo "${ECHO_T}$ac_cv_header_time_h" >&6
7575
7576fi
7577if test $ac_cv_header_time_h = yes; then
7578 cat >>confdefs.h <<\_ACEOF
7579#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007580_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007581
7582fi
7583
7584
7585if test "${ac_cv_header_unistd_h+set}" = set; then
7586 echo "$as_me:$LINENO: checking for unistd.h" >&5
7587echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7588if test "${ac_cv_header_unistd_h+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590fi
7591echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7592echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7593else
7594 # Is the header compilable?
7595echo "$as_me:$LINENO: checking unistd.h usability" >&5
7596echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
7597cat >conftest.$ac_ext <<_ACEOF
7598/* confdefs.h. */
7599_ACEOF
7600cat confdefs.h >>conftest.$ac_ext
7601cat >>conftest.$ac_ext <<_ACEOF
7602/* end confdefs.h. */
7603$ac_includes_default
7604#include <unistd.h>
7605_ACEOF
7606rm -f conftest.$ac_objext
7607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007609 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007610 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007611 rm -f conftest.er1
7612 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_header_compiler=yes
7629else
7630 echo "$as_me: failed program was:" >&5
7631sed 's/^/| /' conftest.$ac_ext >&5
7632
7633ac_header_compiler=no
7634fi
7635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7637echo "${ECHO_T}$ac_header_compiler" >&6
7638
7639# Is the header present?
7640echo "$as_me:$LINENO: checking unistd.h presence" >&5
7641echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
7642cat >conftest.$ac_ext <<_ACEOF
7643/* confdefs.h. */
7644_ACEOF
7645cat confdefs.h >>conftest.$ac_ext
7646cat >>conftest.$ac_ext <<_ACEOF
7647/* end confdefs.h. */
7648#include <unistd.h>
7649_ACEOF
7650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007657 (exit $ac_status); } >/dev/null; then
7658 if test -s conftest.err; then
7659 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007661 else
7662 ac_cpp_err=
7663 fi
7664else
7665 ac_cpp_err=yes
7666fi
7667if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007668 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007669else
7670 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007674fi
7675rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007676echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7677echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007678
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007679# So? What about this header?
7680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7681 yes:no: )
7682 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
7683echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
7685echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
7686 ac_header_preproc=yes
7687 ;;
7688 no:yes:* )
7689 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
7690echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
7692echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
7694echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
7696echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
7698echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
7700echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
7701 (
7702 cat <<\_ASBOX
7703## ------------------------------------ ##
7704## Report this to the pjproject lists. ##
7705## ------------------------------------ ##
7706_ASBOX
7707 ) |
7708 sed "s/^/$as_me: WARNING: /" >&2
7709 ;;
7710esac
7711echo "$as_me:$LINENO: checking for unistd.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007712echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7713if test "${ac_cv_header_unistd_h+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007715else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007716 ac_cv_header_unistd_h=$ac_header_preproc
7717fi
7718echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7719echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7720
7721fi
7722if test $ac_cv_header_unistd_h = yes; then
7723 cat >>confdefs.h <<\_ACEOF
7724#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007725_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007726
7727fi
7728
7729
7730if test "${ac_cv_header_mswsock_h+set}" = set; then
7731 echo "$as_me:$LINENO: checking for mswsock.h" >&5
7732echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7733if test "${ac_cv_header_mswsock_h+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735fi
7736echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7737echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7738else
7739 # Is the header compilable?
7740echo "$as_me:$LINENO: checking mswsock.h usability" >&5
7741echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
7742cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h. */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h. */
7748$ac_includes_default
7749#include <mswsock.h>
7750_ACEOF
7751rm -f conftest.$ac_objext
7752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7753 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007754 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007755 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007756 rm -f conftest.er1
7757 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_header_compiler=yes
7774else
7775 echo "$as_me: failed program was:" >&5
7776sed 's/^/| /' conftest.$ac_ext >&5
7777
7778ac_header_compiler=no
7779fi
7780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7782echo "${ECHO_T}$ac_header_compiler" >&6
7783
7784# Is the header present?
7785echo "$as_me:$LINENO: checking mswsock.h presence" >&5
7786echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
7787cat >conftest.$ac_ext <<_ACEOF
7788/* confdefs.h. */
7789_ACEOF
7790cat confdefs.h >>conftest.$ac_ext
7791cat >>conftest.$ac_ext <<_ACEOF
7792/* end confdefs.h. */
7793#include <mswsock.h>
7794_ACEOF
7795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7797 ac_status=$?
7798 grep -v '^ *+' conftest.er1 >conftest.err
7799 rm -f conftest.er1
7800 cat conftest.err >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007802 (exit $ac_status); } >/dev/null; then
7803 if test -s conftest.err; then
7804 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007806 else
7807 ac_cpp_err=
7808 fi
7809else
7810 ac_cpp_err=yes
7811fi
7812if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007813 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007814else
7815 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007816sed 's/^/| /' conftest.$ac_ext >&5
7817
7818 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007819fi
7820rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7822echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007823
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007824# So? What about this header?
7825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7826 yes:no: )
7827 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7828echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
7830echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
7831 ac_header_preproc=yes
7832 ;;
7833 no:yes:* )
7834 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
7835echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
7837echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
7839echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
7841echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
7843echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
7845echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
7846 (
7847 cat <<\_ASBOX
7848## ------------------------------------ ##
7849## Report this to the pjproject lists. ##
7850## ------------------------------------ ##
7851_ASBOX
7852 ) |
7853 sed "s/^/$as_me: WARNING: /" >&2
7854 ;;
7855esac
7856echo "$as_me:$LINENO: checking for mswsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007857echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7858if test "${ac_cv_header_mswsock_h+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007860else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007861 ac_cv_header_mswsock_h=$ac_header_preproc
7862fi
7863echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7864echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7865
7866fi
7867if test $ac_cv_header_mswsock_h = yes; then
7868 cat >>confdefs.h <<\_ACEOF
7869#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007870_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007871
7872fi
7873
7874
7875if test "${ac_cv_header_winsock_h+set}" = set; then
7876 echo "$as_me:$LINENO: checking for winsock.h" >&5
7877echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
7878if test "${ac_cv_header_winsock_h+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880fi
7881echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
7882echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
7883else
7884 # Is the header compilable?
7885echo "$as_me:$LINENO: checking winsock.h usability" >&5
7886echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
7887cat >conftest.$ac_ext <<_ACEOF
7888/* confdefs.h. */
7889_ACEOF
7890cat confdefs.h >>conftest.$ac_ext
7891cat >>conftest.$ac_ext <<_ACEOF
7892/* end confdefs.h. */
7893$ac_includes_default
7894#include <winsock.h>
7895_ACEOF
7896rm -f conftest.$ac_objext
7897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007899 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007900 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007901 rm -f conftest.er1
7902 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_header_compiler=yes
7919else
7920 echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923ac_header_compiler=no
7924fi
7925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7927echo "${ECHO_T}$ac_header_compiler" >&6
7928
7929# Is the header present?
7930echo "$as_me:$LINENO: checking winsock.h presence" >&5
7931echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
7932cat >conftest.$ac_ext <<_ACEOF
7933/* confdefs.h. */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
7937/* end confdefs.h. */
7938#include <winsock.h>
7939_ACEOF
7940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007947 (exit $ac_status); } >/dev/null; then
7948 if test -s conftest.err; then
7949 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007951 else
7952 ac_cpp_err=
7953 fi
7954else
7955 ac_cpp_err=yes
7956fi
7957if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007958 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007959else
7960 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007961sed 's/^/| /' conftest.$ac_ext >&5
7962
7963 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007964fi
7965rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7967echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007968
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007969# So? What about this header?
7970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7971 yes:no: )
7972 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7973echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7974 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
7975echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
7976 ac_header_preproc=yes
7977 ;;
7978 no:yes:* )
7979 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
7980echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
7982echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
7984echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
7986echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
7988echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
7990echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
7991 (
7992 cat <<\_ASBOX
7993## ------------------------------------ ##
7994## Report this to the pjproject lists. ##
7995## ------------------------------------ ##
7996_ASBOX
7997 ) |
7998 sed "s/^/$as_me: WARNING: /" >&2
7999 ;;
8000esac
8001echo "$as_me:$LINENO: checking for winsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008002echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
8003if test "${ac_cv_header_winsock_h+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008005else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008006 ac_cv_header_winsock_h=$ac_header_preproc
8007fi
8008echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8009echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
8010
8011fi
8012if test $ac_cv_header_winsock_h = yes; then
8013 cat >>confdefs.h <<\_ACEOF
8014#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008015_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008016
8017fi
8018
8019
8020if test "${ac_cv_header_winsock2_h+set}" = set; then
8021 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8022echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8023if test "${ac_cv_header_winsock2_h+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025fi
8026echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8027echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
8028else
8029 # Is the header compilable?
8030echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8031echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
8032cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h. */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h. */
8038$ac_includes_default
8039#include <winsock2.h>
8040_ACEOF
8041rm -f conftest.$ac_objext
8042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008044 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008045 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008046 rm -f conftest.er1
8047 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -z "$ac_c_werror_flag"
8051 || test ! -s conftest.err'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 (eval $ac_try) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; } &&
8057 { ac_try='test -s conftest.$ac_objext'
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 (eval $ac_try) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
8063 ac_header_compiler=yes
8064else
8065 echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068ac_header_compiler=no
8069fi
8070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8072echo "${ECHO_T}$ac_header_compiler" >&6
8073
8074# Is the header present?
8075echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8076echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
8077cat >conftest.$ac_ext <<_ACEOF
8078/* confdefs.h. */
8079_ACEOF
8080cat confdefs.h >>conftest.$ac_ext
8081cat >>conftest.$ac_ext <<_ACEOF
8082/* end confdefs.h. */
8083#include <winsock2.h>
8084_ACEOF
8085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008092 (exit $ac_status); } >/dev/null; then
8093 if test -s conftest.err; then
8094 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008096 else
8097 ac_cpp_err=
8098 fi
8099else
8100 ac_cpp_err=yes
8101fi
8102if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008103 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008104else
8105 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008106sed 's/^/| /' conftest.$ac_ext >&5
8107
8108 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008109fi
8110rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8112echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008113
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008114# So? What about this header?
8115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8116 yes:no: )
8117 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8118echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8120echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8121 ac_header_preproc=yes
8122 ;;
8123 no:yes:* )
8124 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8125echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8126 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8127echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8129echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8131echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8133echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8135echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
8136 (
8137 cat <<\_ASBOX
8138## ------------------------------------ ##
8139## Report this to the pjproject lists. ##
8140## ------------------------------------ ##
8141_ASBOX
8142 ) |
8143 sed "s/^/$as_me: WARNING: /" >&2
8144 ;;
8145esac
8146echo "$as_me:$LINENO: checking for winsock2.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008147echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8148if test "${ac_cv_header_winsock2_h+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008150else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008151 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008152fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008153echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008154echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008155
8156fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008157if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008158 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008159#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008160_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008161
8162fi
8163
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008164
Benny Prijono4e48b512007-05-16 13:41:00 +00008165if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8166 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8167echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8168if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8170fi
8171echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8172echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8173else
8174 # Is the header compilable?
8175echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8176echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
8177cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h. */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h. */
8183$ac_includes_default
8184#include <uuid/uuid.h>
8185_ACEOF
8186rm -f conftest.$ac_objext
8187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188 (eval $ac_compile) 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag"
8196 || test ! -s conftest.err'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest.$ac_objext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_header_compiler=yes
8209else
8210 echo "$as_me: failed program was:" >&5
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
8213ac_header_compiler=no
8214fi
8215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8217echo "${ECHO_T}$ac_header_compiler" >&6
8218
8219# Is the header present?
8220echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8221echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
8222cat >conftest.$ac_ext <<_ACEOF
8223/* confdefs.h. */
8224_ACEOF
8225cat confdefs.h >>conftest.$ac_ext
8226cat >>conftest.$ac_ext <<_ACEOF
8227/* end confdefs.h. */
8228#include <uuid/uuid.h>
8229_ACEOF
8230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8232 ac_status=$?
8233 grep -v '^ *+' conftest.er1 >conftest.err
8234 rm -f conftest.er1
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } >/dev/null; then
8238 if test -s conftest.err; then
8239 ac_cpp_err=$ac_c_preproc_warn_flag
8240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8241 else
8242 ac_cpp_err=
8243 fi
8244else
8245 ac_cpp_err=yes
8246fi
8247if test -z "$ac_cpp_err"; then
8248 ac_header_preproc=yes
8249else
8250 echo "$as_me: failed program was:" >&5
8251sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 ac_header_preproc=no
8254fi
8255rm -f conftest.err conftest.$ac_ext
8256echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8257echo "${ECHO_T}$ac_header_preproc" >&6
8258
8259# So? What about this header?
8260case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8261 yes:no: )
8262 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8263echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8265echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8266 ac_header_preproc=yes
8267 ;;
8268 no:yes:* )
8269 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8270echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8271 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8272echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8274echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8276echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8278echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8280echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
8281 (
8282 cat <<\_ASBOX
8283## ------------------------------------ ##
8284## Report this to the pjproject lists. ##
8285## ------------------------------------ ##
8286_ASBOX
8287 ) |
8288 sed "s/^/$as_me: WARNING: /" >&2
8289 ;;
8290esac
8291echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8292echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8293if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296 ac_cv_header_uuid_uuid_h=$ac_header_preproc
8297fi
8298echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8299echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8300
8301fi
8302if test $ac_cv_header_uuid_uuid_h = yes; then
8303 ac_has_uuid_h=1
8304fi
8305
8306
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008307
8308echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008309echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008310cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008311#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008312_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008313
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008314
8315echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008316echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR 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_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008319_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008320
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008321
8322echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008323echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER 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_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008326_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008327
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008328
8329echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008330echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008331cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008332#define PJ_HAS_MALLOC 1
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_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008337echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008338cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008339#define PJ_NATIVE_STRING_IS_UNICODE 0
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: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008344echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008345cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008346#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008347_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008348
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008349
8350echo "$as_me:$LINENO: checking if inet_aton is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008351echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
8352cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008358#include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008359int
8360main ()
8361{
8362inet_aton(0, 0);
8363 ;
8364 return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8369 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008370 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008375 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008376 { ac_try='test -z "$ac_c_werror_flag"
8377 || test ! -s conftest.err'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008379 (eval $ac_try) 2>&5
8380 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest.$ac_objext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008388 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008389 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008390#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008391_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008392
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008393 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008394echo "${ECHO_T}yes" >&6
8395else
8396 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008397sed 's/^/| /' conftest.$ac_ext >&5
8398
8399echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008400echo "${ECHO_T}no" >&6
8401fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008403
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008404echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008405echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
8406cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008407/* confdefs.h. */
8408_ACEOF
8409cat confdefs.h >>conftest.$ac_ext
8410cat >>conftest.$ac_ext <<_ACEOF
8411/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008412#include <sys/types.h>
8413 #include <sys/socket.h>
8414 #include <netinet/in.h>
8415 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008416int
8417main ()
8418{
8419struct sockaddr_in a; a.sin_len=0;
8420 ;
8421 return 0;
8422}
8423_ACEOF
8424rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8426 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008427 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008432 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008433 { ac_try='test -z "$ac_c_werror_flag"
8434 || test ! -s conftest.err'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008436 (eval $ac_try) 2>&5
8437 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; } &&
8440 { ac_try='test -s conftest.$ac_objext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008445 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008446 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008447#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008448_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008449
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008450 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008451echo "${ECHO_T}yes" >&6
8452else
8453 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008454sed 's/^/| /' conftest.$ac_ext >&5
8455
8456echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008457echo "${ECHO_T}no" >&6
8458fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008460
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008461echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008462echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8463cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008469#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008470int
8471main ()
8472{
8473socklen_t xxx = 0;
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008481 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008486 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008487 { ac_try='test -z "$ac_c_werror_flag"
8488 || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008490 (eval $ac_try) 2>&5
8491 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008499 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008500 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008501#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008502_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008503
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008504 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008505echo "${ECHO_T}yes" >&6
8506else
8507 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008508sed 's/^/| /' conftest.$ac_ext >&5
8509
8510echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008511echo "${ECHO_T}no" >&6
8512fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008514
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008515echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008516echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008517case $target in
8518 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008519 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008520#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008521_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008522
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008523 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008524echo "${ECHO_T}yes" >&6
8525 ;;
8526 *)
8527 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008533#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008534 #include <sys/socket.h>
8535 #include <netinet/in.h>
8536 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008537int
8538main ()
8539{
8540int i=SO_ERROR;
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008548 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008553 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008554 { ac_try='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008557 (eval $ac_try) 2>&5
8558 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008566 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008567 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008568#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008569_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008570
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008571 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008572echo "${ECHO_T}yes" >&6
8573else
8574 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008575sed 's/^/| /' conftest.$ac_ext >&5
8576
8577echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008578echo "${ECHO_T}no" >&6
8579fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008581 ;;
8582esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008583
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008584
8585echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008586echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
8587cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008588/* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008593#include <pthread.h>
8594int
8595main ()
8596{
8597pthread_rwlock_t *x;
8598 ;
8599 return 0;
8600}
8601_ACEOF
8602rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008605 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008610 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008611 { ac_try='test -z "$ac_c_werror_flag"
8612 || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008614 (eval $ac_try) 2>&5
8615 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008623 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008624 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008625#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008626_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008627
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008628 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008629echo "${ECHO_T}yes" >&6
8630else
8631 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008632sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008633
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008634cat >>confdefs.h <<\_ACEOF
8635#define PJ_EMULATE_RWMUTEX 1
8636_ACEOF
8637
8638 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008639echo "${ECHO_T}no" >&6
8640fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8642
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008643
8644case $target in
8645 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00008646 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 +00008647 ;;
8648 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00008649 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"
8650 # UUID
8651 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
8652 ac_os_objs="$ac_os_objs guid_uuid.o"
8653 else
8654 ac_os_objs="$ac_os_objs guid_simple.o"
8655 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008656 ;;
8657esac
8658
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008659
8660
8661
Benny Prijono4e48b512007-05-16 13:41:00 +00008662
Benny Prijono1d971622006-09-10 22:27:40 +00008663# Check whether --enable-sound or --disable-sound was given.
8664if test "${enable_sound+set}" = set; then
8665 enableval="$enable_sound"
8666 if test "$enable_sound" = "no"; then
8667 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008668 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00008669echo "${ECHO_T}Checking if sound is disabled... yes" >&6
8670 fi
8671
8672fi;
8673
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008674
Benny Prijono27c98722007-04-09 21:28:15 +00008675if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8676 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8677echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8678if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680fi
8681echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8682echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8683else
8684 # Is the header compilable?
8685echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
8686echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
8687cat >conftest.$ac_ext <<_ACEOF
8688/* confdefs.h. */
8689_ACEOF
8690cat confdefs.h >>conftest.$ac_ext
8691cat >>conftest.$ac_ext <<_ACEOF
8692/* end confdefs.h. */
8693$ac_includes_default
8694#include <sys/soundcard.h>
8695_ACEOF
8696rm -f conftest.$ac_objext
8697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698 (eval $ac_compile) 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -z "$ac_c_werror_flag"
8706 || test ! -s conftest.err'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try='test -s conftest.$ac_objext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_header_compiler=yes
8719else
8720 echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
8723ac_header_compiler=no
8724fi
8725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8727echo "${ECHO_T}$ac_header_compiler" >&6
8728
8729# Is the header present?
8730echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
8731echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
8732cat >conftest.$ac_ext <<_ACEOF
8733/* confdefs.h. */
8734_ACEOF
8735cat confdefs.h >>conftest.$ac_ext
8736cat >>conftest.$ac_ext <<_ACEOF
8737/* end confdefs.h. */
8738#include <sys/soundcard.h>
8739_ACEOF
8740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } >/dev/null; then
8748 if test -s conftest.err; then
8749 ac_cpp_err=$ac_c_preproc_warn_flag
8750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8751 else
8752 ac_cpp_err=
8753 fi
8754else
8755 ac_cpp_err=yes
8756fi
8757if test -z "$ac_cpp_err"; then
8758 ac_header_preproc=yes
8759else
8760 echo "$as_me: failed program was:" >&5
8761sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 ac_header_preproc=no
8764fi
8765rm -f conftest.err conftest.$ac_ext
8766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8767echo "${ECHO_T}$ac_header_preproc" >&6
8768
8769# So? What about this header?
8770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8771 yes:no: )
8772 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8773echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
8775echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
8776 ac_header_preproc=yes
8777 ;;
8778 no:yes:* )
8779 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
8780echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
8782echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
8784echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8786echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
8788echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
8790echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
8791 (
8792 cat <<\_ASBOX
8793## ------------------------------------ ##
8794## Report this to the pjproject lists. ##
8795## ------------------------------------ ##
8796_ASBOX
8797 ) |
8798 sed "s/^/$as_me: WARNING: /" >&2
8799 ;;
8800esac
8801echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8802echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8803if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 ac_cv_header_sys_soundcard_h=$ac_header_preproc
8807fi
8808echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8809echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8810
8811fi
8812if test $ac_cv_header_sys_soundcard_h = yes; then
8813 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
8814fi
8815
8816
8817if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8818 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8819echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8820if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822fi
8823echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8824echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8825else
8826 # Is the header compilable?
8827echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
8828echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
8829cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h. */
8835$ac_includes_default
8836#include <linux/soundcard.h>
8837_ACEOF
8838rm -f conftest.$ac_objext
8839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8840 (eval $ac_compile) 2>conftest.er1
8841 ac_status=$?
8842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -z "$ac_c_werror_flag"
8848 || test ! -s conftest.err'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try='test -s conftest.$ac_objext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_header_compiler=yes
8861else
8862 echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
8865ac_header_compiler=no
8866fi
8867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8868echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8869echo "${ECHO_T}$ac_header_compiler" >&6
8870
8871# Is the header present?
8872echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
8873echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
8874cat >conftest.$ac_ext <<_ACEOF
8875/* confdefs.h. */
8876_ACEOF
8877cat confdefs.h >>conftest.$ac_ext
8878cat >>conftest.$ac_ext <<_ACEOF
8879/* end confdefs.h. */
8880#include <linux/soundcard.h>
8881_ACEOF
8882if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } >/dev/null; then
8890 if test -s conftest.err; then
8891 ac_cpp_err=$ac_c_preproc_warn_flag
8892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8893 else
8894 ac_cpp_err=
8895 fi
8896else
8897 ac_cpp_err=yes
8898fi
8899if test -z "$ac_cpp_err"; then
8900 ac_header_preproc=yes
8901else
8902 echo "$as_me: failed program was:" >&5
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 ac_header_preproc=no
8906fi
8907rm -f conftest.err conftest.$ac_ext
8908echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8909echo "${ECHO_T}$ac_header_preproc" >&6
8910
8911# So? What about this header?
8912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8913 yes:no: )
8914 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8915echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
8917echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
8918 ac_header_preproc=yes
8919 ;;
8920 no:yes:* )
8921 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
8922echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
8924echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
8926echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8928echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
8930echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
8931 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
8932echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
8933 (
8934 cat <<\_ASBOX
8935## ------------------------------------ ##
8936## Report this to the pjproject lists. ##
8937## ------------------------------------ ##
8938_ASBOX
8939 ) |
8940 sed "s/^/$as_me: WARNING: /" >&2
8941 ;;
8942esac
8943echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8944echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8945if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8947else
8948 ac_cv_header_linux_soundcard_h=$ac_header_preproc
8949fi
8950echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8951echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8952
8953fi
8954if test $ac_cv_header_linux_soundcard_h = yes; then
8955 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
8956fi
8957
8958
8959if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8960 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
8961echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
8962if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964fi
8965echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
8966echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
8967else
8968 # Is the header compilable?
8969echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
8970echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
8971cat >conftest.$ac_ext <<_ACEOF
8972/* confdefs.h. */
8973_ACEOF
8974cat confdefs.h >>conftest.$ac_ext
8975cat >>conftest.$ac_ext <<_ACEOF
8976/* end confdefs.h. */
8977$ac_includes_default
8978#include <machine/soundcard.h>
8979_ACEOF
8980rm -f conftest.$ac_objext
8981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_header_compiler=yes
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
9007ac_header_compiler=no
9008fi
9009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9011echo "${ECHO_T}$ac_header_compiler" >&6
9012
9013# Is the header present?
9014echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9015echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
9016cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h. */
9022#include <machine/soundcard.h>
9023_ACEOF
9024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } >/dev/null; then
9032 if test -s conftest.err; then
9033 ac_cpp_err=$ac_c_preproc_warn_flag
9034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9035 else
9036 ac_cpp_err=
9037 fi
9038else
9039 ac_cpp_err=yes
9040fi
9041if test -z "$ac_cpp_err"; then
9042 ac_header_preproc=yes
9043else
9044 echo "$as_me: failed program was:" >&5
9045sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 ac_header_preproc=no
9048fi
9049rm -f conftest.err conftest.$ac_ext
9050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9051echo "${ECHO_T}$ac_header_preproc" >&6
9052
9053# So? What about this header?
9054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9055 yes:no: )
9056 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9057echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9059echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9060 ac_header_preproc=yes
9061 ;;
9062 no:yes:* )
9063 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9064echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9066echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9068echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9070echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9072echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9074echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
9075 (
9076 cat <<\_ASBOX
9077## ------------------------------------ ##
9078## Report this to the pjproject lists. ##
9079## ------------------------------------ ##
9080_ASBOX
9081 ) |
9082 sed "s/^/$as_me: WARNING: /" >&2
9083 ;;
9084esac
9085echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9086echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9087if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else
9090 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9091fi
9092echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9093echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9094
9095fi
9096if test $ac_cv_header_machine_soundcard_h = yes; then
9097 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
9098fi
9099
9100
9101
Benny Prijono1d971622006-09-10 22:27:40 +00009102if test "$enable_sound" = "no"; then
9103 true;
9104else
9105 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00009106 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00009107 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
9108 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009109 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00009110 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
9111 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009112 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00009113echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
9114 else
9115 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009116 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00009117echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00009118 fi
Benny Prijonob466e232006-09-10 08:53:59 +00009119 ;;
9120 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009121 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009122 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009123echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
9124 ;;
9125 *rtems*)
9126 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009127 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009128echo "${ECHO_T}Checking sound device backend... null sound" >&6
9129 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009130 *)
9131 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009132 if test "${ac_cv_header_alsa_version_h+set}" = set; then
9133 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009134echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9135if test "${ac_cv_header_alsa_version_h+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009137fi
9138echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
9139echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009140else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009141 # Is the header compilable?
9142echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
9143echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
9144cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009151#include <alsa/version.h>
9152_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009153rm -f conftest.$ac_objext
9154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009156 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009157 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009158 rm -f conftest.er1
9159 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -z "$ac_c_werror_flag"
9163 || test ! -s conftest.err'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest.$ac_objext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_header_compiler=yes
9176else
9177 echo "$as_me: failed program was:" >&5
9178sed 's/^/| /' conftest.$ac_ext >&5
9179
9180ac_header_compiler=no
9181fi
9182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9184echo "${ECHO_T}$ac_header_compiler" >&6
9185
9186# Is the header present?
9187echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
9188echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
9189cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
9195#include <alsa/version.h>
9196_ACEOF
9197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9199 ac_status=$?
9200 grep -v '^ *+' conftest.er1 >conftest.err
9201 rm -f conftest.er1
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009204 (exit $ac_status); } >/dev/null; then
9205 if test -s conftest.err; then
9206 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009208 else
9209 ac_cpp_err=
9210 fi
9211else
9212 ac_cpp_err=yes
9213fi
9214if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009215 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009216else
9217 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009218sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009221fi
9222rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9224echo "${ECHO_T}$ac_header_preproc" >&6
9225
9226# So? What about this header?
9227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9228 yes:no: )
9229 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9230echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
9232echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
9233 ac_header_preproc=yes
9234 ;;
9235 no:yes:* )
9236 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
9237echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
9238 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
9239echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
9241echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
9243echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
9245echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
9247echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
9248 (
9249 cat <<\_ASBOX
9250## ------------------------------------ ##
9251## Report this to the pjproject lists. ##
9252## ------------------------------------ ##
9253_ASBOX
9254 ) |
9255 sed "s/^/$as_me: WARNING: /" >&2
9256 ;;
9257esac
9258echo "$as_me:$LINENO: checking for alsa/version.h" >&5
9259echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9260if test "${ac_cv_header_alsa_version_h+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9262else
9263 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009264fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009265echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009266echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009267
9268fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009269if test $ac_cv_header_alsa_version_h = yes; then
9270 ac_pa_use_alsa=1
9271
9272 LIBS="$LIBS -lasound"
9273
9274else
9275 ac_pa_use_alsa=0
9276
9277fi
9278
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009279
9280 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009281echo "${ECHO_T}Checking sound device backend... unix" >&6
9282 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00009283 esac
9284fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009285
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009286
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009287# Check whether --enable-small-filter or --disable-small-filter was given.
9288if test "${enable_small_filter+set}" = set; then
9289 enableval="$enable_small_filter"
9290 if test "$enable_small_filter" = "no"; then
9291 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009292 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009293echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
9294 fi
9295else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009296 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009297echo "${ECHO_T}Checking if small filter is disabled... no" >&6
9298fi;
9299
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009300
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009301# Check whether --enable-large-filter or --disable-large-filter was given.
9302if test "${enable_large_filter+set}" = set; then
9303 enableval="$enable_large_filter"
9304 if test "$enable_large_filter" = "no"; then
9305 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009306 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009307echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
9308 fi
9309else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009310 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009311echo "${ECHO_T}Checking if large filter is disabled... no" >&6
9312fi;
9313
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009314
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009315# Check whether --enable-speex-aec or --disable-speex-aec was given.
9316if test "${enable_speex_aec+set}" = set; then
9317 enableval="$enable_speex_aec"
9318 if test "$enable_speex_aec" = "no"; then
9319 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009320 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009321echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
9322 fi
9323else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009324 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009325echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
9326fi;
9327
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009328
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009329# Check whether --enable-g711-codec or --disable-g711-codec was given.
9330if test "${enable_g711_codec+set}" = set; then
9331 enableval="$enable_g711_codec"
9332 if test "$enable_g711_codec" = "no"; then
9333 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009334 cat >>confdefs.h <<\_ACEOF
9335#define PJMEDIA_HAS_G711_CODEC 0
9336_ACEOF
9337
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009338 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009339echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
9340 fi
9341else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009342 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009343echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
9344fi;
9345
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009346
9347
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009348# Check whether --enable-l16-codec or --disable-l16-codec was given.
9349if test "${enable_l16_codec+set}" = set; then
9350 enableval="$enable_l16_codec"
9351 if test "$enable_l16_codec" = "no"; then
9352 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009353 cat >>confdefs.h <<\_ACEOF
9354#define PJMEDIA_HAS_L16_CODEC 0
9355_ACEOF
9356
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009357 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009358echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
9359 fi
9360else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009361 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00009362echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009363fi;
9364
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009365
9366
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009367# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
9368if test "${enable_gsm_codec+set}" = set; then
9369 enableval="$enable_gsm_codec"
9370 if test "$enable_gsm_codec" = "no"; then
9371 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009372 cat >>confdefs.h <<\_ACEOF
9373#define PJMEDIA_HAS_GSM_CODEC 0
9374_ACEOF
9375
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009376 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009377echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
9378 fi
9379else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009380 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009381echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
9382fi;
9383
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009384
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009385# Check whether --enable-speex-codec or --disable-speex-codec was given.
9386if test "${enable_speex_codec+set}" = set; then
9387 enableval="$enable_speex_codec"
9388 if test "$enable_speex_codec" = "no"; then
9389 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009390 cat >>confdefs.h <<\_ACEOF
9391#define PJMEDIA_HAS_SPEEX_CODEC 0
9392_ACEOF
9393
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009394 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009395echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
9396 fi
9397else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009398 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009399echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
9400fi;
9401
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009402
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009403# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
9404if test "${enable_ilbc_codec+set}" = set; then
9405 enableval="$enable_ilbc_codec"
9406 if test "$enable_ilbc_codec" = "no"; then
9407 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009408 cat >>confdefs.h <<\_ACEOF
9409#define PJMEDIA_HAS_ILBC_CODEC 0
9410_ACEOF
9411
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009412 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009413echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
9414 fi
9415else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009416 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009417echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
9418fi;
9419
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009420
9421
9422
9423
9424# Check whether --enable-ssl or --disable-ssl was given.
9425if test "${enable_ssl+set}" = set; then
9426 enableval="$enable_ssl"
9427
9428 if test "$enable_ssl" = "no"; then
9429 ac_no_ssl=1
9430 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
9431echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
9432 fi
9433
9434else
9435
9436 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
9437echo "${ECHO_T}checking for OpenSSL installations.." >&6
9438
9439
9440
9441 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9442 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9443echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9444if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446fi
9447echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9448echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9449else
9450 # Is the header compilable?
9451echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9452echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9453cat >conftest.$ac_ext <<_ACEOF
9454/* confdefs.h. */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h. */
9459$ac_includes_default
9460#include <openssl/ssl.h>
9461_ACEOF
9462rm -f conftest.$ac_objext
9463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9464 (eval $ac_compile) 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag"
9472 || test ! -s conftest.err'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; } &&
9478 { ac_try='test -s conftest.$ac_objext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_header_compiler=yes
9485else
9486 echo "$as_me: failed program was:" >&5
9487sed 's/^/| /' conftest.$ac_ext >&5
9488
9489ac_header_compiler=no
9490fi
9491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9493echo "${ECHO_T}$ac_header_compiler" >&6
9494
9495# Is the header present?
9496echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9497echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9498cat >conftest.$ac_ext <<_ACEOF
9499/* confdefs.h. */
9500_ACEOF
9501cat confdefs.h >>conftest.$ac_ext
9502cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h. */
9504#include <openssl/ssl.h>
9505_ACEOF
9506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } >/dev/null; then
9514 if test -s conftest.err; then
9515 ac_cpp_err=$ac_c_preproc_warn_flag
9516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9517 else
9518 ac_cpp_err=
9519 fi
9520else
9521 ac_cpp_err=yes
9522fi
9523if test -z "$ac_cpp_err"; then
9524 ac_header_preproc=yes
9525else
9526 echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 ac_header_preproc=no
9530fi
9531rm -f conftest.err conftest.$ac_ext
9532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9533echo "${ECHO_T}$ac_header_preproc" >&6
9534
9535# So? What about this header?
9536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9537 yes:no: )
9538 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9539echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9541echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9542 ac_header_preproc=yes
9543 ;;
9544 no:yes:* )
9545 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9546echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9548echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9550echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9552echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9554echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9556echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9557 (
9558 cat <<\_ASBOX
9559## ------------------------------------ ##
9560## Report this to the pjproject lists. ##
9561## ------------------------------------ ##
9562_ASBOX
9563 ) |
9564 sed "s/^/$as_me: WARNING: /" >&2
9565 ;;
9566esac
9567echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9568echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9569if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571else
9572 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9573fi
9574echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9575echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9576
9577fi
9578if test $ac_cv_header_openssl_ssl_h = yes; then
9579 openssl_h_present=1
9580fi
9581
9582
9583 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9584echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
9585if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587else
9588 ac_check_lib_save_LIBS=$LIBS
9589LIBS="-lssl $LIBS"
9590cat >conftest.$ac_ext <<_ACEOF
9591/* confdefs.h. */
9592_ACEOF
9593cat confdefs.h >>conftest.$ac_ext
9594cat >>conftest.$ac_ext <<_ACEOF
9595/* end confdefs.h. */
9596
9597/* Override any gcc2 internal prototype to avoid an error. */
9598#ifdef __cplusplus
9599extern "C"
9600#endif
9601/* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9603char SSL_library_init ();
9604int
9605main ()
9606{
9607SSL_library_init ();
9608 ;
9609 return 0;
9610}
9611_ACEOF
9612rm -f conftest.$ac_objext conftest$ac_exeext
9613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_lib_ssl_SSL_library_init=yes
9635else
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639ac_cv_lib_ssl_SSL_library_init=no
9640fi
9641rm -f conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643LIBS=$ac_check_lib_save_LIBS
9644fi
9645echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9646echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
9647if test $ac_cv_lib_ssl_SSL_library_init = yes; then
9648 libssl_present=1 && LIBS="$LIBS -lssl"
9649fi
9650
9651 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
9652echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
9653if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655else
9656 ac_check_lib_save_LIBS=$LIBS
9657LIBS="-lcrypto $LIBS"
9658cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h. */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h. */
9664
9665/* Override any gcc2 internal prototype to avoid an error. */
9666#ifdef __cplusplus
9667extern "C"
9668#endif
9669/* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */
9671char ERR_load_BIO_strings ();
9672int
9673main ()
9674{
9675ERR_load_BIO_strings ();
9676 ;
9677 return 0;
9678}
9679_ACEOF
9680rm -f conftest.$ac_objext conftest$ac_exeext
9681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>conftest.er1
9683 ac_status=$?
9684 grep -v '^ *+' conftest.er1 >conftest.err
9685 rm -f conftest.er1
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
9703else
9704 echo "$as_me: failed program was:" >&5
9705sed 's/^/| /' conftest.$ac_ext >&5
9706
9707ac_cv_lib_crypto_ERR_load_BIO_strings=no
9708fi
9709rm -f conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711LIBS=$ac_check_lib_save_LIBS
9712fi
9713echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
9714echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
9715if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
9716 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
9717fi
9718
9719 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
9720 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
9721echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
9722 cat >>confdefs.h <<\_ACEOF
9723#define PJSIP_HAS_TLS_TRANSPORT 1
9724_ACEOF
9725
9726 else
9727 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
9728echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
9729 fi
9730
9731fi;
9732
9733
9734
9735
9736echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009737echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009738case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009739 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009740#define PJ_SELECT_NEEDS_NFDS 1
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: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009744echo "${ECHO_T}yes" >&6
9745 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009746 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009747#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009748_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009749
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009750 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009751echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009752 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009753echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
9754 ;;
9755esac
9756
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009757echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009758echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
9759case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009760 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009761#define PJ_THREAD_SET_STACK_SIZE 1
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: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009765echo "${ECHO_T}yes" >&6
9766 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009767 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009768#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009769_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009770
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009771 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009772echo "${ECHO_T}no (default)" >&6
9773 ;;
9774esac
9775
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009776echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009777echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
9778case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009779 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009780#define PJ_THREAD_ALLOCATE_STACK 1
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: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009784echo "${ECHO_T}yes" >&6
9785 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009786 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009787#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009788_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009789
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009790 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009791echo "${ECHO_T}no (default)" >&6
9792 ;;
9793esac
9794
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009795case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009796 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009797 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009798#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009799_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009800
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009801 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009802 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009803#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009804_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009805
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009806 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009807echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
9808 ;;
9809esac
9810
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009811case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009812 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009813 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009814#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009815_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009816
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009817 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009818 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009819#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009820_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009821
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009822 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009823echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
9824 ;;
9825esac
9826
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009827
9828
9829
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009830if test "$build" = "$host"; then
9831 ac_cross_compile=
9832else
Benny Prijono5b818b22006-09-17 22:58:51 +00009833 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009834fi
9835ac_linux_poll=select
9836
9837ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009838
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009839
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009840case $target in
9841 *rtems*)
9842 ac_main_obj=main_rtems.o
9843 ;;
9844 *)
9845 ac_main_obj=main.o
9846 ;;
9847esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009848
9849cat >confcache <<\_ACEOF
9850# This file is a shell script that caches the results of configure
9851# tests run on this system so they can be shared between configure
9852# scripts and configure runs, see configure's option --config-cache.
9853# It is not useful on other systems. If it contains results you don't
9854# want to keep, you may remove or edit it.
9855#
9856# config.status only pays attention to the cache file if you give it
9857# the --recheck option to rerun configure.
9858#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009859# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009860# loading this file, other *unset* `ac_cv_foo' will be assigned the
9861# following values.
9862
9863_ACEOF
9864
9865# The following way of writing the cache mishandles newlines in values,
9866# but we know of no workaround that is simple, portable, and efficient.
9867# So, don't put newlines in cache variables' values.
9868# Ultrix sh set writes to stderr and can't be redirected directly,
9869# and sets the high bit in the cache file unless we assign to the vars.
9870{
9871 (set) 2>&1 |
9872 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9873 *ac_space=\ *)
9874 # `set' does not quote correctly, so add quotes (double-quote
9875 # substitution turns \\\\ into \\, and sed turns \\ into \).
9876 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009877 "s/'/'\\\\''/g;
9878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009879 ;;
9880 *)
9881 # `set' quotes correctly as required by POSIX, so do not add quotes.
9882 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009883 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009884 ;;
9885 esac;
9886} |
9887 sed '
9888 t clear
9889 : clear
9890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9891 t end
9892 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9893 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009894if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009895 if test -w $cache_file; then
9896 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9897 cat confcache >$cache_file
9898 else
9899 echo "not updating unwritable cache $cache_file"
9900 fi
9901fi
9902rm -f confcache
9903
9904test "x$prefix" = xNONE && prefix=$ac_default_prefix
9905# Let make expand exec_prefix.
9906test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9907
9908# VPATH may cause trouble with some makes, so we remove $(srcdir),
9909# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9910# trailing colons and then remove the whole line if VPATH becomes empty
9911# (actually we leave an empty line to preserve line numbers).
9912if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009914s/:*\$(srcdir):*/:/;
9915s/:*\${srcdir}:*/:/;
9916s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009917s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009918s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009919s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009920}'
9921fi
9922
9923DEFS=-DHAVE_CONFIG_H
9924
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009925ac_libobjs=
9926ac_ltlibobjs=
9927for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9928 # 1. Remove the extension, and $U if already installed.
9929 ac_i=`echo "$ac_i" |
9930 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9931 # 2. Add them.
9932 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9933 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9934done
9935LIBOBJS=$ac_libobjs
9936
9937LTLIBOBJS=$ac_ltlibobjs
9938
9939
9940
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009941: ${CONFIG_STATUS=./config.status}
9942ac_clean_files_save=$ac_clean_files
9943ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009944{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009945echo "$as_me: creating $CONFIG_STATUS" >&6;}
9946cat >$CONFIG_STATUS <<_ACEOF
9947#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009948# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009949# Run this file to recreate the current configuration.
9950# Compiler output produced by configure, useful for debugging
9951# configure, is in config.log if it exists.
9952
9953debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009954ac_cs_recheck=false
9955ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009956SHELL=\${CONFIG_SHELL-$SHELL}
9957_ACEOF
9958
9959cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009960## --------------------- ##
9961## M4sh Initialization. ##
9962## --------------------- ##
9963
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009964# Be Bourne compatible
9965if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9966 emulate sh
9967 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009968 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9969 # is contrary to our usage. Disable this feature.
9970 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009971elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9972 set -o posix
9973fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009974DUALCASE=1; export DUALCASE # for MKS sh
9975
9976# Support unset when possible.
9977if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9978 as_unset=unset
9979else
9980 as_unset=false
9981fi
9982
9983
9984# Work around bugs in pre-3.0 UWIN ksh.
9985$as_unset ENV MAIL MAILPATH
9986PS1='$ '
9987PS2='> '
9988PS4='+ '
9989
9990# NLS nuisances.
9991for as_var in \
9992 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9993 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9994 LC_TELEPHONE LC_TIME
9995do
9996 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9997 eval $as_var=C; export $as_var
9998 else
9999 $as_unset $as_var
10000 fi
10001done
10002
10003# Required to use basename.
10004if expr a : '\(a\)' >/dev/null 2>&1; then
10005 as_expr=expr
10006else
10007 as_expr=false
10008fi
10009
10010if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10011 as_basename=basename
10012else
10013 as_basename=false
10014fi
10015
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010016
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010017# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010018as_me=`$as_basename "$0" ||
10019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10020 X"$0" : 'X\(//\)$' \| \
10021 X"$0" : 'X\(/\)$' \| \
10022 . : '\(.\)' 2>/dev/null ||
10023echo X/"$0" |
10024 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10025 /^X\/\(\/\/\)$/{ s//\1/; q; }
10026 /^X\/\(\/\).*/{ s//\1/; q; }
10027 s/.*/./; q'`
10028
10029
10030# PATH needs CR, and LINENO needs CR and PATH.
10031# Avoid depending upon Character Ranges.
10032as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10033as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10034as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10035as_cr_digits='0123456789'
10036as_cr_alnum=$as_cr_Letters$as_cr_digits
10037
10038# The user is always right.
10039if test "${PATH_SEPARATOR+set}" != set; then
10040 echo "#! /bin/sh" >conf$$.sh
10041 echo "exit 0" >>conf$$.sh
10042 chmod +x conf$$.sh
10043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10044 PATH_SEPARATOR=';'
10045 else
10046 PATH_SEPARATOR=:
10047 fi
10048 rm -f conf$$.sh
10049fi
10050
10051
10052 as_lineno_1=$LINENO
10053 as_lineno_2=$LINENO
10054 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10055 test "x$as_lineno_1" != "x$as_lineno_2" &&
10056 test "x$as_lineno_3" = "x$as_lineno_2" || {
10057 # Find who we are. Look in the path if we contain no path at all
10058 # relative or not.
10059 case $0 in
10060 *[\\/]* ) as_myself=$0 ;;
10061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in $PATH
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10067done
10068
10069 ;;
10070 esac
10071 # We did not find ourselves, most probably we were run as `sh COMMAND'
10072 # in which case we are not to be found in the path.
10073 if test "x$as_myself" = x; then
10074 as_myself=$0
10075 fi
10076 if test ! -f "$as_myself"; then
10077 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10078echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10079 { (exit 1); exit 1; }; }
10080 fi
10081 case $CONFIG_SHELL in
10082 '')
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for as_base in sh bash ksh sh5; do
10089 case $as_dir in
10090 /*)
10091 if ("$as_dir/$as_base" -c '
10092 as_lineno_1=$LINENO
10093 as_lineno_2=$LINENO
10094 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10095 test "x$as_lineno_1" != "x$as_lineno_2" &&
10096 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10097 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10098 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10099 CONFIG_SHELL=$as_dir/$as_base
10100 export CONFIG_SHELL
10101 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10102 fi;;
10103 esac
10104 done
10105done
10106;;
10107 esac
10108
10109 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10110 # uniformly replaced by the line number. The first 'sed' inserts a
10111 # line-number line before each line; the second 'sed' does the real
10112 # work. The second script uses 'N' to pair each line-number line
10113 # with the numbered line, and appends trailing '-' during
10114 # substitution so that $LINENO is not a special case at line end.
10115 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10116 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10117 sed '=' <$as_myself |
10118 sed '
10119 N
10120 s,$,-,
10121 : loop
10122 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10123 t loop
10124 s,-$,,
10125 s,^['$as_cr_digits']*\n,,
10126 ' >$as_me.lineno &&
10127 chmod +x $as_me.lineno ||
10128 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10129echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10130 { (exit 1); exit 1; }; }
10131
10132 # Don't try to exec as it changes $[0], causing all sort of problems
10133 # (the dirname of $[0] is not the place where we might find the
10134 # original and so on. Autoconf is especially sensible to this).
10135 . ./$as_me.lineno
10136 # Exit status is that of the last command.
10137 exit
10138}
10139
10140
10141case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10142 *c*,-n*) ECHO_N= ECHO_C='
10143' ECHO_T=' ' ;;
10144 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10145 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10146esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010147
10148if expr a : '\(a\)' >/dev/null 2>&1; then
10149 as_expr=expr
10150else
10151 as_expr=false
10152fi
10153
10154rm -f conf$$ conf$$.exe conf$$.file
10155echo >conf$$.file
10156if ln -s conf$$.file conf$$ 2>/dev/null; then
10157 # We could just check for DJGPP; but this test a) works b) is more generic
10158 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10159 if test -f conf$$.exe; then
10160 # Don't use ln at all; we don't have any links
10161 as_ln_s='cp -p'
10162 else
10163 as_ln_s='ln -s'
10164 fi
10165elif ln conf$$.file conf$$ 2>/dev/null; then
10166 as_ln_s=ln
10167else
10168 as_ln_s='cp -p'
10169fi
10170rm -f conf$$ conf$$.exe conf$$.file
10171
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010172if mkdir -p . 2>/dev/null; then
10173 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000010174else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010175 test -d ./-p && rmdir ./-p
10176 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000010177fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010178
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010179as_executable_p="test -f"
10180
10181# Sed expression to map a string onto a valid CPP name.
10182as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10183
10184# Sed expression to map a string onto a valid variable name.
10185as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10186
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010187
10188# IFS
10189# We need space, tab and new line, in precisely that order.
10190as_nl='
10191'
10192IFS=" $as_nl"
10193
10194# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010195$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010196
10197exec 6>&1
10198
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010199# Open the log real soon, to keep \$[0] and so on meaningful, and to
10200# report actual input values of CONFIG_FILES etc. instead of their
10201# values after options handling. Logging --version etc. is OK.
10202exec 5>>config.log
10203{
10204 echo
10205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10206## Running $as_me. ##
10207_ASBOX
10208} >&5
10209cat >&5 <<_CSEOF
10210
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010211This file was extended by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010212generated by GNU Autoconf 2.59. Invocation command line was
10213
10214 CONFIG_FILES = $CONFIG_FILES
10215 CONFIG_HEADERS = $CONFIG_HEADERS
10216 CONFIG_LINKS = $CONFIG_LINKS
10217 CONFIG_COMMANDS = $CONFIG_COMMANDS
10218 $ $0 $@
10219
10220_CSEOF
10221echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10222echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010223_ACEOF
10224
10225# Files that config.status was made for.
10226if test -n "$ac_config_files"; then
10227 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10228fi
10229
10230if test -n "$ac_config_headers"; then
10231 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10232fi
10233
10234if test -n "$ac_config_links"; then
10235 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10236fi
10237
10238if test -n "$ac_config_commands"; then
10239 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10240fi
10241
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010242cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010243
10244ac_cs_usage="\
10245\`$as_me' instantiates files from templates according to the
10246current configuration.
10247
10248Usage: $0 [OPTIONS] [FILE]...
10249
10250 -h, --help print this help, then exit
10251 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010252 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010253 -d, --debug don't remove temporary files
10254 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010255 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010256 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010257 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010258 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010259
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010260Configuration files:
10261$config_files
10262
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010263Configuration headers:
10264$config_headers
10265
10266Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010267_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010268
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010269cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010270ac_cs_version="\\
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010271pjproject config.status 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010272configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010273 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10274
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010275Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010276This config.status script is free software; the Free Software Foundation
10277gives unlimited permission to copy, distribute and modify it."
10278srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010279_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010280
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010281cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010282# If no file are specified by the user, then we need to provide default
10283# value. By we need to know if files were specified by the user.
10284ac_need_defaults=:
10285while test $# != 0
10286do
10287 case $1 in
10288 --*=*)
10289 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10290 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010291 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010292 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010293 -*)
10294 ac_option=$1
10295 ac_optarg=$2
10296 ac_shift=shift
10297 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010298 *) # This is not an option, so the user has probably given explicit
10299 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010300 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010301 ac_need_defaults=false;;
10302 esac
10303
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010304 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010305 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010306_ACEOF
10307cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010309 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010310 --version | --vers* | -V )
10311 echo "$ac_cs_version"; exit 0 ;;
10312 --he | --h)
10313 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010314 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010315Try \`$0 --help' for more information." >&5
10316echo "$as_me: error: ambiguous option: $1
10317Try \`$0 --help' for more information." >&2;}
10318 { (exit 1); exit 1; }; };;
10319 --help | --hel | -h )
10320 echo "$ac_cs_usage"; exit 0 ;;
10321 --debug | --d* | -d )
10322 debug=: ;;
10323 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010324 $ac_shift
10325 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010326 ac_need_defaults=false;;
10327 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010328 $ac_shift
10329 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010330 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10333 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010334
10335 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010336 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010337Try \`$0 --help' for more information." >&5
10338echo "$as_me: error: unrecognized option: $1
10339Try \`$0 --help' for more information." >&2;}
10340 { (exit 1); exit 1; }; } ;;
10341
10342 *) ac_config_targets="$ac_config_targets $1" ;;
10343
10344 esac
10345 shift
10346done
10347
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010348ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010349
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010350if $ac_cs_silent; then
10351 exec 6>/dev/null
10352 ac_configure_extra_args="$ac_configure_extra_args --silent"
10353fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010354
10355_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010356cat >>$CONFIG_STATUS <<_ACEOF
10357if \$ac_cs_recheck; then
10358 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10359 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10360fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010361
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010362_ACEOF
10363
10364
10365
10366
10367
10368cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010369for ac_config_target in $ac_config_targets
10370do
10371 case "$ac_config_target" in
10372 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010373 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
10374 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
10375 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
10376 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
10377 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
10378 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod9627842007-04-18 09:24:31 +000010379 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
10380 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010381 "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 +000010382 "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 +000010383 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
10384 "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 +000010385 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
10386 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010387echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10388 { (exit 1); exit 1; }; };;
10389 esac
10390done
10391
10392# If the user did not use the arguments to specify the items to instantiate,
10393# then the envvar interface is used. Set only those that are not.
10394# We use the long form for the default assignment because of an extremely
10395# bizarre bug on SunOS 4.1.3.
10396if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10399fi
10400
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010401# Have a temporary directory for convenience. Make it in the build tree
10402# simply because there is no reason to put it here, and in addition,
10403# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010404# Create a temporary directory, and hook for its removal unless debugging.
10405$debug ||
10406{
10407 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10408 trap '{ (exit 1); exit 1; }' 1 2 13 15
10409}
10410
10411# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010412
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010413{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010414 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010415 test -n "$tmp" && test -d "$tmp"
10416} ||
10417{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010418 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010419 (umask 077 && mkdir $tmp)
10420} ||
10421{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010422 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010423 { (exit 1); exit 1; }
10424}
10425
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010426_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010427
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010428cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010429
10430#
10431# CONFIG_FILES section.
10432#
10433
10434# No need to generate the scripts if there are no CONFIG_FILES.
10435# This happens for instance when ./config.status config.h
10436if test -n "\$CONFIG_FILES"; then
10437 # Protect against being on the right side of a sed subst in config.status.
10438 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10439 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10440s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010441s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10442s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10443s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10444s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10445s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10446s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010447s,@exec_prefix@,$exec_prefix,;t t
10448s,@prefix@,$prefix,;t t
10449s,@program_transform_name@,$program_transform_name,;t t
10450s,@bindir@,$bindir,;t t
10451s,@sbindir@,$sbindir,;t t
10452s,@libexecdir@,$libexecdir,;t t
10453s,@datadir@,$datadir,;t t
10454s,@sysconfdir@,$sysconfdir,;t t
10455s,@sharedstatedir@,$sharedstatedir,;t t
10456s,@localstatedir@,$localstatedir,;t t
10457s,@libdir@,$libdir,;t t
10458s,@includedir@,$includedir,;t t
10459s,@oldincludedir@,$oldincludedir,;t t
10460s,@infodir@,$infodir,;t t
10461s,@mandir@,$mandir,;t t
10462s,@build_alias@,$build_alias,;t t
10463s,@host_alias@,$host_alias,;t t
10464s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010465s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010466s,@ECHO_C@,$ECHO_C,;t t
10467s,@ECHO_N@,$ECHO_N,;t t
10468s,@ECHO_T@,$ECHO_T,;t t
10469s,@LIBS@,$LIBS,;t t
10470s,@build@,$build,;t t
10471s,@build_cpu@,$build_cpu,;t t
10472s,@build_vendor@,$build_vendor,;t t
10473s,@build_os@,$build_os,;t t
10474s,@host@,$host,;t t
10475s,@host_cpu@,$host_cpu,;t t
10476s,@host_vendor@,$host_vendor,;t t
10477s,@host_os@,$host_os,;t t
10478s,@target@,$target,;t t
10479s,@target_cpu@,$target_cpu,;t t
10480s,@target_vendor@,$target_vendor,;t t
10481s,@target_os@,$target_os,;t t
10482s,@CC@,$CC,;t t
10483s,@CFLAGS@,$CFLAGS,;t t
10484s,@LDFLAGS@,$LDFLAGS,;t t
10485s,@CPPFLAGS@,$CPPFLAGS,;t t
10486s,@ac_ct_CC@,$ac_ct_CC,;t t
10487s,@EXEEXT@,$EXEEXT,;t t
10488s,@OBJEXT@,$OBJEXT,;t t
10489s,@CXX@,$CXX,;t t
10490s,@CXXFLAGS@,$CXXFLAGS,;t t
10491s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +000010492s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010493s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010494s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010495s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010496s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +000010497s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010498s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
10499s,@ac_no_small_filter@,$ac_no_small_filter,;t t
10500s,@ac_no_large_filter@,$ac_no_large_filter,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010501s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
10502s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
10503s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
10504s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
10505s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
10506s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010507s,@ac_no_ssl@,$ac_no_ssl,;t t
10508s,@openssl_h_present@,$openssl_h_present,;t t
10509s,@libssl_present@,$libssl_present,;t t
10510s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010511s,@ac_cross_compile@,$ac_cross_compile,;t t
10512s,@ac_linux_poll@,$ac_linux_poll,;t t
10513s,@ac_host@,$ac_host,;t t
10514s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010515s,@LIBOBJS@,$LIBOBJS,;t t
10516s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010517CEOF
10518
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010519_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010520
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010521 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010522 # Split the substitutions into bite-sized pieces for seds with
10523 # small command number limits, like on Digital OSF/1 and HP-UX.
10524 ac_max_sed_lines=48
10525 ac_sed_frag=1 # Number of current file.
10526 ac_beg=1 # First line for current file.
10527 ac_end=$ac_max_sed_lines # Line after last line for current file.
10528 ac_more_lines=:
10529 ac_sed_cmds=
10530 while $ac_more_lines; do
10531 if test $ac_beg -gt 1; then
10532 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10533 else
10534 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10535 fi
10536 if test ! -s $tmp/subs.frag; then
10537 ac_more_lines=false
10538 else
10539 # The purpose of the label and of the branching condition is to
10540 # speed up the sed processing (if there are no `@' at all, there
10541 # is no need to browse any of the substitutions).
10542 # These are the two extra sed commands mentioned above.
10543 (echo ':t
10544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10545 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010546 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010547 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010548 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010549 fi
10550 ac_sed_frag=`expr $ac_sed_frag + 1`
10551 ac_beg=$ac_end
10552 ac_end=`expr $ac_end + $ac_max_sed_lines`
10553 fi
10554 done
10555 if test -z "$ac_sed_cmds"; then
10556 ac_sed_cmds=cat
10557 fi
10558fi # test -n "$CONFIG_FILES"
10559
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010560_ACEOF
10561cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010562for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10564 case $ac_file in
10565 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010566 cat >$tmp/stdin
10567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010571 * ) ac_file_in=$ac_file.in ;;
10572 esac
10573
10574 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10576$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10577 X"$ac_file" : 'X\(//\)[^/]' \| \
10578 X"$ac_file" : 'X\(//\)$' \| \
10579 X"$ac_file" : 'X\(/\)' \| \
10580 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010581echo X"$ac_file" |
10582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10584 /^X\(\/\/\)$/{ s//\1/; q; }
10585 /^X\(\/\).*/{ s//\1/; q; }
10586 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010587 { if $as_mkdir_p; then
10588 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010589 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010590 as_dir="$ac_dir"
10591 as_dirs=
10592 while test ! -d "$as_dir"; do
10593 as_dirs="$as_dir $as_dirs"
10594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10596 X"$as_dir" : 'X\(//\)[^/]' \| \
10597 X"$as_dir" : 'X\(//\)$' \| \
10598 X"$as_dir" : 'X\(/\)' \| \
10599 . : '\(.\)' 2>/dev/null ||
10600echo X"$as_dir" |
10601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10603 /^X\(\/\/\)$/{ s//\1/; q; }
10604 /^X\(\/\).*/{ s//\1/; q; }
10605 s/.*/./; q'`
10606 done
10607 test ! -n "$as_dirs" || mkdir $as_dirs
10608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10609echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10610 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010611
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010612 ac_builddir=.
10613
10614if test "$ac_dir" != .; then
10615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10616 # A "../" for each directory in $ac_dir_suffix.
10617 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10618else
10619 ac_dir_suffix= ac_top_builddir=
10620fi
10621
10622case $srcdir in
10623 .) # No --srcdir option. We are building in place.
10624 ac_srcdir=.
10625 if test -z "$ac_top_builddir"; then
10626 ac_top_srcdir=.
10627 else
10628 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10629 fi ;;
10630 [\\/]* | ?:[\\/]* ) # Absolute path.
10631 ac_srcdir=$srcdir$ac_dir_suffix;
10632 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010633 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010634 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10635 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10636esac
10637
10638# Do not use `cd foo && pwd` to compute absolute paths, because
10639# the directories may not exist.
10640case `pwd` in
10641.) ac_abs_builddir="$ac_dir";;
10642*)
10643 case "$ac_dir" in
10644 .) ac_abs_builddir=`pwd`;;
10645 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10646 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10647 esac;;
10648esac
10649case $ac_abs_builddir in
10650.) ac_abs_top_builddir=${ac_top_builddir}.;;
10651*)
10652 case ${ac_top_builddir}. in
10653 .) ac_abs_top_builddir=$ac_abs_builddir;;
10654 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10655 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10656 esac;;
10657esac
10658case $ac_abs_builddir in
10659.) ac_abs_srcdir=$ac_srcdir;;
10660*)
10661 case $ac_srcdir in
10662 .) ac_abs_srcdir=$ac_abs_builddir;;
10663 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10664 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10665 esac;;
10666esac
10667case $ac_abs_builddir in
10668.) ac_abs_top_srcdir=$ac_top_srcdir;;
10669*)
10670 case $ac_top_srcdir in
10671 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10672 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10673 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10674 esac;;
10675esac
10676
10677
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010678
10679 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010680 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010681echo "$as_me: creating $ac_file" >&6;}
10682 rm -f "$ac_file"
10683 fi
10684 # Let's still pretend it is `configure' which instantiates (i.e., don't
10685 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010686 # /* config.h. Generated by config.status. */
10687 if test x"$ac_file" = x-; then
10688 configure_input=
10689 else
10690 configure_input="$ac_file. "
10691 fi
10692 configure_input=$configure_input"Generated from `echo $ac_file_in |
10693 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010694
10695 # First look for the input files in the build tree, otherwise in the
10696 # src tree.
10697 ac_file_inputs=`IFS=:
10698 for f in $ac_file_in; do
10699 case $f in
10700 -) echo $tmp/stdin ;;
10701 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010702 # Absolute (can't be DOS-style, as IFS=:)
10703 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010704echo "$as_me: error: cannot find input file: $f" >&2;}
10705 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010706 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010707 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010708 if test -f "$f"; then
10709 # Build tree
10710 echo "$f"
10711 elif test -f "$srcdir/$f"; then
10712 # Source tree
10713 echo "$srcdir/$f"
10714 else
10715 # /dev/null tree
10716 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010717echo "$as_me: error: cannot find input file: $f" >&2;}
10718 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010719 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010720 esac
10721 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010722_ACEOF
10723cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010724 sed "$ac_vpsub
10725$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010726_ACEOF
10727cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010728:t
10729/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10730s,@configure_input@,$configure_input,;t t
10731s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010732s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010733s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010734s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10735s,@builddir@,$ac_builddir,;t t
10736s,@abs_builddir@,$ac_abs_builddir,;t t
10737s,@top_builddir@,$ac_top_builddir,;t t
10738s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010739" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10740 rm -f $tmp/stdin
10741 if test x"$ac_file" != x-; then
10742 mv $tmp/out $ac_file
10743 else
10744 cat $tmp/out
10745 rm -f $tmp/out
10746 fi
10747
10748done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010749_ACEOF
10750cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010751
10752#
10753# CONFIG_HEADER section.
10754#
10755
10756# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10757# NAME is the cpp macro being defined and VALUE is the value it is being given.
10758#
10759# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010760ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10761ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010762ac_dC=' '
10763ac_dD=',;t'
10764# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010765ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010766ac_uB='$,\1#\2define\3'
10767ac_uC=' '
10768ac_uD=',;t'
10769
10770for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10772 case $ac_file in
10773 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010774 cat >$tmp/stdin
10775 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010777 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010779 * ) ac_file_in=$ac_file.in ;;
10780 esac
10781
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010782 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010783echo "$as_me: creating $ac_file" >&6;}
10784
10785 # First look for the input files in the build tree, otherwise in the
10786 # src tree.
10787 ac_file_inputs=`IFS=:
10788 for f in $ac_file_in; do
10789 case $f in
10790 -) echo $tmp/stdin ;;
10791 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010792 # Absolute (can't be DOS-style, as IFS=:)
10793 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010794echo "$as_me: error: cannot find input file: $f" >&2;}
10795 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010796 # Do quote $f, to prevent DOS paths from being IFS'd.
10797 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010798 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010799 if test -f "$f"; then
10800 # Build tree
10801 echo "$f"
10802 elif test -f "$srcdir/$f"; then
10803 # Source tree
10804 echo "$srcdir/$f"
10805 else
10806 # /dev/null tree
10807 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010808echo "$as_me: error: cannot find input file: $f" >&2;}
10809 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010810 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010811 esac
10812 done` || { (exit 1); exit 1; }
10813 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010814 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010815
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010816_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010817
10818# Transform confdefs.h into two sed scripts, `conftest.defines' and
10819# `conftest.undefs', that substitutes the proper values into
10820# config.h.in to produce config.h. The first handles `#define'
10821# templates, and the second `#undef' templates.
10822# And first: Protect against being on the right side of a sed subst in
10823# config.status. Protect against being in an unquoted here document
10824# in config.status.
10825rm -f conftest.defines conftest.undefs
10826# Using a here document instead of a string reduces the quoting nightmare.
10827# Putting comments in sed scripts is not portable.
10828#
10829# `end' is used to avoid that the second main sed command (meant for
10830# 0-ary CPP macros) applies to n-ary macro definitions.
10831# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010832cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010833s/[\\&,]/\\&/g
10834s,[\\$`],\\&,g
10835t clear
10836: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010837s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010838t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010839s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010840: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010841_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010842# If some macros were called several times there might be several times
10843# the same #defines, which is useless. Nevertheless, we may not want to
10844# sort them, since we want the *last* AC-DEFINE to be honored.
10845uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10846sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10847rm -f confdef2sed.sed
10848
10849# This sed command replaces #undef with comments. This is necessary, for
10850# example, in the case of _POSIX_SOURCE, which is predefined and required
10851# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010852cat >>conftest.undefs <<\_ACEOF
10853s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10854_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010855
10856# Break up conftest.defines because some shells have a limit on the size
10857# of here documents, and old seds have small limits too (100 cmds).
10858echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010859echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010860echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10861echo ' :' >>$CONFIG_STATUS
10862rm -f conftest.tail
10863while grep . conftest.defines >/dev/null
10864do
10865 # Write a limited-size here document to $tmp/defines.sed.
10866 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10867 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010868 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010869 # Work around the forget-to-reset-the-flag bug.
10870 echo 't clr' >>$CONFIG_STATUS
10871 echo ': clr' >>$CONFIG_STATUS
10872 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10873 echo 'CEOF
10874 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10875 rm -f $tmp/in
10876 mv $tmp/out $tmp/in
10877' >>$CONFIG_STATUS
10878 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10879 rm -f conftest.defines
10880 mv conftest.tail conftest.defines
10881done
10882rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010883echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010884echo >>$CONFIG_STATUS
10885
10886# Break up conftest.undefs because some shells have a limit on the size
10887# of here documents, and old seds have small limits too (100 cmds).
10888echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10889rm -f conftest.tail
10890while grep . conftest.undefs >/dev/null
10891do
10892 # Write a limited-size here document to $tmp/undefs.sed.
10893 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10894 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010895 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010896 # Work around the forget-to-reset-the-flag bug.
10897 echo 't clr' >>$CONFIG_STATUS
10898 echo ': clr' >>$CONFIG_STATUS
10899 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10900 echo 'CEOF
10901 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10902 rm -f $tmp/in
10903 mv $tmp/out $tmp/in
10904' >>$CONFIG_STATUS
10905 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10906 rm -f conftest.undefs
10907 mv conftest.tail conftest.undefs
10908done
10909rm -f conftest.undefs
10910
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010911cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010912 # Let's still pretend it is `configure' which instantiates (i.e., don't
10913 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010914 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010915 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010916 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010917 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010918 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010919 fi
10920 cat $tmp/in >>$tmp/config.h
10921 rm -f $tmp/in
10922 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010923 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10924 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010925echo "$as_me: $ac_file is unchanged" >&6;}
10926 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010927 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10929 X"$ac_file" : 'X\(//\)[^/]' \| \
10930 X"$ac_file" : 'X\(//\)$' \| \
10931 X"$ac_file" : 'X\(/\)' \| \
10932 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010933echo X"$ac_file" |
10934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10936 /^X\(\/\/\)$/{ s//\1/; q; }
10937 /^X\(\/\).*/{ s//\1/; q; }
10938 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010939 { if $as_mkdir_p; then
10940 mkdir -p "$ac_dir"
10941 else
10942 as_dir="$ac_dir"
10943 as_dirs=
10944 while test ! -d "$as_dir"; do
10945 as_dirs="$as_dir $as_dirs"
10946 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10947$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10948 X"$as_dir" : 'X\(//\)[^/]' \| \
10949 X"$as_dir" : 'X\(//\)$' \| \
10950 X"$as_dir" : 'X\(/\)' \| \
10951 . : '\(.\)' 2>/dev/null ||
10952echo X"$as_dir" |
10953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10955 /^X\(\/\/\)$/{ s//\1/; q; }
10956 /^X\(\/\).*/{ s//\1/; q; }
10957 s/.*/./; q'`
10958 done
10959 test ! -n "$as_dirs" || mkdir $as_dirs
10960 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10961echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10962 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010963
10964 rm -f $ac_file
10965 mv $tmp/config.h $ac_file
10966 fi
10967 else
10968 cat $tmp/config.h
10969 rm -f $tmp/config.h
10970 fi
10971done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010972_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010973
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010974cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010975
10976{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010977_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010978chmod +x $CONFIG_STATUS
10979ac_clean_files=$ac_clean_files_save
10980
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010981
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010982# configure is writing to config.log, and then calls config.status.
10983# config.status does its own redirection, appending to config.log.
10984# Unfortunately, on DOS this fails, as config.log is still kept open
10985# by configure, so config.status won't be able to write to it; its
10986# output is simply discarded. So we exec the FD to /dev/null,
10987# effectively closing config.log, so it can be properly (re)opened and
10988# appended to by config.status. When coming back to configure, we
10989# need to make the FD available again.
10990if test "$no_create" != yes; then
10991 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010992 ac_config_status_args=
10993 test "$silent" = yes &&
10994 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010995 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010996 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010997 exec 5>>config.log
10998 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10999 # would make configure fail if this is the last instruction.
11000 $ac_cs_success || { (exit 1); exit 1; }
11001fi
11002
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011003
Benny Prijonod9627842007-04-18 09:24:31 +000011004
11005echo "$as_me:$LINENO: result:
11006
11007The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
11008
11009Customizations can be put in:
11010 - 'user.mak'
11011 - 'pjlib/include/pj/config_site.h'
11012
11013The next step now is to run 'make dep' and 'make'.
11014" >&5
11015echo "${ECHO_T}
11016
11017The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
11018
11019Customizations can be put in:
11020 - 'user.mak'
11021 - 'pjlib/include/pj/config_site.h'
11022
11023The next step now is to run 'make dep' and 'make'.
11024" >&6
11025