blob: 065dbb91cd2cdd529b6d35612f23b2eb3549836a [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono0b462322008-03-12 22:44:24 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.8.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijono0b462322008-03-12 22:44:24 +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 Prijono0b462322008-03-12 22:44:24 +000012# Be Bourne compatible
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013if 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+"$@"}'='"$@"'
Benny Prijono0b462322008-03-12 22:44:24 +000019elif 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
Benny Prijonofdafd402008-01-23 14:34:46 +000023
Benny Prijono0b462322008-03-12 22:44:24 +000024# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000029fi
30
31
Benny Prijono0b462322008-03-12 22:44:24 +000032# 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
Benny Prijono7e0d75f2006-12-25 20:34:14 +000063
64
Benny Prijono0b462322008-03-12 22:44:24 +000065# 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
Benny Prijono0b462322008-03-12 22:44:24 +0000100 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
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000110for 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
Benny Prijono0b462322008-03-12 22:44:24 +0000117 ;;
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
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000123 fi
Benny Prijono0b462322008-03-12 22:44:24 +0000124 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 '')
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000130 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=.
Benny Prijono0b462322008-03-12 22:44:24 +0000135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000137 /*)
Benny Prijono0b462322008-03-12 22:44:24 +0000138 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
Benny Prijonofdafd402008-01-23 14:34:46 +0000152done
Benny Prijono0b462322008-03-12 22:44:24 +0000153;;
154 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000155
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
Benny Prijono0b462322008-03-12 22:44:24 +0000158 # 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.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijono0b462322008-03-12 22:44:24 +0000163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000165 sed '
166 N
Benny Prijono0b462322008-03-12 22:44:24 +0000167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000170 t loop
Benny Prijono0b462322008-03-12 22:44:24 +0000171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000173 ' >$as_me.lineno &&
Benny Prijono0b462322008-03-12 22:44:24 +0000174 chmod +x $as_me.lineno ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000175 { 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
Benny Prijono0b462322008-03-12 22:44:24 +0000180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000182 # Exit status is that of the last command.
183 exit
184}
185
186
Benny Prijono0b462322008-03-12 22:44:24 +0000187case `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= ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000192esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000193
Benny Prijono0b462322008-03-12 22:44:24 +0000194if expr a : '\(a\)' >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000195 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
Benny Prijono0b462322008-03-12 22:44:24 +0000203 # 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
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000207 as_ln_s='cp -p'
Benny Prijono0b462322008-03-12 22:44:24 +0000208 else
209 as_ln_s='ln -s'
210 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
Benny Prijono0b462322008-03-12 22:44:24 +0000216rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000217
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 Prijono0b462322008-03-12 22:44:24 +0000225as_executable_p="test -f"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000226
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
Benny Prijono0b462322008-03-12 22:44:24 +0000234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000239
Benny Prijono0b462322008-03-12 22:44:24 +0000240# CDPATH.
241$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
Benny Prijono0b462322008-03-12 22:44:24 +0000249exec 6>&1
250
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000251#
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
Benny Prijono0b462322008-03-12 22:44:24 +0000262# 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 Prijono1c5f4e42008-02-07 13:11:39 +0000270PACKAGE_VERSION='0.8'
271PACKAGE_STRING='pjproject 0.8'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
Benny Prijono0b462322008-03-12 22:44:24 +0000277#if HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000278# include <sys/types.h>
279#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000280#if HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000281# include <sys/stat.h>
282#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000283#if STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000284# include <stdlib.h>
285# include <stddef.h>
286#else
Benny Prijono0b462322008-03-12 22:44:24 +0000287# if HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000288# include <stdlib.h>
289# endif
290#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000293# include <memory.h>
294# endif
295# include <string.h>
296#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000297#if HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000298# include <strings.h>
299#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000300#if HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000301# include <inttypes.h>
Benny Prijono0b462322008-03-12 22:44:24 +0000302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000306#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000307#if HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000308# include <unistd.h>
309#endif"
310
Benny Prijono71f657d2008-03-17 14:24:21 +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_pa_use_oss 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_g722_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'
Benny Prijono0b462322008-03-12 22:44:24 +0000342datadir='${prefix}/share'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
Benny Prijono0b462322008-03-12 22:44:24 +0000346libdir='${exec_prefix}/lib'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000347includedir='${prefix}/include'
348oldincludedir='/usr/include'
Benny Prijono0b462322008-03-12 22:44:24 +0000349infodir='${prefix}/info'
350mandir='${prefix}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
Benny Prijono0b462322008-03-12 22:44:24 +0000357 eval "$ac_prev=\$ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000358 ac_prev=
359 continue
360 fi
361
Benny Prijono0b462322008-03-12 22:44:24 +0000362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
Benny Prijono0b462322008-03-12 22:44:24 +0000366 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000367
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
Benny Prijono0b462322008-03-12 22:44:24 +0000388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000389 ac_prev=datadir ;;
Benny Prijono0b462322008-03-12 22:44:24 +0000390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000392 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.
Benny Prijono0b462322008-03-12 22:44:24 +0000397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
Benny Prijono0b462322008-03-12 22:44:24 +0000406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000409 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'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000415
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 \
Benny Prijono0b462322008-03-12 22:44:24 +0000466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Benny Prijono0b462322008-03-12 22:44:24 +0000470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000472 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.
Benny Prijono0b462322008-03-12 22:44:24 +0000588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000591 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'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
Benny Prijono0b462322008-03-12 22:44:24 +0000601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000606
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; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000638 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
Benny Prijono0b462322008-03-12 22:44:24 +0000657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000659do
Benny Prijono0b462322008-03-12 22:44:24 +0000660 eval ac_val=$`echo $ac_var`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000661 case $ac_val in
Benny Prijono0b462322008-03-12 22:44:24 +0000662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000665 esac
Benny Prijono0b462322008-03-12 22:44:24 +0000666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000678done
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
Benny Prijono0b462322008-03-12 22:44:24 +0000707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +0000712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000714echo X"$0" |
Benny Prijono0b462322008-03-12 22:44:24 +0000715 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
Benny Prijono0b462322008-03-12 22:44:24 +0000721 if test ! -r $srcdir/$ac_unique_file; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
Benny Prijono0b462322008-03-12 22:44:24 +0000727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { 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; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000733 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000734 fi
Benny Prijonofdafd402008-01-23 14:34:46 +0000735fi
Benny Prijono0b462322008-03-12 22:44:24 +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; }; }
739srcdir=`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
768ac_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
776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000780
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 Prijono1c5f4e42008-02-07 13:11:39 +0000788\`configure' configures pjproject 0.8 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 Prijono0b462322008-03-12 22:44:24 +0000808_ACEOF
809
810 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]
Benny Prijono0b462322008-03-12 22:44:24 +0000828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000829 --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]
Benny Prijono0b462322008-03-12 22:44:24 +0000835 --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 Prijono1c5f4e42008-02-07 13:11:39 +0000850 short | recursive ) echo "Configuration of pjproject 0.8:";;
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 Prijono0b462322008-03-12 22:44:24 +0000860 --disable-oss Disable OSS audio (default: not disabled)
861
Benny Prijonoebb2c332008-07-28 23:40:58 +0000862 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000863 --disable-small-filter Exclude small filter in resampling
864 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000865 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
866 --disable-g711-codec Exclude G.711 codecs from the build
867 --disable-l16-codec Exclude Linear/L16 codec family from the build
868 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +0000869 --disable-g722-codec Exclude G.722 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000870 --disable-speex-codec Exclude Speex codecs in the build
871 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +0000872 --enable-libsamplerate Link with libsamplerate when available. Note that
873 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoce1db762007-02-14 02:21:08 +0000874 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000875
876
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
Benny Prijono0b462322008-03-12 22:44:24 +0000882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000886 CPP C preprocessor
887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000891_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000892fi
893
894if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
Benny Prijono0b462322008-03-12 22:44:24 +0000896 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono0b462322008-03-12 22:44:24 +0000898 test -d $ac_dir || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000899 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000900
Benny Prijono0b462322008-03-12 22:44:24 +0000901if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0b462322008-03-12 22:44:24 +0000903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905else
906 ac_dir_suffix= ac_top_builddir=
907fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000908
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000909case $srcdir in
Benny Prijono0b462322008-03-12 22:44:24 +0000910 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000911 ac_srcdir=.
Benny Prijono0b462322008-03-12 22:44:24 +0000912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000918 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0b462322008-03-12 22:44:24 +0000919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000923esac
924
Benny Prijono0b462322008-03-12 22:44:24 +0000925# Do not use `cd foo && pwd` to compute absolute paths, because
926# the directories may not exist.
927case `pwd` in
928.) ac_abs_builddir="$ac_dir";;
929*)
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935esac
936case $ac_abs_builddir in
937.) ac_abs_top_builddir=${ac_top_builddir}.;;
938*)
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_srcdir=$ac_srcdir;;
947*)
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_top_srcdir=$ac_top_srcdir;;
956*)
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962esac
963
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000976 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijono0b462322008-03-12 22:44:24 +0000978 fi
979 cd $ac_popdir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000980 done
981fi
982
Benny Prijono0b462322008-03-12 22:44:24 +0000983test -n "$ac_init_help" && exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000984if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000985 cat <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000986pjproject configure 0.8
Benny Prijono0b462322008-03-12 22:44:24 +0000987generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000988
Benny Prijono0b462322008-03-12 22:44:24 +0000989Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000990This configure script is free software; the Free Software Foundation
991gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000992_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +0000993 exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000994fi
Benny Prijono0b462322008-03-12 22:44:24 +0000995exec 5>config.log
996cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000997This file contains any messages produced by compilers while
998running configure, to aid debugging if configure makes a mistake.
999
Benny Prijono1c5f4e42008-02-07 13:11:39 +00001000It was created by pjproject $as_me 0.8, which was
Benny Prijono0b462322008-03-12 22:44:24 +00001001generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001002
1003 $ $0 $@
1004
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001005_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001006{
1007cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001008## --------- ##
1009## Platform. ##
1010## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001011
1012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020
1021/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Benny Prijono0b462322008-03-12 22:44:24 +00001024hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001025/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028
1029_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001030
1031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032for as_dir in $PATH
1033do
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037done
1038
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001039} >&5
1040
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001041cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001042
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001043
1044## ----------- ##
1045## Core tests. ##
1046## ----------- ##
1047
1048_ACEOF
1049
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001050
1051# Keep a trace of the command line.
1052# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001053# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001054# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001055# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001056ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001057ac_configure_args0=
1058ac_configure_args1=
Benny Prijono0b462322008-03-12 22:44:24 +00001059ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001060ac_must_keep_next=false
1061for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001062do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001063 for ac_arg
1064 do
1065 case $ac_arg in
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 continue ;;
Benny Prijono0b462322008-03-12 22:44:24 +00001070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 esac
1073 case $ac_pass in
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 2)
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1079 else
1080 case $ac_arg in
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 esac
1088 ;;
1089 -* ) ac_must_keep_next=true ;;
1090 esac
1091 fi
Benny Prijono0b462322008-03-12 22:44:24 +00001092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1094 ac_sep=" "
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001095 ;;
1096 esac
1097 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001098done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001099$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100$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 +00001101
1102# When interrupted or exit'd, cleanup temporary files, and complete
1103# config.log. We remove comments because anyway the quotes in there
1104# would cause problems or look ugly.
Benny Prijono0b462322008-03-12 22:44:24 +00001105# WARNING: Be sure not to use single quotes in there, as some shells,
1106# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001107trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001109 {
1110 echo
1111
1112 cat <<\_ASBOX
1113## ---------------- ##
1114## Cache variables. ##
1115## ---------------- ##
1116_ASBOX
1117 echo
1118 # The following way of writing the cache mishandles newlines in values,
Benny Prijono0b462322008-03-12 22:44:24 +00001119{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001120 (set) 2>&1 |
Benny Prijono0b462322008-03-12 22:44:24 +00001121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001123 sed -n \
Benny Prijono0b462322008-03-12 22:44:24 +00001124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126 ;;
Benny Prijono0b462322008-03-12 22:44:24 +00001127 *)
1128 sed -n \
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ;;
1131 esac;
1132}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001133 echo
1134
1135 cat <<\_ASBOX
1136## ----------------- ##
1137## Output variables. ##
1138## ----------------- ##
1139_ASBOX
1140 echo
1141 for ac_var in $ac_subst_vars
1142 do
Benny Prijono0b462322008-03-12 22:44:24 +00001143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001145 done | sort
1146 echo
1147
1148 if test -n "$ac_subst_files"; then
1149 cat <<\_ASBOX
Benny Prijono0b462322008-03-12 22:44:24 +00001150## ------------- ##
1151## Output files. ##
1152## ------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_files
1156 do
Benny Prijono0b462322008-03-12 22:44:24 +00001157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001159 done | sort
1160 echo
1161 fi
1162
1163 if test -s confdefs.h; then
1164 cat <<\_ASBOX
1165## ----------- ##
1166## confdefs.h. ##
1167## ----------- ##
1168_ASBOX
1169 echo
Benny Prijono0b462322008-03-12 22:44:24 +00001170 sed "/^$/d" confdefs.h | sort
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001171 echo
1172 fi
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1176 } >&5
Benny Prijono0b462322008-03-12 22:44:24 +00001177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001179 exit $exit_status
Benny Prijono0b462322008-03-12 22:44:24 +00001180 ' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001181for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183done
1184ac_signal=0
1185
1186# confdefs.h avoids OS command line length limits that DEFS can exceed.
Benny Prijono0b462322008-03-12 22:44:24 +00001187rm -rf conftest* confdefs.h
1188# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189echo >confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001190
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001191# Predefined preprocessor variables.
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_NAME "$PACKAGE_NAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_VERSION "$PACKAGE_VERSION"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_STRING "$PACKAGE_STRING"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215_ACEOF
1216
1217
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001218# Let the site file select an alternate cache file if it wants to.
1219# Prefer explicitly selected file to automatically selected ones.
Benny Prijono0b462322008-03-12 22:44:24 +00001220if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 else
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001226fi
Benny Prijono0b462322008-03-12 22:44:24 +00001227for ac_site_file in $CONFIG_SITE; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001228 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001230echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001231 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001232 . "$ac_site_file"
1233 fi
1234done
1235
1236if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001241echo "$as_me: loading cache $cache_file" >&6;}
1242 case $cache_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001245 esac
1246 fi
1247else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001249echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1251fi
1252
1253# Check that the precious variables saved in the cache have kept the same
1254# value.
1255ac_cache_corrupted=false
Benny Prijono0b462322008-03-12 22:44:24 +00001256for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
Benny Prijono0b462322008-03-12 22:44:24 +00001260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001262 case $ac_old_set,$ac_new_set in
1263 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001264 { 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 +00001265echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001269echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,);;
1272 *)
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001277echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001279echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001280 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001281 fi;;
1282 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001283 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001284 if test "$ac_new_set" = set; then
1285 case $ac_new_val in
Benny Prijono0b462322008-03-12 22:44:24 +00001286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001288 *) ac_arg=$ac_var=$ac_new_val ;;
1289 esac
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001293 esac
1294 fi
1295done
1296if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001298echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001300echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1302fi
1303
1304ac_ext=c
1305ac_cpp='$CPP $CPPFLAGS'
1306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001310
1311
Benny Prijono0b462322008-03-12 22:44:24 +00001312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
Benny Prijono5b818b22006-09-17 22:58:51 +00001337host_orig="$host"
1338
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001339ac_aux_dir=
Benny Prijono0b462322008-03-12 22:44:24 +00001340for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1341 if test -f $ac_dir/install-sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
Benny Prijono0b462322008-03-12 22:44:24 +00001345 elif test -f $ac_dir/install.sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
Benny Prijono0b462322008-03-12 22:44:24 +00001349 elif test -f $ac_dir/shtool; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
1353 fi
1354done
1355if test -z "$ac_aux_dir"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1357echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001358 { (exit 1); exit 1; }; }
1359fi
Benny Prijono0b462322008-03-12 22:44:24 +00001360ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001363
1364# Make sure we can run config.sub.
Benny Prijono0b462322008-03-12 22:44:24 +00001365$ac_config_sub sun4 >/dev/null 2>&1 ||
1366 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1367echo "$as_me: error: cannot run $ac_config_sub" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001368 { (exit 1); exit 1; }; }
1369
Benny Prijono0b462322008-03-12 22:44:24 +00001370echo "$as_me:$LINENO: checking build system type" >&5
1371echo $ECHO_N "checking build system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001372if test "${ac_cv_build+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1374else
Benny Prijono0b462322008-03-12 22:44:24 +00001375 ac_cv_build_alias=$build_alias
1376test -z "$ac_cv_build_alias" &&
1377 ac_cv_build_alias=`$ac_config_guess`
1378test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001379 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001380echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1381 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +00001382ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1383 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1384echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001385 { (exit 1); exit 1; }; }
1386
1387fi
Benny Prijono0b462322008-03-12 22:44:24 +00001388echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1389echo "${ECHO_T}$ac_cv_build" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001390build=$ac_cv_build
Benny Prijono0b462322008-03-12 22:44:24 +00001391build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1392build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1393build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001394
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001395
Benny Prijono0b462322008-03-12 22:44:24 +00001396echo "$as_me:$LINENO: checking host system type" >&5
1397echo $ECHO_N "checking host system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001398if test "${ac_cv_host+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400else
Benny Prijono0b462322008-03-12 22:44:24 +00001401 ac_cv_host_alias=$host_alias
1402test -z "$ac_cv_host_alias" &&
1403 ac_cv_host_alias=$ac_cv_build_alias
1404ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1405 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1406echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001407 { (exit 1); exit 1; }; }
1408
1409fi
Benny Prijono0b462322008-03-12 22:44:24 +00001410echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1411echo "${ECHO_T}$ac_cv_host" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001412host=$ac_cv_host
Benny Prijono0b462322008-03-12 22:44:24 +00001413host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1414host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1415host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001416
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001417
Benny Prijono0b462322008-03-12 22:44:24 +00001418echo "$as_me:$LINENO: checking target system type" >&5
1419echo $ECHO_N "checking target system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001420if test "${ac_cv_target+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
Benny Prijono0b462322008-03-12 22:44:24 +00001423 ac_cv_target_alias=$target_alias
1424test "x$ac_cv_target_alias" = "x" &&
1425 ac_cv_target_alias=$ac_cv_host_alias
1426ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1427 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1428echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001429 { (exit 1); exit 1; }; }
1430
1431fi
Benny Prijono0b462322008-03-12 22:44:24 +00001432echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1433echo "${ECHO_T}$ac_cv_target" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001434target=$ac_cv_target
Benny Prijono0b462322008-03-12 22:44:24 +00001435target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1436target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1437target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001438
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001439
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001440# The aliases save the names the user supplied, while $host etc.
1441# will get canonicalized.
1442test -n "$target_alias" &&
1443 test "$program_prefix$program_suffix$program_transform_name" = \
1444 NONENONEs,x,x, &&
1445 program_prefix=${target_alias}-
Benny Prijono0b462322008-03-12 22:44:24 +00001446 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 +00001447
Benny Prijono0b462322008-03-12 22:44:24 +00001448 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 +00001449
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001450
Benny Prijono12483112007-03-12 10:44:38 +00001451
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001452if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001453 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001454else
1455 CFLAGS="$CFLAGS"
1456fi
1457
1458CXXFLAGS="$CFLAGS $CXXFLAGS"
1459
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1467set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001468echo "$as_me:$LINENO: checking for $ac_word" >&5
1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001470if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001488done
1489
1490fi
1491fi
1492CC=$ac_cv_prog_CC
1493if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001494 echo "$as_me:$LINENO: result: $CC" >&5
1495echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001496else
Benny Prijono0b462322008-03-12 22:44:24 +00001497 echo "$as_me:$LINENO: result: no" >&5
1498echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001499fi
1500
1501fi
1502if test -z "$ac_cv_prog_CC"; then
1503 ac_ct_CC=$CC
1504 # Extract the first word of "gcc", so it can be a program name with args.
1505set dummy gcc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001521 ac_cv_prog_ac_ct_CC="gcc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001526done
1527
1528fi
1529fi
1530ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531if test -n "$ac_ct_CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001534else
Benny Prijono0b462322008-03-12 22:44:24 +00001535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001537fi
1538
Benny Prijono0b462322008-03-12 22:44:24 +00001539 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001540else
1541 CC="$ac_cv_prog_CC"
1542fi
1543
1544if test -z "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001547set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001548echo "$as_me:$LINENO: checking for $ac_word" >&5
1549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001550if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557for as_dir in $PATH
1558do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001563 ac_cv_prog_CC="${ac_tool_prefix}cc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 break 2
1566 fi
1567done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001568done
1569
1570fi
1571fi
1572CC=$ac_cv_prog_CC
1573if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001574 echo "$as_me:$LINENO: result: $CC" >&5
1575echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001576else
Benny Prijono0b462322008-03-12 22:44:24 +00001577 echo "$as_me:$LINENO: result: no" >&5
1578echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001579fi
1580
Benny Prijono0b462322008-03-12 22:44:24 +00001581fi
1582if test -z "$ac_cv_prog_CC"; then
1583 ac_ct_CC=$CC
1584 # Extract the first word of "cc", so it can be a program name with args.
1585set dummy cc; ac_word=$2
1586echo "$as_me:$LINENO: checking for $ac_word" >&5
1587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593else
1594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595for as_dir in $PATH
1596do
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_CC="cc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 break 2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001604 fi
Benny Prijono0b462322008-03-12 22:44:24 +00001605done
1606done
1607
1608fi
1609fi
1610ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611if test -n "$ac_ct_CC"; then
1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613echo "${ECHO_T}$ac_ct_CC" >&6
1614else
1615 echo "$as_me:$LINENO: result: no" >&5
1616echo "${ECHO_T}no" >&6
1617fi
1618
1619 CC=$ac_ct_CC
1620else
1621 CC="$ac_cv_prog_CC"
1622fi
1623
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001624fi
1625if test -z "$CC"; then
1626 # Extract the first word of "cc", so it can be a program name with args.
1627set dummy cc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001628echo "$as_me:$LINENO: checking for $ac_word" >&5
1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001630if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1635else
1636 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1645 ac_prog_rejected=yes
1646 continue
1647 fi
1648 ac_cv_prog_CC="cc"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001653done
1654
1655if test $ac_prog_rejected = yes; then
1656 # We found a bogon in the path, so make sure we never use it.
1657 set dummy $ac_cv_prog_CC
1658 shift
1659 if test $# != 0; then
1660 # We chose a different compiler from the bogus one.
1661 # However, it has the same basename, so the bogon will be chosen
1662 # first if we set CC to just the basename; use the full file name.
1663 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001665 fi
1666fi
1667fi
1668fi
1669CC=$ac_cv_prog_CC
1670if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001671 echo "$as_me:$LINENO: result: $CC" >&5
1672echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001673else
Benny Prijono0b462322008-03-12 22:44:24 +00001674 echo "$as_me:$LINENO: result: no" >&5
1675echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001676fi
1677
1678fi
1679if test -z "$CC"; then
1680 if test -n "$ac_tool_prefix"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001681 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001682 do
1683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001687if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001705done
1706
1707fi
1708fi
1709CC=$ac_cv_prog_CC
1710if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001711 echo "$as_me:$LINENO: result: $CC" >&5
1712echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001713else
Benny Prijono0b462322008-03-12 22:44:24 +00001714 echo "$as_me:$LINENO: result: no" >&5
1715echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001716fi
1717
1718 test -n "$CC" && break
1719 done
1720fi
1721if test -z "$CC"; then
1722 ac_ct_CC=$CC
Benny Prijono0b462322008-03-12 22:44:24 +00001723 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001724do
1725 # Extract the first word of "$ac_prog", so it can be a program name with args.
1726set dummy $ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001729if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001742 ac_cv_prog_ac_ct_CC="$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001747done
1748
1749fi
1750fi
1751ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752if test -n "$ac_ct_CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001755else
Benny Prijono0b462322008-03-12 22:44:24 +00001756 echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001758fi
1759
1760 test -n "$ac_ct_CC" && break
1761done
1762
Benny Prijono0b462322008-03-12 22:44:24 +00001763 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001764fi
1765
1766fi
1767
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001768
1769test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1770See \`config.log' for more details." >&5
1771echo "$as_me: error: no acceptable C compiler found in \$PATH
1772See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001773 { (exit 1); exit 1; }; }
1774
1775# Provide some information about the compiler.
Benny Prijono0b462322008-03-12 22:44:24 +00001776echo "$as_me:$LINENO:" \
1777 "checking for C compiler version" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001778ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0b462322008-03-12 22:44:24 +00001779{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1780 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001781 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001783 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00001784{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1785 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001786 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001788 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00001789{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1790 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001791 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001793 (exit $ac_status); }
1794
1795cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001796/* confdefs.h. */
1797_ACEOF
1798cat confdefs.h >>conftest.$ac_ext
1799cat >>conftest.$ac_ext <<_ACEOF
1800/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001801
1802int
1803main ()
1804{
1805
1806 ;
1807 return 0;
1808}
1809_ACEOF
1810ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001811ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001812# Try to create an executable without -o first, disregard a.out.
1813# It will help us diagnose broken compilers, and finding out an intuition
1814# of exeext.
Benny Prijono0b462322008-03-12 22:44:24 +00001815echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1816echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001817ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono0b462322008-03-12 22:44:24 +00001818if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1819 (eval $ac_link_default) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001820 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001822 (exit $ac_status); }; then
Benny Prijono0b462322008-03-12 22:44:24 +00001823 # Find the output, starting from the most likely. This scheme is
1824# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825# resort.
1826
1827# Be careful to initialize this variable, since it used to be cached.
1828# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1829ac_cv_exeext=
1830# b.out is created by i960 compilers.
1831for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001832do
1833 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001834 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1836 ;;
1837 conftest.$ac_ext )
1838 # This is the source file.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001839 ;;
1840 [ab].out )
1841 # We found the default executable, but exeext='' is most
1842 # certainly right.
1843 break;;
1844 *.* )
Benny Prijono0b462322008-03-12 22:44:24 +00001845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 # FIXME: I believe we export ac_cv_exeext for Libtool,
1847 # but it would be cool to find out if it's true. Does anybody
1848 # maintain Libtool? --akim.
1849 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001850 break;;
1851 * )
1852 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001853 esac
1854done
1855else
1856 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1860See \`config.log' for more details." >&5
1861echo "$as_me: error: C compiler cannot create executables
1862See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001863 { (exit 77); exit 77; }; }
1864fi
1865
1866ac_exeext=$ac_cv_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00001867echo "$as_me:$LINENO: result: $ac_file" >&5
1868echo "${ECHO_T}$ac_file" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001869
Benny Prijono0b462322008-03-12 22:44:24 +00001870# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001871# the compiler is broken, or we cross compile.
Benny Prijono0b462322008-03-12 22:44:24 +00001872echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1873echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001874# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1875# If not cross compiling, check that we can run a simple program.
1876if test "$cross_compiling" != yes; then
1877 if { ac_try='./$ac_file'
Benny Prijono0b462322008-03-12 22:44:24 +00001878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 (eval $ac_try) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001880 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001882 (exit $ac_status); }; }; then
1883 cross_compiling=no
1884 else
1885 if test "$cross_compiling" = maybe; then
1886 cross_compiling=yes
1887 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1889If you meant to cross compile, use \`--host'.
1890See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001891echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001892If you meant to cross compile, use \`--host'.
1893See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001894 { (exit 1); exit 1; }; }
1895 fi
1896 fi
1897fi
Benny Prijono0b462322008-03-12 22:44:24 +00001898echo "$as_me:$LINENO: result: yes" >&5
1899echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001900
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001901rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902ac_clean_files=$ac_clean_files_save
Benny Prijono0b462322008-03-12 22:44:24 +00001903# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001904# the compiler is broken, or we cross compile.
Benny Prijono0b462322008-03-12 22:44:24 +00001905echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1906echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1907echo "$as_me:$LINENO: result: $cross_compiling" >&5
1908echo "${ECHO_T}$cross_compiling" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001909
Benny Prijono0b462322008-03-12 22:44:24 +00001910echo "$as_me:$LINENO: checking for suffix of executables" >&5
1911echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1913 (eval $ac_link) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001914 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001916 (exit $ac_status); }; then
1917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1918# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1919# work properly (i.e., refer to `conftest.exe'), while it won't with
1920# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001921for ac_file in conftest.exe conftest conftest.*; do
1922 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono0b462322008-03-12 22:44:24 +00001926 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001927 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001928 * ) break;;
1929 esac
1930done
1931else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001932 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1933See \`config.log' for more details." >&5
1934echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1935See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001936 { (exit 1); exit 1; }; }
1937fi
1938
1939rm -f conftest$ac_cv_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00001940echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1941echo "${ECHO_T}$ac_cv_exeext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001942
1943rm -f conftest.$ac_ext
1944EXEEXT=$ac_cv_exeext
1945ac_exeext=$EXEEXT
Benny Prijono0b462322008-03-12 22:44:24 +00001946echo "$as_me:$LINENO: checking for suffix of object files" >&5
1947echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001948if test "${ac_cv_objext+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001952/* confdefs.h. */
1953_ACEOF
1954cat confdefs.h >>conftest.$ac_ext
1955cat >>conftest.$ac_ext <<_ACEOF
1956/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001957
1958int
1959main ()
1960{
1961
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966rm -f conftest.o conftest.obj
Benny Prijono0b462322008-03-12 22:44:24 +00001967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001969 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001971 (exit $ac_status); }; then
Benny Prijono0b462322008-03-12 22:44:24 +00001972 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1976 break;;
1977 esac
1978done
1979else
1980 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1984See \`config.log' for more details." >&5
1985echo "$as_me: error: cannot compute suffix of object files: cannot compile
1986See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001987 { (exit 1); exit 1; }; }
1988fi
1989
1990rm -f conftest.$ac_cv_objext conftest.$ac_ext
1991fi
Benny Prijono0b462322008-03-12 22:44:24 +00001992echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1993echo "${ECHO_T}$ac_cv_objext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001994OBJEXT=$ac_cv_objext
1995ac_objext=$OBJEXT
Benny Prijono0b462322008-03-12 22:44:24 +00001996echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1997echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001998if test "${ac_cv_c_compiler_gnu+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002002/* confdefs.h. */
2003_ACEOF
2004cat confdefs.h >>conftest.$ac_ext
2005cat >>conftest.$ac_ext <<_ACEOF
2006/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002007
2008int
2009main ()
2010{
2011#ifndef __GNUC__
2012 choke me
2013#endif
2014
2015 ;
2016 return 0;
2017}
2018_ACEOF
2019rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002022 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002023 grep -v '^ *+' conftest.er1 >conftest.err
2024 rm -f conftest.er1
2025 cat conftest.err >&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002027 (exit $ac_status); } &&
2028 { ac_try='test -z "$ac_c_werror_flag"
2029 || test ! -s conftest.err'
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
2034 (exit $ac_status); }; } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002041 ac_compiler_gnu=yes
2042else
2043 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002044sed 's/^/| /' conftest.$ac_ext >&5
2045
Benny Prijono0b462322008-03-12 22:44:24 +00002046ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002047fi
Benny Prijono0b462322008-03-12 22:44:24 +00002048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002049ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050
2051fi
Benny Prijono0b462322008-03-12 22:44:24 +00002052echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002054GCC=`test $ac_compiler_gnu = yes && echo yes`
2055ac_test_CFLAGS=${CFLAGS+set}
2056ac_save_CFLAGS=$CFLAGS
Benny Prijono0b462322008-03-12 22:44:24 +00002057CFLAGS="-g"
2058echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002060if test "${ac_cv_prog_cc_g+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
Benny Prijono0b462322008-03-12 22:44:24 +00002063 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002064/* confdefs.h. */
2065_ACEOF
2066cat confdefs.h >>conftest.$ac_ext
2067cat >>conftest.$ac_ext <<_ACEOF
2068/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002069
2070int
2071main ()
2072{
2073
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002081 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002082 grep -v '^ *+' conftest.er1 >conftest.err
2083 rm -f conftest.er1
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
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
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002100 ac_cv_prog_cc_g=yes
2101else
2102 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002103sed 's/^/| /' conftest.$ac_ext >&5
2104
Benny Prijono0b462322008-03-12 22:44:24 +00002105ac_cv_prog_cc_g=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002106fi
Benny Prijono0b462322008-03-12 22:44:24 +00002107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002108fi
Benny Prijono0b462322008-03-12 22:44:24 +00002109echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2110echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002111if test "$ac_test_CFLAGS" = set; then
2112 CFLAGS=$ac_save_CFLAGS
2113elif test $ac_cv_prog_cc_g = yes; then
2114 if test "$GCC" = yes; then
2115 CFLAGS="-g -O2"
2116 else
2117 CFLAGS="-g"
2118 fi
2119else
2120 if test "$GCC" = yes; then
2121 CFLAGS="-O2"
2122 else
2123 CFLAGS=
2124 fi
2125fi
Benny Prijono0b462322008-03-12 22:44:24 +00002126echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2127echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2128if test "${ac_cv_prog_cc_stdc+set}" = set; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
Benny Prijono0b462322008-03-12 22:44:24 +00002131 ac_cv_prog_cc_stdc=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002132ac_save_CC=$CC
2133cat >conftest.$ac_ext <<_ACEOF
2134/* confdefs.h. */
2135_ACEOF
2136cat confdefs.h >>conftest.$ac_ext
2137cat >>conftest.$ac_ext <<_ACEOF
2138/* end confdefs.h. */
2139#include <stdarg.h>
2140#include <stdio.h>
2141#include <sys/types.h>
2142#include <sys/stat.h>
2143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2144struct buf { int x; };
2145FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146static char *e (p, i)
2147 char **p;
2148 int i;
2149{
2150 return p[i];
2151}
2152static char *f (char * (*g) (char **, int), char **p, ...)
2153{
2154 char *s;
2155 va_list v;
2156 va_start (v,p);
2157 s = g (p, va_arg (v,int));
2158 va_end (v);
2159 return s;
2160}
2161
2162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2163 function prototypes and stuff, but not '\xHH' hex character constants.
2164 These don't provoke an error unfortunately, instead are silently treated
Benny Prijono0b462322008-03-12 22:44:24 +00002165 as 'x'. The following induces an error, until -std1 is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2167 array size at least. It's necessary to write '\x00'==0 to get something
Benny Prijono0b462322008-03-12 22:44:24 +00002168 that's true only with -std1. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002169int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2170
2171int test (int i, double x);
2172struct s1 {int (*f) (int a);};
2173struct s2 {int (*f) (double a);};
2174int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2175int argc;
2176char **argv;
2177int
2178main ()
2179{
2180return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2181 ;
2182 return 0;
2183}
2184_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00002185# Don't try gcc -ansi; that turns off useful extensions and
2186# breaks some systems' header files.
2187# AIX -qlanglvl=ansi
2188# Ultrix and OSF/1 -std1
2189# HP-UX 10.20 and later -Ae
2190# HP-UX older versions -Aa -D_HPUX_SOURCE
2191# SVR4 -Xc -D__EXTENSIONS__
2192for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002193do
2194 CC="$ac_save_CC $ac_arg"
2195 rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
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); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_cv_prog_cc_stdc=$ac_arg
2218break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002219else
2220 echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223fi
Benny Prijono0b462322008-03-12 22:44:24 +00002224rm -f conftest.err conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002225done
Benny Prijono0b462322008-03-12 22:44:24 +00002226rm -f conftest.$ac_ext conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002227CC=$ac_save_CC
2228
2229fi
Benny Prijono0b462322008-03-12 22:44:24 +00002230
2231case "x$ac_cv_prog_cc_stdc" in
2232 x|xno)
2233 echo "$as_me:$LINENO: result: none needed" >&5
2234echo "${ECHO_T}none needed" >&6 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002235 *)
Benny Prijono0b462322008-03-12 22:44:24 +00002236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2237echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2238 CC="$CC $ac_cv_prog_cc_stdc" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002239esac
2240
Benny Prijono0b462322008-03-12 22:44:24 +00002241# Some people use a C++ compiler to compile C. Since we use `exit',
2242# in C++ we need to declare it. In case someone uses the same compiler
2243# for both compiling C and C++ we need to have the C++ compiler decide
2244# the declaration of exit, since it's the most demanding environment.
2245cat >conftest.$ac_ext <<_ACEOF
2246#ifndef __cplusplus
2247 choke me
2248#endif
2249_ACEOF
2250rm -f conftest.$ac_objext
2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
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
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 for ac_declaration in \
2273 '' \
2274 'extern "C" void std::exit (int) throw (); using std::exit;' \
2275 'extern "C" void std::exit (int); using std::exit;' \
2276 'extern "C" void exit (int) throw ();' \
2277 'extern "C" void exit (int);' \
2278 'void exit (int);'
2279do
2280 cat >conftest.$ac_ext <<_ACEOF
2281/* confdefs.h. */
2282_ACEOF
2283cat confdefs.h >>conftest.$ac_ext
2284cat >>conftest.$ac_ext <<_ACEOF
2285/* end confdefs.h. */
2286$ac_declaration
2287#include <stdlib.h>
2288int
2289main ()
2290{
2291exit (42);
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296rm -f conftest.$ac_objext
2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
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
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 :
2319else
2320 echo "$as_me: failed program was:" >&5
2321sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002322
Benny Prijono0b462322008-03-12 22:44:24 +00002323continue
2324fi
2325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326 cat >conftest.$ac_ext <<_ACEOF
2327/* confdefs.h. */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h. */
2332$ac_declaration
2333int
2334main ()
2335{
2336exit (42);
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341rm -f conftest.$ac_objext
2342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
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
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 break
2364else
2365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368fi
2369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370done
2371rm -f conftest*
2372if test -n "$ac_declaration"; then
2373 echo '#ifdef __cplusplus' >>confdefs.h
2374 echo $ac_declaration >>confdefs.h
2375 echo '#endif' >>confdefs.h
2376fi
2377
2378else
2379 echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382fi
2383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002384ac_ext=c
2385ac_cpp='$CPP $CPPFLAGS'
2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
Benny Prijono0b462322008-03-12 22:44:24 +00002390ac_ext=cc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002391ac_cpp='$CXXCPP $CPPFLAGS'
2392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Benny Prijono0b462322008-03-12 22:44:24 +00002395if test -n "$ac_tool_prefix"; then
2396 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002397 do
2398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00002400echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002402if test "${ac_cv_prog_CXX+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 if test -n "$CXX"; then
2406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2407else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00002414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002420done
2421
2422fi
2423fi
2424CXX=$ac_cv_prog_CXX
2425if test -n "$CXX"; then
Benny Prijono0b462322008-03-12 22:44:24 +00002426 echo "$as_me:$LINENO: result: $CXX" >&5
2427echo "${ECHO_T}$CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002428else
Benny Prijono0b462322008-03-12 22:44:24 +00002429 echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002431fi
2432
2433 test -n "$CXX" && break
2434 done
2435fi
2436if test -z "$CXX"; then
2437 ac_ct_CXX=$CXX
Benny Prijono0b462322008-03-12 22:44:24 +00002438 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002439do
2440 # Extract the first word of "$ac_prog", so it can be a program name with args.
2441set dummy $ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00002442echo "$as_me:$LINENO: checking for $ac_word" >&5
2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002444if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446else
2447 if test -n "$ac_ct_CXX"; then
2448 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2449else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00002456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002457 ac_cv_prog_ac_ct_CXX="$ac_prog"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002462done
2463
2464fi
2465fi
2466ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2467if test -n "$ac_ct_CXX"; then
Benny Prijono0b462322008-03-12 22:44:24 +00002468 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2469echo "${ECHO_T}$ac_ct_CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002470else
Benny Prijono0b462322008-03-12 22:44:24 +00002471 echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002473fi
2474
2475 test -n "$ac_ct_CXX" && break
2476done
Benny Prijono0b462322008-03-12 22:44:24 +00002477test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002478
Benny Prijono0b462322008-03-12 22:44:24 +00002479 CXX=$ac_ct_CXX
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002480fi
2481
Benny Prijono0b462322008-03-12 22:44:24 +00002482
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002483# Provide some information about the compiler.
Benny Prijono0b462322008-03-12 22:44:24 +00002484echo "$as_me:$LINENO:" \
2485 "checking for C++ compiler version" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002486ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0b462322008-03-12 22:44:24 +00002487{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2488 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002489 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002491 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00002492{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2493 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002494 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002496 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00002497{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2498 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002499 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002501 (exit $ac_status); }
2502
Benny Prijono0b462322008-03-12 22:44:24 +00002503echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2504echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002505if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002514
2515int
2516main ()
2517{
2518#ifndef __GNUC__
2519 choke me
2520#endif
2521
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002529 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_cxx_werror_flag"
2536 || test ! -s conftest.err'
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
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002548 ac_compiler_gnu=yes
2549else
2550 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002551sed 's/^/| /' conftest.$ac_ext >&5
2552
Benny Prijono0b462322008-03-12 22:44:24 +00002553ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002554fi
Benny Prijono0b462322008-03-12 22:44:24 +00002555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002556ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557
2558fi
Benny Prijono0b462322008-03-12 22:44:24 +00002559echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2560echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002561GXX=`test $ac_compiler_gnu = yes && echo yes`
2562ac_test_CXXFLAGS=${CXXFLAGS+set}
2563ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono0b462322008-03-12 22:44:24 +00002564CXXFLAGS="-g"
2565echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002567if test "${ac_cv_prog_cxx_g+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
Benny Prijono0b462322008-03-12 22:44:24 +00002570 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002576
2577int
2578main ()
2579{
2580
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002588 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag"
2595 || test ! -s conftest.err'
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
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002607 ac_cv_prog_cxx_g=yes
2608else
2609 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002610sed 's/^/| /' conftest.$ac_ext >&5
2611
Benny Prijono0b462322008-03-12 22:44:24 +00002612ac_cv_prog_cxx_g=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002613fi
Benny Prijono0b462322008-03-12 22:44:24 +00002614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002615fi
Benny Prijono0b462322008-03-12 22:44:24 +00002616echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2617echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002618if test "$ac_test_CXXFLAGS" = set; then
2619 CXXFLAGS=$ac_save_CXXFLAGS
2620elif test $ac_cv_prog_cxx_g = yes; then
2621 if test "$GXX" = yes; then
2622 CXXFLAGS="-g -O2"
2623 else
2624 CXXFLAGS="-g"
2625 fi
2626else
2627 if test "$GXX" = yes; then
2628 CXXFLAGS="-O2"
2629 else
2630 CXXFLAGS=
2631 fi
2632fi
Benny Prijono0b462322008-03-12 22:44:24 +00002633for ac_declaration in \
2634 '' \
2635 'extern "C" void std::exit (int) throw (); using std::exit;' \
2636 'extern "C" void std::exit (int); using std::exit;' \
2637 'extern "C" void exit (int) throw ();' \
2638 'extern "C" void exit (int);' \
2639 'void exit (int);'
2640do
2641 cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h. */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h. */
2647$ac_declaration
2648#include <stdlib.h>
2649int
2650main ()
2651{
2652exit (42);
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_cxx_werror_flag"
2667 || test ! -s conftest.err'
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
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 :
2680else
2681 echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684continue
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h. */
2693$ac_declaration
2694int
2695main ()
2696{
2697exit (42);
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_cxx_werror_flag"
2712 || test ! -s conftest.err'
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
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 (eval $ac_try) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2724 break
2725else
2726 echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729fi
2730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731done
2732rm -f conftest*
2733if test -n "$ac_declaration"; then
2734 echo '#ifdef __cplusplus' >>confdefs.h
2735 echo $ac_declaration >>confdefs.h
2736 echo '#endif' >>confdefs.h
2737fi
2738
Benny Prijonoa9b372a2006-07-24 02:07:11 +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 Prijonoc4c61d02006-08-20 20:47:34 +00002745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002751
2752
Benny Prijono53847a32007-09-24 16:10:13 +00002753case $target in
2754 *mingw* | *cygw* | *win32* | *w32* )
2755 ac_pjdir=`pwd -W`
2756 ;;
2757 *)
2758 ac_pjdir=`pwd`
2759 ;;
2760esac
Benny Prijono12483112007-03-12 10:44:38 +00002761
2762
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002763
Benny Prijono0b462322008-03-12 22:44:24 +00002764echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2765echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002766if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768else
2769 ac_check_lib_save_LIBS=$LIBS
2770LIBS="-lpthread $LIBS"
2771cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002772/* confdefs.h. */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002777
Benny Prijono0b462322008-03-12 22:44:24 +00002778/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002779#ifdef __cplusplus
2780extern "C"
2781#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002782/* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002784char pthread_create ();
2785int
2786main ()
2787{
Benny Prijono0b462322008-03-12 22:44:24 +00002788pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002789 ;
2790 return 0;
2791}
2792_ACEOF
2793rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2795 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002796 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
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
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest$ac_exeext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002815 ac_cv_lib_pthread_pthread_create=yes
2816else
2817 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002818sed 's/^/| /' conftest.$ac_ext >&5
2819
Benny Prijono0b462322008-03-12 22:44:24 +00002820ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002821fi
Benny Prijono0b462322008-03-12 22:44:24 +00002822rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002823 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002824LIBS=$ac_check_lib_save_LIBS
2825fi
Benny Prijono0b462322008-03-12 22:44:24 +00002826echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2827echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002828if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002829 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002830#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002831_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002832
2833 LIBS="-lpthread $LIBS"
2834
2835fi
2836
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002837
Benny Prijono0b462322008-03-12 22:44:24 +00002838echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
2839echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002840if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 ac_check_lib_save_LIBS=$LIBS
2844LIBS="-lwsock32 $LIBS"
2845cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002846/* confdefs.h. */
2847_ACEOF
2848cat confdefs.h >>conftest.$ac_ext
2849cat >>conftest.$ac_ext <<_ACEOF
2850/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002851
Benny Prijono0b462322008-03-12 22:44:24 +00002852/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002853#ifdef __cplusplus
2854extern "C"
2855#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002856/* We use char because int might match the return type of a gcc2
2857 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002858char puts ();
2859int
2860main ()
2861{
Benny Prijono0b462322008-03-12 22:44:24 +00002862puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002863 ;
2864 return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002870 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
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
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest$ac_exeext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002889 ac_cv_lib_wsock32_puts=yes
2890else
2891 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002892sed 's/^/| /' conftest.$ac_ext >&5
2893
Benny Prijono0b462322008-03-12 22:44:24 +00002894ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002895fi
Benny Prijono0b462322008-03-12 22:44:24 +00002896rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002897 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002898LIBS=$ac_check_lib_save_LIBS
2899fi
Benny Prijono0b462322008-03-12 22:44:24 +00002900echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
2901echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002902if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002903 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002904#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002905_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002906
2907 LIBS="-lwsock32 $LIBS"
2908
2909fi
2910
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002911
Benny Prijono0b462322008-03-12 22:44:24 +00002912echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
2913echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002914if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917 ac_check_lib_save_LIBS=$LIBS
2918LIBS="-lws2_32 $LIBS"
2919cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002925
Benny Prijono0b462322008-03-12 22:44:24 +00002926/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002927#ifdef __cplusplus
2928extern "C"
2929#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002930/* We use char because int might match the return type of a gcc2
2931 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002932char puts ();
2933int
2934main ()
2935{
Benny Prijono0b462322008-03-12 22:44:24 +00002936puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002944 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
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
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest$ac_exeext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002963 ac_cv_lib_ws2_32_puts=yes
2964else
2965 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002966sed 's/^/| /' conftest.$ac_ext >&5
2967
Benny Prijono0b462322008-03-12 22:44:24 +00002968ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002969fi
Benny Prijono0b462322008-03-12 22:44:24 +00002970rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002971 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002972LIBS=$ac_check_lib_save_LIBS
2973fi
Benny Prijono0b462322008-03-12 22:44:24 +00002974echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
2975echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002976if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002977 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002978#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002979_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002980
2981 LIBS="-lws2_32 $LIBS"
2982
2983fi
2984
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002985
Benny Prijono0b462322008-03-12 22:44:24 +00002986echo "$as_me:$LINENO: checking for puts in -lole32" >&5
2987echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002988if test "${ac_cv_lib_ole32_puts+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 ac_check_lib_save_LIBS=$LIBS
2992LIBS="-lole32 $LIBS"
2993cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002994/* confdefs.h. */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002999
Benny Prijono0b462322008-03-12 22:44:24 +00003000/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003001#ifdef __cplusplus
3002extern "C"
3003#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003004/* We use char because int might match the return type of a gcc2
3005 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003006char puts ();
3007int
3008main ()
3009{
Benny Prijono0b462322008-03-12 22:44:24 +00003010puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3017 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003018 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_c_werror_flag"
3025 || test ! -s conftest.err'
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
3030 (exit $ac_status); }; } &&
3031 { ac_try='test -s conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003037 ac_cv_lib_ole32_puts=yes
3038else
3039 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003040sed 's/^/| /' conftest.$ac_ext >&5
3041
Benny Prijono0b462322008-03-12 22:44:24 +00003042ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003043fi
Benny Prijono0b462322008-03-12 22:44:24 +00003044rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003045 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003046LIBS=$ac_check_lib_save_LIBS
3047fi
Benny Prijono0b462322008-03-12 22:44:24 +00003048echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3049echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003050if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003051 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003052#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003053_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003054
3055 LIBS="-lole32 $LIBS"
3056
3057fi
3058
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003059
Benny Prijono0b462322008-03-12 22:44:24 +00003060echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3061echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003062if test "${ac_cv_lib_winmm_puts+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065 ac_check_lib_save_LIBS=$LIBS
3066LIBS="-lwinmm $LIBS"
3067cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003073
Benny Prijono0b462322008-03-12 22:44:24 +00003074/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003075#ifdef __cplusplus
3076extern "C"
3077#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003078/* We use char because int might match the return type of a gcc2
3079 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003080char puts ();
3081int
3082main ()
3083{
Benny Prijono0b462322008-03-12 22:44:24 +00003084puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3091 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003092 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
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
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest$ac_exeext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003111 ac_cv_lib_winmm_puts=yes
3112else
3113 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114sed 's/^/| /' conftest.$ac_ext >&5
3115
Benny Prijono0b462322008-03-12 22:44:24 +00003116ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003117fi
Benny Prijono0b462322008-03-12 22:44:24 +00003118rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003119 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003120LIBS=$ac_check_lib_save_LIBS
3121fi
Benny Prijono0b462322008-03-12 22:44:24 +00003122echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3123echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003124if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003125 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003126#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003127_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003128
3129 LIBS="-lwinmm $LIBS"
3130
3131fi
3132
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003133
Benny Prijono0b462322008-03-12 22:44:24 +00003134echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3135echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003136if test "${ac_cv_lib_socket_puts+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139 ac_check_lib_save_LIBS=$LIBS
3140LIBS="-lsocket $LIBS"
3141cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003147
Benny Prijono0b462322008-03-12 22:44:24 +00003148/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003149#ifdef __cplusplus
3150extern "C"
3151#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003152/* We use char because int might match the return type of a gcc2
3153 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003154char puts ();
3155int
3156main ()
3157{
Benny Prijono0b462322008-03-12 22:44:24 +00003158puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003159 ;
3160 return 0;
3161}
3162_ACEOF
3163rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3165 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003166 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag"
3173 || test ! -s conftest.err'
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
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003185 ac_cv_lib_socket_puts=yes
3186else
3187 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003188sed 's/^/| /' conftest.$ac_ext >&5
3189
Benny Prijono0b462322008-03-12 22:44:24 +00003190ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003191fi
Benny Prijono0b462322008-03-12 22:44:24 +00003192rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003193 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003194LIBS=$ac_check_lib_save_LIBS
3195fi
Benny Prijono0b462322008-03-12 22:44:24 +00003196echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3197echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003198if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003199 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003200#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003201_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003202
3203 LIBS="-lsocket $LIBS"
3204
3205fi
3206
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003207
Benny Prijono0b462322008-03-12 22:44:24 +00003208echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3209echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003210if test "${ac_cv_lib_rt_puts+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213 ac_check_lib_save_LIBS=$LIBS
3214LIBS="-lrt $LIBS"
3215cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003216/* confdefs.h. */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003221
Benny Prijono0b462322008-03-12 22:44:24 +00003222/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003223#ifdef __cplusplus
3224extern "C"
3225#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003226/* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003228char puts ();
3229int
3230main ()
3231{
Benny Prijono0b462322008-03-12 22:44:24 +00003232puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003233 ;
3234 return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003240 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag"
3247 || test ! -s conftest.err'
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
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003259 ac_cv_lib_rt_puts=yes
3260else
3261 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003262sed 's/^/| /' conftest.$ac_ext >&5
3263
Benny Prijono0b462322008-03-12 22:44:24 +00003264ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003265fi
Benny Prijono0b462322008-03-12 22:44:24 +00003266rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003267 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003268LIBS=$ac_check_lib_save_LIBS
3269fi
Benny Prijono0b462322008-03-12 22:44:24 +00003270echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3271echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003272if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003273 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003274#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003275_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003276
3277 LIBS="-lrt $LIBS"
3278
3279fi
3280
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003281
Benny Prijono0b462322008-03-12 22:44:24 +00003282echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3283echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003284if test "${ac_cv_lib_nsl_puts+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 ac_check_lib_save_LIBS=$LIBS
3288LIBS="-lnsl $LIBS"
3289cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003295
Benny Prijono0b462322008-03-12 22:44:24 +00003296/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003297#ifdef __cplusplus
3298extern "C"
3299#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003300/* We use char because int might match the return type of a gcc2
3301 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003302char puts ();
3303int
3304main ()
3305{
Benny Prijono0b462322008-03-12 22:44:24 +00003306puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003307 ;
3308 return 0;
3309}
3310_ACEOF
3311rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3313 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003314 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag"
3321 || test ! -s conftest.err'
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
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest$ac_exeext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003333 ac_cv_lib_nsl_puts=yes
3334else
3335 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003336sed 's/^/| /' conftest.$ac_ext >&5
3337
Benny Prijono0b462322008-03-12 22:44:24 +00003338ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003339fi
Benny Prijono0b462322008-03-12 22:44:24 +00003340rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003341 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003342LIBS=$ac_check_lib_save_LIBS
3343fi
Benny Prijono0b462322008-03-12 22:44:24 +00003344echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3345echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003346if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003347 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003348#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003349_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003350
3351 LIBS="-lnsl $LIBS"
3352
3353fi
3354
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003355
Benny Prijono0b462322008-03-12 22:44:24 +00003356echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3357echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003358if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 ac_check_lib_save_LIBS=$LIBS
3362LIBS="-luuid $LIBS"
3363cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369
Benny Prijono0b462322008-03-12 22:44:24 +00003370/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003371#ifdef __cplusplus
3372extern "C"
3373#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003374/* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003376char uuid_generate ();
3377int
3378main ()
3379{
Benny Prijono0b462322008-03-12 22:44:24 +00003380uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003381 ;
3382 return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3387 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003393 (exit $ac_status); } &&
3394 { ac_try='test -z "$ac_c_werror_flag"
3395 || test ! -s conftest.err'
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); }; } &&
3401 { ac_try='test -s conftest$ac_exeext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003407 ac_cv_lib_uuid_uuid_generate=yes
3408else
3409 echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
Benny Prijono0b462322008-03-12 22:44:24 +00003412ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003413fi
Benny Prijono0b462322008-03-12 22:44:24 +00003414rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003415 conftest$ac_exeext conftest.$ac_ext
3416LIBS=$ac_check_lib_save_LIBS
3417fi
Benny Prijono0b462322008-03-12 22:44:24 +00003418echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3419echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003420if test $ac_cv_lib_uuid_uuid_generate = yes; then
3421 cat >>confdefs.h <<_ACEOF
3422#define HAVE_LIBUUID 1
3423_ACEOF
3424
3425 LIBS="-luuid $LIBS"
3426
3427fi
3428
Benny Prijono0b462322008-03-12 22:44:24 +00003429echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3430echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003431if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 ac_check_lib_save_LIBS=$LIBS
3435LIBS="-luuid $LIBS"
3436cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442
Benny Prijono0b462322008-03-12 22:44:24 +00003443/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003444#ifdef __cplusplus
3445extern "C"
3446#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003447/* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003449char uuid_generate ();
3450int
3451main ()
3452{
Benny Prijono0b462322008-03-12 22:44:24 +00003453uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
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); }; } &&
3474 { ac_try='test -s conftest$ac_exeext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003480 ac_cv_lib_uuid_uuid_generate=yes
3481else
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
Benny Prijono0b462322008-03-12 22:44:24 +00003485ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003486fi
Benny Prijono0b462322008-03-12 22:44:24 +00003487rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003488 conftest$ac_exeext conftest.$ac_ext
3489LIBS=$ac_check_lib_save_LIBS
3490fi
Benny Prijono0b462322008-03-12 22:44:24 +00003491echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3492echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003493if test $ac_cv_lib_uuid_uuid_generate = yes; then
3494 ac_has_uuid_lib=1
3495fi
3496
3497
Benny Prijono0b462322008-03-12 22:44:24 +00003498echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3499echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003500cat >>confdefs.h <<_ACEOF
3501#define PJ_M_NAME "$target_cpu"
3502_ACEOF
3503
3504
Benny Prijono0b462322008-03-12 22:44:24 +00003505echo "$as_me:$LINENO: checking memory alignment" >&5
3506echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003507case $target in
3508 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003509 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003510#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003511_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003512
Benny Prijono0b462322008-03-12 22:44:24 +00003513 echo "$as_me:$LINENO: result: 8 bytes" >&5
3514echo "${ECHO_T}8 bytes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003515 ;;
3516 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003517 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003518#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003519_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003520
Benny Prijono0b462322008-03-12 22:44:24 +00003521 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
3522echo "${ECHO_T}4 bytes (default)" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003523 ;;
3524esac
3525
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003526
Benny Prijono0b462322008-03-12 22:44:24 +00003527echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3528echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003529if test "${ac_cv_c_bigendian+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003532 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003533cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003539#include <sys/types.h>
3540#include <sys/param.h>
3541
3542int
3543main ()
3544{
Benny Prijono0b462322008-03-12 22:44:24 +00003545#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003546 bogus endian macros
3547#endif
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003556 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
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
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003575 # It does; now see whether it defined to BIG_ENDIAN or not.
3576cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003582#include <sys/types.h>
3583#include <sys/param.h>
3584
3585int
3586main ()
3587{
3588#if BYTE_ORDER != BIG_ENDIAN
3589 not big endian
3590#endif
3591
3592 ;
3593 return 0;
3594}
3595_ACEOF
3596rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003599 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
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
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003618 ac_cv_c_bigendian=yes
3619else
3620 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003621sed 's/^/| /' conftest.$ac_ext >&5
3622
Benny Prijono0b462322008-03-12 22:44:24 +00003623ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003624fi
Benny Prijono0b462322008-03-12 22:44:24 +00003625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003626else
3627 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003628sed 's/^/| /' conftest.$ac_ext >&5
3629
Benny Prijono0b462322008-03-12 22:44:24 +00003630# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003632 # try to guess the endianness by grepping values into an object file
3633 ac_cv_c_bigendian=unknown
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
Benny Prijono0b462322008-03-12 22:44:24 +00003640short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3641short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003642void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Benny Prijono0b462322008-03-12 22:44:24 +00003643short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3644short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003645void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3646int
3647main ()
3648{
3649 _ascii (); _ebcdic ();
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_c_werror_flag"
3664 || test ! -s conftest.err'
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); }; } &&
3670 { ac_try='test -s conftest.$ac_objext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3677 ac_cv_c_bigendian=yes
3678fi
3679if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3680 if test "$ac_cv_c_bigendian" = unknown; then
3681 ac_cv_c_bigendian=no
3682 else
3683 # finding both strings is unlikely to happen, but who knows?
3684 ac_cv_c_bigendian=unknown
3685 fi
3686fi
3687else
3688 echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691fi
Benny Prijono0b462322008-03-12 22:44:24 +00003692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003693else
3694 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003695/* confdefs.h. */
3696_ACEOF
3697cat confdefs.h >>conftest.$ac_ext
3698cat >>conftest.$ac_ext <<_ACEOF
3699/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003700int
3701main ()
3702{
3703 /* Are we little or big endian? From Harbison&Steele. */
3704 union
3705 {
Benny Prijono0b462322008-03-12 22:44:24 +00003706 long l;
3707 char c[sizeof (long)];
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003708 } u;
3709 u.l = 1;
Benny Prijono0b462322008-03-12 22:44:24 +00003710 exit (u.c[sizeof (long) - 1] == 1);
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003711}
3712_ACEOF
3713rm -f conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3715 (eval $ac_link) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003716 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono0b462322008-03-12 22:44:24 +00003719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003721 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003723 (exit $ac_status); }; }; then
3724 ac_cv_c_bigendian=no
3725else
3726 echo "$as_me: program exited with status $ac_status" >&5
3727echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003731ac_cv_c_bigendian=yes
3732fi
Benny Prijono0b462322008-03-12 22:44:24 +00003733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003734fi
3735fi
Benny Prijono0b462322008-03-12 22:44:24 +00003736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003737fi
Benny Prijono0b462322008-03-12 22:44:24 +00003738echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3739echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003740case $ac_cv_c_bigendian in
3741 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003742
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003743cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003744#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003745_ACEOF
3746 ;;
3747 no)
3748 ;;
3749 *)
3750 { { echo "$as_me:$LINENO: error: unknown endianness
3751presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3752echo "$as_me: error: unknown endianness
3753presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3754 { (exit 1); exit 1; }; } ;;
3755esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003756
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757
3758case $target in
3759 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003760 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003762_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003764 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003765#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003766_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003767
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003768 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003770_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003771
3772 ;;
3773 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003776_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777
3778 ;;
3779 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003780 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003781#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003782_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783
3784 ;;
3785 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003786 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003787#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003788_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789
3790 ;;
3791 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003792 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003793#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003794_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003795
3796 ;;
3797 *)
3798 ;;
3799esac
3800
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003801
3802
3803
Benny Prijono0b462322008-03-12 22:44:24 +00003804# Check whether --enable-floating-point or --disable-floating-point was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003805if test "${enable_floating_point+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00003806 enableval="$enable_floating_point"
3807 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003808 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003809#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003810_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003811
Benny Prijono0b462322008-03-12 22:44:24 +00003812 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
3813echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003814 fi
3815else
3816
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003817 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003818#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003819_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003820
Benny Prijono0b462322008-03-12 22:44:24 +00003821 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
3822echo "${ECHO_T}Checking if floating point is disabled... no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003823
Benny Prijono0b462322008-03-12 22:44:24 +00003824echo "$as_me:$LINENO: checking for fmod in -lm" >&5
3825echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003826if test "${ac_cv_lib_m_fmod+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829 ac_check_lib_save_LIBS=$LIBS
3830LIBS="-lm $LIBS"
3831cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003832/* confdefs.h. */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003837
Benny Prijono0b462322008-03-12 22:44:24 +00003838/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003839#ifdef __cplusplus
3840extern "C"
3841#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003842/* We use char because int might match the return type of a gcc2
3843 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003844char fmod ();
3845int
3846main ()
3847{
Benny Prijono0b462322008-03-12 22:44:24 +00003848fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003849 ;
3850 return 0;
3851}
3852_ACEOF
3853rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003856 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
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
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest$ac_exeext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003875 ac_cv_lib_m_fmod=yes
3876else
3877 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003878sed 's/^/| /' conftest.$ac_ext >&5
3879
Benny Prijono0b462322008-03-12 22:44:24 +00003880ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003881fi
Benny Prijono0b462322008-03-12 22:44:24 +00003882rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003883 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003884LIBS=$ac_check_lib_save_LIBS
3885fi
Benny Prijono0b462322008-03-12 22:44:24 +00003886echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
3887echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003888if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003889 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003890#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003891_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003892
3893 LIBS="-lm $LIBS"
3894
3895fi
3896
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003897
Benny Prijono0b462322008-03-12 22:44:24 +00003898fi;
3899
3900
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3907echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3908# On Suns, sometimes $CPP names a directory.
3909if test -n "$CPP" && test -d "$CPP"; then
3910 CPP=
3911fi
3912if test -z "$CPP"; then
3913 if test "${ac_cv_prog_CPP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 # Double quotes because CPP needs to be expanded
3917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3918 do
3919 ac_preproc_ok=false
3920for ac_c_preproc_warn_flag in '' yes
3921do
3922 # Use a header file that comes with gcc, so configuring glibc
3923 # with a fresh cross-compiler works.
3924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925 # <limits.h> exists even on freestanding compilers.
3926 # On the NeXT, cc -E runs the code through the compiler's parser,
3927 # not just through cpp. "Syntax error" is here to catch this case.
3928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
3934#ifdef __STDC__
3935# include <limits.h>
3936#else
3937# include <assert.h>
3938#endif
3939 Syntax error
3940_ACEOF
3941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } >/dev/null; then
3949 if test -s conftest.err; then
3950 ac_cpp_err=$ac_c_preproc_warn_flag
3951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952 else
3953 ac_cpp_err=
3954 fi
3955else
3956 ac_cpp_err=yes
3957fi
3958if test -z "$ac_cpp_err"; then
3959 :
3960else
3961 echo "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 # Broken: fails on valid input.
3965continue
3966fi
3967rm -f conftest.err conftest.$ac_ext
3968
3969 # OK, works on sane cases. Now check whether non-existent headers
3970 # can be detected and how.
3971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h. */
3977#include <ac_nonexistent.h>
3978_ACEOF
3979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } >/dev/null; then
3987 if test -s conftest.err; then
3988 ac_cpp_err=$ac_c_preproc_warn_flag
3989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990 else
3991 ac_cpp_err=
3992 fi
3993else
3994 ac_cpp_err=yes
3995fi
3996if test -z "$ac_cpp_err"; then
3997 # Broken: success on invalid input.
3998continue
3999else
4000 echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 # Passes both tests.
4004ac_preproc_ok=:
4005break
4006fi
4007rm -f conftest.err conftest.$ac_ext
4008
4009done
4010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011rm -f conftest.err conftest.$ac_ext
4012if $ac_preproc_ok; then
4013 break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004014fi
4015
Benny Prijono0b462322008-03-12 22:44:24 +00004016 done
4017 ac_cv_prog_CPP=$CPP
4018
4019fi
4020 CPP=$ac_cv_prog_CPP
4021else
4022 ac_cv_prog_CPP=$CPP
4023fi
4024echo "$as_me:$LINENO: result: $CPP" >&5
4025echo "${ECHO_T}$CPP" >&6
4026ac_preproc_ok=false
4027for ac_c_preproc_warn_flag in '' yes
4028do
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041#ifdef __STDC__
4042# include <limits.h>
4043#else
4044# include <assert.h>
4045#endif
4046 Syntax error
4047_ACEOF
4048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } >/dev/null; then
4056 if test -s conftest.err; then
4057 ac_cpp_err=$ac_c_preproc_warn_flag
4058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059 else
4060 ac_cpp_err=
4061 fi
4062else
4063 ac_cpp_err=yes
4064fi
4065if test -z "$ac_cpp_err"; then
4066 :
4067else
4068 echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 # Broken: fails on valid input.
4072continue
4073fi
4074rm -f conftest.err conftest.$ac_ext
4075
4076 # OK, works on sane cases. Now check whether non-existent headers
4077 # can be detected and how.
4078 cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
4084#include <ac_nonexistent.h>
4085_ACEOF
4086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null; then
4094 if test -s conftest.err; then
4095 ac_cpp_err=$ac_c_preproc_warn_flag
4096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097 else
4098 ac_cpp_err=
4099 fi
4100else
4101 ac_cpp_err=yes
4102fi
4103if test -z "$ac_cpp_err"; then
4104 # Broken: success on invalid input.
4105continue
4106else
4107 echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 # Passes both tests.
4111ac_preproc_ok=:
4112break
4113fi
4114rm -f conftest.err conftest.$ac_ext
4115
4116done
4117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118rm -f conftest.err conftest.$ac_ext
4119if $ac_preproc_ok; then
4120 :
4121else
4122 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4123See \`config.log' for more details." >&5
4124echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4125See \`config.log' for more details." >&2;}
4126 { (exit 1); exit 1; }; }
4127fi
4128
4129ac_ext=c
4130ac_cpp='$CPP $CPPFLAGS'
4131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135
4136echo "$as_me:$LINENO: checking for egrep" >&5
4137echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4138if test "${ac_cv_prog_egrep+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4142 then ac_cv_prog_egrep='grep -E'
4143 else ac_cv_prog_egrep='egrep'
4144 fi
4145fi
4146echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4147echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4148 EGREP=$ac_cv_prog_egrep
4149
4150
4151echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4152echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4153if test "${ac_cv_header_stdc+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156 cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
4162#include <stdlib.h>
4163#include <stdarg.h>
4164#include <string.h>
4165#include <float.h>
4166
4167int
4168main ()
4169{
4170
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175rm -f conftest.$ac_objext
4176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -z "$ac_c_werror_flag"
4185 || test ! -s conftest.err'
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); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_header_stdc=yes
4198else
4199 echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
4202ac_cv_header_stdc=no
4203fi
4204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4205
4206if test $ac_cv_header_stdc = yes; then
4207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4208 cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
4214#include <string.h>
4215
4216_ACEOF
4217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "memchr" >/dev/null 2>&1; then
4219 :
4220else
4221 ac_cv_header_stdc=no
4222fi
4223rm -f conftest*
4224
4225fi
4226
4227if test $ac_cv_header_stdc = yes; then
4228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235#include <stdlib.h>
4236
4237_ACEOF
4238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 $EGREP "free" >/dev/null 2>&1; then
4240 :
4241else
4242 ac_cv_header_stdc=no
4243fi
4244rm -f conftest*
4245
4246fi
4247
4248if test $ac_cv_header_stdc = yes; then
4249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4250 if test "$cross_compiling" = yes; then
4251 :
4252else
4253 cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
4259#include <ctype.h>
4260#if ((' ' & 0x0FF) == 0x020)
4261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4263#else
4264# define ISLOWER(c) \
4265 (('a' <= (c) && (c) <= 'i') \
4266 || ('j' <= (c) && (c) <= 'r') \
4267 || ('s' <= (c) && (c) <= 'z'))
4268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269#endif
4270
4271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4272int
4273main ()
4274{
4275 int i;
4276 for (i = 0; i < 256; i++)
4277 if (XOR (islower (i), ISLOWER (i))
4278 || toupper (i) != TOUPPER (i))
4279 exit(2);
4280 exit (0);
4281}
4282_ACEOF
4283rm -f conftest$ac_exeext
4284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 :
4295else
4296 echo "$as_me: program exited with status $ac_status" >&5
4297echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300( exit $ac_status )
4301ac_cv_header_stdc=no
4302fi
4303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4304fi
4305fi
4306fi
4307echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4308echo "${ECHO_T}$ac_cv_header_stdc" >&6
4309if test $ac_cv_header_stdc = yes; then
4310
4311cat >>confdefs.h <<\_ACEOF
4312#define STDC_HEADERS 1
4313_ACEOF
4314
4315fi
4316
4317# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4328 inttypes.h stdint.h unistd.h
4329do
4330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4331echo "$as_me:$LINENO: checking for $ac_header" >&5
4332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4333if eval "test \"\${$as_ac_Header+set}\" = set"; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342$ac_includes_default
4343
4344#include <$ac_header>
4345_ACEOF
4346rm -f conftest.$ac_objext
4347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
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); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 eval "$as_ac_Header=yes"
4369else
4370 echo "$as_me: failed program was:" >&5
4371sed 's/^/| /' conftest.$ac_ext >&5
4372
4373eval "$as_ac_Header=no"
4374fi
4375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4379if test `eval echo '${'$as_ac_Header'}'` = yes; then
4380 cat >>confdefs.h <<_ACEOF
4381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4382_ACEOF
4383
4384fi
4385
4386done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004387
4388
4389if test "${ac_cv_header_arpa_inet_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004390 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4391echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004392if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394fi
Benny Prijono0b462322008-03-12 22:44:24 +00004395echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4396echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004397else
4398 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004399echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4400echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004401cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4407$ac_includes_default
4408#include <arpa/inet.h>
4409_ACEOF
4410rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004413 ac_status=$?
4414 grep -v '^ *+' conftest.er1 >conftest.err
4415 rm -f conftest.er1
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004418 (exit $ac_status); } &&
4419 { ac_try='test -z "$ac_c_werror_flag"
4420 || test ! -s conftest.err'
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); }; } &&
4426 { ac_try='test -s conftest.$ac_objext'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 (eval $ac_try) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004432 ac_header_compiler=yes
4433else
4434 echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
Benny Prijono0b462322008-03-12 22:44:24 +00004437ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004438fi
Benny Prijono0b462322008-03-12 22:44:24 +00004439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4441echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004442
4443# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004444echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4445echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004446cat >conftest.$ac_ext <<_ACEOF
4447/* confdefs.h. */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h. */
4452#include <arpa/inet.h>
4453_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004461 (exit $ac_status); } >/dev/null; then
4462 if test -s conftest.err; then
4463 ac_cpp_err=$ac_c_preproc_warn_flag
4464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4465 else
4466 ac_cpp_err=
4467 fi
4468else
4469 ac_cpp_err=yes
4470fi
4471if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004472 ac_header_preproc=yes
4473else
4474 echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 ac_header_preproc=no
4478fi
4479rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4481echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004482
4483# So? What about this header?
4484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4485 yes:no: )
4486 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4487echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4489echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4490 ac_header_preproc=yes
4491 ;;
4492 no:yes:* )
4493 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4494echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4496echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4498echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4500echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4502echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4504echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004505 (
4506 cat <<\_ASBOX
4507## ------------------------------------ ##
4508## Report this to the pjproject lists. ##
4509## ------------------------------------ ##
4510_ASBOX
4511 ) |
4512 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004513 ;;
4514esac
Benny Prijono0b462322008-03-12 22:44:24 +00004515echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4516echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004517if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004519else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004520 ac_cv_header_arpa_inet_h=$ac_header_preproc
4521fi
Benny Prijono0b462322008-03-12 22:44:24 +00004522echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4523echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004524
4525fi
4526if test $ac_cv_header_arpa_inet_h = yes; then
4527 cat >>confdefs.h <<\_ACEOF
4528#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004529_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004530
4531fi
4532
4533
4534if test "${ac_cv_header_assert_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004535 echo "$as_me:$LINENO: checking for assert.h" >&5
4536echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004537if test "${ac_cv_header_assert_h+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539fi
Benny Prijono0b462322008-03-12 22:44:24 +00004540echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4541echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004542else
4543 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004544echo "$as_me:$LINENO: checking assert.h usability" >&5
4545echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004546cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h. */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h. */
4552$ac_includes_default
4553#include <assert.h>
4554_ACEOF
4555rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004558 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004559 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004560 rm -f conftest.er1
4561 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
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); }; } &&
4571 { ac_try='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004577 ac_header_compiler=yes
4578else
4579 echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
Benny Prijono0b462322008-03-12 22:44:24 +00004582ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004583fi
Benny Prijono0b462322008-03-12 22:44:24 +00004584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4586echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004587
4588# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004589echo "$as_me:$LINENO: checking assert.h presence" >&5
4590echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004591cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
4597#include <assert.h>
4598_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004606 (exit $ac_status); } >/dev/null; then
4607 if test -s conftest.err; then
4608 ac_cpp_err=$ac_c_preproc_warn_flag
4609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4610 else
4611 ac_cpp_err=
4612 fi
4613else
4614 ac_cpp_err=yes
4615fi
4616if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004617 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004618else
4619 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004623fi
4624rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4626echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004627
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004628# So? What about this header?
4629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4630 yes:no: )
4631 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4632echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4633 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4634echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4635 ac_header_preproc=yes
4636 ;;
4637 no:yes:* )
4638 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4639echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4641echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4643echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4645echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4647echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4648 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4649echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004650 (
4651 cat <<\_ASBOX
4652## ------------------------------------ ##
4653## Report this to the pjproject lists. ##
4654## ------------------------------------ ##
4655_ASBOX
4656 ) |
4657 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004658 ;;
4659esac
Benny Prijono0b462322008-03-12 22:44:24 +00004660echo "$as_me:$LINENO: checking for assert.h" >&5
4661echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004662if test "${ac_cv_header_assert_h+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004664else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004665 ac_cv_header_assert_h=$ac_header_preproc
4666fi
Benny Prijono0b462322008-03-12 22:44:24 +00004667echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4668echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004669
4670fi
4671if test $ac_cv_header_assert_h = yes; then
4672 cat >>confdefs.h <<\_ACEOF
4673#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004674_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004675
4676fi
4677
4678
4679if test "${ac_cv_header_ctype_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004680 echo "$as_me:$LINENO: checking for ctype.h" >&5
4681echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004682if test "${ac_cv_header_ctype_h+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684fi
Benny Prijono0b462322008-03-12 22:44:24 +00004685echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4686echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004687else
4688 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004689echo "$as_me:$LINENO: checking ctype.h usability" >&5
4690echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004691cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h. */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h. */
4697$ac_includes_default
4698#include <ctype.h>
4699_ACEOF
4700rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004703 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004704 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004705 rm -f conftest.er1
4706 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
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); }; } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004722 ac_header_compiler=yes
4723else
4724 echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
Benny Prijono0b462322008-03-12 22:44:24 +00004727ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004728fi
Benny Prijono0b462322008-03-12 22:44:24 +00004729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004732
4733# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004734echo "$as_me:$LINENO: checking ctype.h presence" >&5
4735echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004736cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
4742#include <ctype.h>
4743_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004751 (exit $ac_status); } >/dev/null; then
4752 if test -s conftest.err; then
4753 ac_cpp_err=$ac_c_preproc_warn_flag
4754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4755 else
4756 ac_cpp_err=
4757 fi
4758else
4759 ac_cpp_err=yes
4760fi
4761if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004762 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004763else
4764 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004765sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004768fi
4769rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4771echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004772
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004773# So? What about this header?
4774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4775 yes:no: )
4776 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4777echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4779echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4780 ac_header_preproc=yes
4781 ;;
4782 no:yes:* )
4783 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4784echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4786echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4788echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4789 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4790echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4791 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4792echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4794echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004795 (
4796 cat <<\_ASBOX
4797## ------------------------------------ ##
4798## Report this to the pjproject lists. ##
4799## ------------------------------------ ##
4800_ASBOX
4801 ) |
4802 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004803 ;;
4804esac
Benny Prijono0b462322008-03-12 22:44:24 +00004805echo "$as_me:$LINENO: checking for ctype.h" >&5
4806echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004807if test "${ac_cv_header_ctype_h+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004809else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004810 ac_cv_header_ctype_h=$ac_header_preproc
4811fi
Benny Prijono0b462322008-03-12 22:44:24 +00004812echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4813echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004814
4815fi
4816if test $ac_cv_header_ctype_h = yes; then
4817 cat >>confdefs.h <<\_ACEOF
4818#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004819_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004820
4821fi
4822
4823
4824
4825case $target in
4826 *mingw* | *cygw* | *win32* | *w32* )
4827 cat >>confdefs.h <<\_ACEOF
4828#define PJ_HAS_ERRNO_H 0
4829_ACEOF
4830
4831 ;;
4832 *)
4833 if test "${ac_cv_header_errno_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004834 echo "$as_me:$LINENO: checking for errno.h" >&5
4835echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004836if test "${ac_cv_header_errno_h+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838fi
Benny Prijono0b462322008-03-12 22:44:24 +00004839echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4840echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004841else
4842 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004843echo "$as_me:$LINENO: checking errno.h usability" >&5
4844echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004845cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h. */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h. */
4851$ac_includes_default
4852#include <errno.h>
4853_ACEOF
4854rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004857 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004858 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004859 rm -f conftest.er1
4860 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
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); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004876 ac_header_compiler=yes
4877else
4878 echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
Benny Prijono0b462322008-03-12 22:44:24 +00004881ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004882fi
Benny Prijono0b462322008-03-12 22:44:24 +00004883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4885echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004886
4887# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004888echo "$as_me:$LINENO: checking errno.h presence" >&5
4889echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004890cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896#include <errno.h>
4897_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004905 (exit $ac_status); } >/dev/null; then
4906 if test -s conftest.err; then
4907 ac_cpp_err=$ac_c_preproc_warn_flag
4908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4909 else
4910 ac_cpp_err=
4911 fi
4912else
4913 ac_cpp_err=yes
4914fi
4915if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004916 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004917else
4918 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004919sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004922fi
4923rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4925echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004926
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004927# So? What about this header?
4928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4929 yes:no: )
4930 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4931echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4933echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4934 ac_header_preproc=yes
4935 ;;
4936 no:yes:* )
4937 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4938echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4940echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4942echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4944echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4946echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4948echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004949 (
4950 cat <<\_ASBOX
4951## ------------------------------------ ##
4952## Report this to the pjproject lists. ##
4953## ------------------------------------ ##
4954_ASBOX
4955 ) |
4956 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004957 ;;
4958esac
Benny Prijono0b462322008-03-12 22:44:24 +00004959echo "$as_me:$LINENO: checking for errno.h" >&5
4960echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004961if test "${ac_cv_header_errno_h+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004963else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004964 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004965fi
Benny Prijono0b462322008-03-12 22:44:24 +00004966echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4967echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004968
4969fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004970if test $ac_cv_header_errno_h = yes; then
4971 cat >>confdefs.h <<\_ACEOF
4972#define PJ_HAS_ERRNO_H 1
4973_ACEOF
4974
4975fi
4976
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004977
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004978 ;;
4979esac
4980
Benny Prijono1d481ab2008-01-24 15:27:30 +00004981if test "${ac_cv_header_fcntl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004982 echo "$as_me:$LINENO: checking for fcntl.h" >&5
4983echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004984if test "${ac_cv_header_fcntl_h+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986fi
Benny Prijono0b462322008-03-12 22:44:24 +00004987echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
4988echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004989else
4990 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004991echo "$as_me:$LINENO: checking fcntl.h usability" >&5
4992echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004993cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h. */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h. */
4999$ac_includes_default
5000#include <fcntl.h>
5001_ACEOF
5002rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
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); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005024 ac_header_compiler=yes
5025else
5026 echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
Benny Prijono0b462322008-03-12 22:44:24 +00005029ac_header_compiler=no
Benny Prijono1d481ab2008-01-24 15:27:30 +00005030fi
Benny Prijono0b462322008-03-12 22:44:24 +00005031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5033echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005034
5035# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005036echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5037echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005038cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#include <fcntl.h>
5045_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005053 (exit $ac_status); } >/dev/null; then
5054 if test -s conftest.err; then
5055 ac_cpp_err=$ac_c_preproc_warn_flag
5056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5057 else
5058 ac_cpp_err=
5059 fi
5060else
5061 ac_cpp_err=yes
5062fi
5063if test -z "$ac_cpp_err"; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005064 ac_header_preproc=yes
5065else
5066 echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 ac_header_preproc=no
5070fi
Benny Prijono1d481ab2008-01-24 15:27:30 +00005071rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5073echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005074
5075# So? What about this header?
5076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5077 yes:no: )
5078 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5079echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5080 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5081echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5082 ac_header_preproc=yes
5083 ;;
5084 no:yes:* )
5085 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5086echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5088echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5090echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5092echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5094echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5096echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005097 (
5098 cat <<\_ASBOX
5099## ------------------------------------ ##
5100## Report this to the pjproject lists. ##
5101## ------------------------------------ ##
5102_ASBOX
5103 ) |
5104 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d481ab2008-01-24 15:27:30 +00005105 ;;
5106esac
Benny Prijono0b462322008-03-12 22:44:24 +00005107echo "$as_me:$LINENO: checking for fcntl.h" >&5
5108echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005109if test "${ac_cv_header_fcntl_h+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111else
5112 ac_cv_header_fcntl_h=$ac_header_preproc
5113fi
Benny Prijono0b462322008-03-12 22:44:24 +00005114echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5115echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005116
5117fi
5118if test $ac_cv_header_fcntl_h = yes; then
5119 cat >>confdefs.h <<\_ACEOF
5120#define PJ_HAS_FCNTL_H 1
5121_ACEOF
5122
5123fi
5124
5125
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005126if test "${ac_cv_header_linux_socket_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005127 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5128echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005129if test "${ac_cv_header_linux_socket_h+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131fi
Benny Prijono0b462322008-03-12 22:44:24 +00005132echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5133echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005134else
5135 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005136echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5137echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005138cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h. */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h. */
5144$ac_includes_default
5145#include <linux/socket.h>
5146_ACEOF
5147rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005155 (exit $ac_status); } &&
5156 { ac_try='test -z "$ac_c_werror_flag"
5157 || test ! -s conftest.err'
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); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005169 ac_header_compiler=yes
5170else
5171 echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
Benny Prijono0b462322008-03-12 22:44:24 +00005174ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005175fi
Benny Prijono0b462322008-03-12 22:44:24 +00005176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5178echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005179
5180# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005181echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5182echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005183cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h. */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h. */
5189#include <linux/socket.h>
5190_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005198 (exit $ac_status); } >/dev/null; then
5199 if test -s conftest.err; then
5200 ac_cpp_err=$ac_c_preproc_warn_flag
5201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5202 else
5203 ac_cpp_err=
5204 fi
5205else
5206 ac_cpp_err=yes
5207fi
5208if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005209 ac_header_preproc=yes
5210else
5211 echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 ac_header_preproc=no
5215fi
5216rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5218echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005219
5220# So? What about this header?
5221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5222 yes:no: )
5223 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5224echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5226echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5227 ac_header_preproc=yes
5228 ;;
5229 no:yes:* )
5230 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5231echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5233echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5235echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5237echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5239echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5241echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005242 (
5243 cat <<\_ASBOX
5244## ------------------------------------ ##
5245## Report this to the pjproject lists. ##
5246## ------------------------------------ ##
5247_ASBOX
5248 ) |
5249 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005250 ;;
5251esac
Benny Prijono0b462322008-03-12 22:44:24 +00005252echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5253echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005254if test "${ac_cv_header_linux_socket_h+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005256else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005257 ac_cv_header_linux_socket_h=$ac_header_preproc
5258fi
Benny Prijono0b462322008-03-12 22:44:24 +00005259echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5260echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005261
5262fi
5263if test $ac_cv_header_linux_socket_h = yes; then
5264 cat >>confdefs.h <<\_ACEOF
5265#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005266_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005267
5268fi
5269
5270
5271if test "${ac_cv_header_malloc_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005272 echo "$as_me:$LINENO: checking for malloc.h" >&5
5273echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005274if test "${ac_cv_header_malloc_h+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276fi
Benny Prijono0b462322008-03-12 22:44:24 +00005277echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5278echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005279else
5280 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005281echo "$as_me:$LINENO: checking malloc.h usability" >&5
5282echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005283cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289$ac_includes_default
5290#include <malloc.h>
5291_ACEOF
5292rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005295 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005296 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005297 rm -f conftest.er1
5298 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag"
5302 || test ! -s conftest.err'
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); }; } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005314 ac_header_compiler=yes
5315else
5316 echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
Benny Prijono0b462322008-03-12 22:44:24 +00005319ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005320fi
Benny Prijono0b462322008-03-12 22:44:24 +00005321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5323echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005324
5325# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005326echo "$as_me:$LINENO: checking malloc.h presence" >&5
5327echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005328cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334#include <malloc.h>
5335_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005343 (exit $ac_status); } >/dev/null; then
5344 if test -s conftest.err; then
5345 ac_cpp_err=$ac_c_preproc_warn_flag
5346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5347 else
5348 ac_cpp_err=
5349 fi
5350else
5351 ac_cpp_err=yes
5352fi
5353if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005354 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005355else
5356 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005357sed 's/^/| /' conftest.$ac_ext >&5
5358
5359 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005360fi
5361rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5363echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005364
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005365# So? What about this header?
5366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5367 yes:no: )
5368 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5369echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5371echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5372 ac_header_preproc=yes
5373 ;;
5374 no:yes:* )
5375 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5376echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5378echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5380echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5381 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5382echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5384echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5386echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005387 (
5388 cat <<\_ASBOX
5389## ------------------------------------ ##
5390## Report this to the pjproject lists. ##
5391## ------------------------------------ ##
5392_ASBOX
5393 ) |
5394 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005395 ;;
5396esac
Benny Prijono0b462322008-03-12 22:44:24 +00005397echo "$as_me:$LINENO: checking for malloc.h" >&5
5398echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005399if test "${ac_cv_header_malloc_h+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005401else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005402 ac_cv_header_malloc_h=$ac_header_preproc
5403fi
Benny Prijono0b462322008-03-12 22:44:24 +00005404echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5405echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005406
5407fi
5408if test $ac_cv_header_malloc_h = yes; then
5409 cat >>confdefs.h <<\_ACEOF
5410#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005411_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005412
5413fi
5414
5415
5416if test "${ac_cv_header_netdb_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005417 echo "$as_me:$LINENO: checking for netdb.h" >&5
5418echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005419if test "${ac_cv_header_netdb_h+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421fi
Benny Prijono0b462322008-03-12 22:44:24 +00005422echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5423echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005424else
5425 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005426echo "$as_me:$LINENO: checking netdb.h usability" >&5
5427echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005428cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h. */
5434$ac_includes_default
5435#include <netdb.h>
5436_ACEOF
5437rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005440 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005441 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005442 rm -f conftest.er1
5443 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
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); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005459 ac_header_compiler=yes
5460else
5461 echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
Benny Prijono0b462322008-03-12 22:44:24 +00005464ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005465fi
Benny Prijono0b462322008-03-12 22:44:24 +00005466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005469
5470# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005471echo "$as_me:$LINENO: checking netdb.h presence" >&5
5472echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005473cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479#include <netdb.h>
5480_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 else
5493 ac_cpp_err=
5494 fi
5495else
5496 ac_cpp_err=yes
5497fi
5498if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005499 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005500else
5501 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005505fi
5506rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5508echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005509
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005510# So? What about this header?
5511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5512 yes:no: )
5513 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5514echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5516echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5517 ac_header_preproc=yes
5518 ;;
5519 no:yes:* )
5520 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5521echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5523echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5525echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5527echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5529echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5531echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005532 (
5533 cat <<\_ASBOX
5534## ------------------------------------ ##
5535## Report this to the pjproject lists. ##
5536## ------------------------------------ ##
5537_ASBOX
5538 ) |
5539 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005540 ;;
5541esac
Benny Prijono0b462322008-03-12 22:44:24 +00005542echo "$as_me:$LINENO: checking for netdb.h" >&5
5543echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005544if test "${ac_cv_header_netdb_h+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005546else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005547 ac_cv_header_netdb_h=$ac_header_preproc
5548fi
Benny Prijono0b462322008-03-12 22:44:24 +00005549echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5550echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005551
5552fi
5553if test $ac_cv_header_netdb_h = yes; then
5554 cat >>confdefs.h <<\_ACEOF
5555#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005556_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005557
5558fi
5559
5560
Benny Prijono37fc9de2008-08-04 14:45:02 +00005561if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
5562 echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
5563echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6
5564if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566fi
5567echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
5568echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6
5569else
5570 # Is the header compilable?
5571echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5
5572echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6
5573cat >conftest.$ac_ext <<_ACEOF
5574/* confdefs.h. */
5575_ACEOF
5576cat confdefs.h >>conftest.$ac_ext
5577cat >>conftest.$ac_ext <<_ACEOF
5578/* end confdefs.h. */
5579$ac_includes_default
5580#include <netinet/in_systm.h>
5581_ACEOF
5582rm -f conftest.$ac_objext
5583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
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); }; } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_header_compiler=yes
5605else
5606 echo "$as_me: failed program was:" >&5
5607sed 's/^/| /' conftest.$ac_ext >&5
5608
5609ac_header_compiler=no
5610fi
5611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613echo "${ECHO_T}$ac_header_compiler" >&6
5614
5615# Is the header present?
5616echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5
5617echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6
5618cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h. */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h. */
5624#include <netinet/in_systm.h>
5625_ACEOF
5626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } >/dev/null; then
5634 if test -s conftest.err; then
5635 ac_cpp_err=$ac_c_preproc_warn_flag
5636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5637 else
5638 ac_cpp_err=
5639 fi
5640else
5641 ac_cpp_err=yes
5642fi
5643if test -z "$ac_cpp_err"; then
5644 ac_header_preproc=yes
5645else
5646 echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649 ac_header_preproc=no
5650fi
5651rm -f conftest.err conftest.$ac_ext
5652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653echo "${ECHO_T}$ac_header_preproc" >&6
5654
5655# So? What about this header?
5656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5657 yes:no: )
5658 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5
5659echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5
5661echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;}
5662 ac_header_preproc=yes
5663 ;;
5664 no:yes:* )
5665 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5
5666echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5
5668echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5
5670echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5
5672echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5
5674echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5
5676echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;}
5677 (
5678 cat <<\_ASBOX
5679## ------------------------------------ ##
5680## Report this to the pjproject lists. ##
5681## ------------------------------------ ##
5682_ASBOX
5683 ) |
5684 sed "s/^/$as_me: WARNING: /" >&2
5685 ;;
5686esac
5687echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
5688echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6
5689if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 ac_cv_header_netinet_in_systm_h=$ac_header_preproc
5693fi
5694echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
5695echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6
5696
5697fi
5698if test $ac_cv_header_netinet_in_systm_h = yes; then
5699 cat >>confdefs.h <<\_ACEOF
5700#define PJ_HAS_NETINET_IN_SYSTM_H 1
5701_ACEOF
5702
5703fi
5704
5705
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005706if test "${ac_cv_header_netinet_in_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005707 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5708echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005709if test "${ac_cv_header_netinet_in_h+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711fi
Benny Prijono0b462322008-03-12 22:44:24 +00005712echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5713echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005714else
5715 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005716echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5717echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005718cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h. */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */
5724$ac_includes_default
5725#include <netinet/in.h>
5726_ACEOF
5727rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005730 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005731 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005732 rm -f conftest.er1
5733 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
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); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005749 ac_header_compiler=yes
5750else
5751 echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
Benny Prijono0b462322008-03-12 22:44:24 +00005754ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005755fi
Benny Prijono0b462322008-03-12 22:44:24 +00005756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5758echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005759
5760# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005761echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5762echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005763cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h. */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h. */
5769#include <netinet/in.h>
5770_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005778 (exit $ac_status); } >/dev/null; then
5779 if test -s conftest.err; then
5780 ac_cpp_err=$ac_c_preproc_warn_flag
5781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5782 else
5783 ac_cpp_err=
5784 fi
5785else
5786 ac_cpp_err=yes
5787fi
5788if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005789 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005790else
5791 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005792sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005795fi
5796rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5798echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005799
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005800# So? What about this header?
5801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5802 yes:no: )
5803 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5804echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5805 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5806echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5807 ac_header_preproc=yes
5808 ;;
5809 no:yes:* )
5810 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5811echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5812 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5813echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5815echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5817echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5818 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5819echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5820 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5821echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005822 (
5823 cat <<\_ASBOX
5824## ------------------------------------ ##
5825## Report this to the pjproject lists. ##
5826## ------------------------------------ ##
5827_ASBOX
5828 ) |
5829 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005830 ;;
5831esac
Benny Prijono0b462322008-03-12 22:44:24 +00005832echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5833echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005834if test "${ac_cv_header_netinet_in_h+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005836else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005837 ac_cv_header_netinet_in_h=$ac_header_preproc
5838fi
Benny Prijono0b462322008-03-12 22:44:24 +00005839echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5840echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005841
5842fi
5843if test $ac_cv_header_netinet_in_h = yes; then
5844 cat >>confdefs.h <<\_ACEOF
5845#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005846_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005847
5848fi
5849
5850
Benny Prijono37fc9de2008-08-04 14:45:02 +00005851echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005852echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005853if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005855else
Benny Prijono37fc9de2008-08-04 14:45:02 +00005856 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonof63a2552007-02-01 00:36:52 +00005857/* confdefs.h. */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h. */
Benny Prijono37fc9de2008-08-04 14:45:02 +00005862#if PJ_HAS_NETINET_IN_SYSTM_H
5863 # include <netinet/in_systm.h>
5864 #endif
5865
5866
Benny Prijonof63a2552007-02-01 00:36:52 +00005867#include <netinet/ip.h>
5868_ACEOF
5869rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00005872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag"
5879 || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00005891 ac_cv_header_netinet_ip_h=yes
Benny Prijonof63a2552007-02-01 00:36:52 +00005892else
5893 echo "$as_me: failed program was:" >&5
5894sed 's/^/| /' conftest.$ac_ext >&5
5895
Benny Prijono37fc9de2008-08-04 14:45:02 +00005896ac_cv_header_netinet_ip_h=no
Benny Prijonof63a2552007-02-01 00:36:52 +00005897fi
Benny Prijono0b462322008-03-12 22:44:24 +00005898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonof63a2552007-02-01 00:36:52 +00005899fi
Benny Prijono0b462322008-03-12 22:44:24 +00005900echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5901echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005902if test $ac_cv_header_netinet_ip_h = yes; then
5903 cat >>confdefs.h <<\_ACEOF
5904#define PJ_HAS_NETINET_IP_H 1
5905_ACEOF
5906
5907fi
5908
5909
Benny Prijono1d65f702007-12-03 04:03:17 +00005910if test "${ac_cv_header_ifaddrs_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005911 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5912echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005913if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915fi
Benny Prijono0b462322008-03-12 22:44:24 +00005916echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5917echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005918else
5919 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005920echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5921echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005922cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h. */
5928$ac_includes_default
5929#include <ifaddrs.h>
5930_ACEOF
5931rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00005934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
Benny Prijono1d65f702007-12-03 04:03:17 +00005953 ac_header_compiler=yes
5954else
5955 echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
Benny Prijono0b462322008-03-12 22:44:24 +00005958ac_header_compiler=no
Benny Prijono1d65f702007-12-03 04:03:17 +00005959fi
Benny Prijono0b462322008-03-12 22:44:24 +00005960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5962echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005963
5964# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005965echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5966echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005967cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
5973#include <ifaddrs.h>
5974_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00005977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005982 (exit $ac_status); } >/dev/null; then
5983 if test -s conftest.err; then
5984 ac_cpp_err=$ac_c_preproc_warn_flag
5985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5986 else
5987 ac_cpp_err=
5988 fi
5989else
5990 ac_cpp_err=yes
5991fi
5992if test -z "$ac_cpp_err"; then
Benny Prijono1d65f702007-12-03 04:03:17 +00005993 ac_header_preproc=yes
5994else
5995 echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_header_preproc=no
5999fi
6000rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6002echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006003
6004# So? What about this header?
6005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6006 yes:no: )
6007 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6008echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6009 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6010echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6011 ac_header_preproc=yes
6012 ;;
6013 no:yes:* )
6014 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6015echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6017echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6019echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6021echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6023echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6025echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006026 (
6027 cat <<\_ASBOX
6028## ------------------------------------ ##
6029## Report this to the pjproject lists. ##
6030## ------------------------------------ ##
6031_ASBOX
6032 ) |
6033 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d65f702007-12-03 04:03:17 +00006034 ;;
6035esac
Benny Prijono0b462322008-03-12 22:44:24 +00006036echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6037echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006038if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 ac_cv_header_ifaddrs_h=$ac_header_preproc
6042fi
Benny Prijono0b462322008-03-12 22:44:24 +00006043echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6044echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006045
6046fi
6047if test $ac_cv_header_ifaddrs_h = yes; then
6048 cat >>confdefs.h <<\_ACEOF
6049#define PJ_HAS_IFADDRS_H 1
6050_ACEOF
6051
6052fi
6053
6054
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006055if test "${ac_cv_header_semaphore_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006056 echo "$as_me:$LINENO: checking for semaphore.h" >&5
6057echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006058if test "${ac_cv_header_semaphore_h+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060fi
Benny Prijono0b462322008-03-12 22:44:24 +00006061echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6062echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006063else
6064 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006065echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6066echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006067cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
6073$ac_includes_default
6074#include <semaphore.h>
6075_ACEOF
6076rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006098 ac_header_compiler=yes
6099else
6100 echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
Benny Prijono0b462322008-03-12 22:44:24 +00006103ac_header_compiler=no
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006104fi
Benny Prijono0b462322008-03-12 22:44:24 +00006105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6107echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006108
6109# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006110echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6111echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006112cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h. */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h. */
6118#include <semaphore.h>
6119_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006127 (exit $ac_status); } >/dev/null; then
6128 if test -s conftest.err; then
6129 ac_cpp_err=$ac_c_preproc_warn_flag
6130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6131 else
6132 ac_cpp_err=
6133 fi
6134else
6135 ac_cpp_err=yes
6136fi
6137if test -z "$ac_cpp_err"; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006138 ac_header_preproc=yes
6139else
6140 echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_header_preproc=no
6144fi
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006145rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6147echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006148
6149# So? What about this header?
6150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6151 yes:no: )
6152 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6153echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6154 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6155echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6156 ac_header_preproc=yes
6157 ;;
6158 no:yes:* )
6159 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6160echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6162echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6163 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6164echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6165 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6166echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6167 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6168echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6170echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006171 (
6172 cat <<\_ASBOX
6173## ------------------------------------ ##
6174## Report this to the pjproject lists. ##
6175## ------------------------------------ ##
6176_ASBOX
6177 ) |
6178 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006179 ;;
6180esac
Benny Prijono0b462322008-03-12 22:44:24 +00006181echo "$as_me:$LINENO: checking for semaphore.h" >&5
6182echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006183if test "${ac_cv_header_semaphore_h+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 ac_cv_header_semaphore_h=$ac_header_preproc
6187fi
Benny Prijono0b462322008-03-12 22:44:24 +00006188echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6189echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006190
6191fi
6192if test $ac_cv_header_semaphore_h = yes; then
6193 cat >>confdefs.h <<\_ACEOF
6194#define PJ_HAS_SEMAPHORE_H 1
6195_ACEOF
6196
6197fi
6198
6199
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006200if test "${ac_cv_header_setjmp_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006201 echo "$as_me:$LINENO: checking for setjmp.h" >&5
6202echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006203if test "${ac_cv_header_setjmp_h+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205fi
Benny Prijono0b462322008-03-12 22:44:24 +00006206echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6207echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006208else
6209 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006210echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6211echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006212cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h. */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h. */
6218$ac_includes_default
6219#include <setjmp.h>
6220_ACEOF
6221rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006224 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006225 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006226 rm -f conftest.er1
6227 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006243 ac_header_compiler=yes
6244else
6245 echo "$as_me: failed program was:" >&5
6246sed 's/^/| /' conftest.$ac_ext >&5
6247
Benny Prijono0b462322008-03-12 22:44:24 +00006248ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006249fi
Benny Prijono0b462322008-03-12 22:44:24 +00006250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6252echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006253
6254# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006255echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6256echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006257cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h. */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h. */
6263#include <setjmp.h>
6264_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006272 (exit $ac_status); } >/dev/null; then
6273 if test -s conftest.err; then
6274 ac_cpp_err=$ac_c_preproc_warn_flag
6275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6276 else
6277 ac_cpp_err=
6278 fi
6279else
6280 ac_cpp_err=yes
6281fi
6282if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006283 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006284else
6285 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006286sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006289fi
6290rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6292echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006293
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006294# So? What about this header?
6295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6296 yes:no: )
6297 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6298echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6300echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6301 ac_header_preproc=yes
6302 ;;
6303 no:yes:* )
6304 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6305echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6307echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6309echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6310 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6311echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6313echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6315echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006316 (
6317 cat <<\_ASBOX
6318## ------------------------------------ ##
6319## Report this to the pjproject lists. ##
6320## ------------------------------------ ##
6321_ASBOX
6322 ) |
6323 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006324 ;;
6325esac
Benny Prijono0b462322008-03-12 22:44:24 +00006326echo "$as_me:$LINENO: checking for setjmp.h" >&5
6327echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006328if test "${ac_cv_header_setjmp_h+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006330else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006331 ac_cv_header_setjmp_h=$ac_header_preproc
6332fi
Benny Prijono0b462322008-03-12 22:44:24 +00006333echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6334echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006335
6336fi
6337if test $ac_cv_header_setjmp_h = yes; then
6338 cat >>confdefs.h <<\_ACEOF
6339#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006340_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006341
6342fi
6343
6344
6345if test "${ac_cv_header_stdarg_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006346 echo "$as_me:$LINENO: checking for stdarg.h" >&5
6347echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006348if test "${ac_cv_header_stdarg_h+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350fi
Benny Prijono0b462322008-03-12 22:44:24 +00006351echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6352echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006353else
6354 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006355echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6356echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006357cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h. */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h. */
6363$ac_includes_default
6364#include <stdarg.h>
6365_ACEOF
6366rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006369 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006370 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006371 rm -f conftest.er1
6372 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 (eval $ac_try) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006388 ac_header_compiler=yes
6389else
6390 echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
Benny Prijono0b462322008-03-12 22:44:24 +00006393ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006394fi
Benny Prijono0b462322008-03-12 22:44:24 +00006395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6397echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006398
6399# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006400echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6401echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006402cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h. */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h. */
6408#include <stdarg.h>
6409_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006417 (exit $ac_status); } >/dev/null; then
6418 if test -s conftest.err; then
6419 ac_cpp_err=$ac_c_preproc_warn_flag
6420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6421 else
6422 ac_cpp_err=
6423 fi
6424else
6425 ac_cpp_err=yes
6426fi
6427if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006428 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006429else
6430 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006434fi
6435rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6437echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006438
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006439# So? What about this header?
6440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6441 yes:no: )
6442 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6443echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6445echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6446 ac_header_preproc=yes
6447 ;;
6448 no:yes:* )
6449 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6450echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6452echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6454echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6456echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6458echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6460echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006461 (
6462 cat <<\_ASBOX
6463## ------------------------------------ ##
6464## Report this to the pjproject lists. ##
6465## ------------------------------------ ##
6466_ASBOX
6467 ) |
6468 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006469 ;;
6470esac
Benny Prijono0b462322008-03-12 22:44:24 +00006471echo "$as_me:$LINENO: checking for stdarg.h" >&5
6472echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006473if test "${ac_cv_header_stdarg_h+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006475else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006476 ac_cv_header_stdarg_h=$ac_header_preproc
6477fi
Benny Prijono0b462322008-03-12 22:44:24 +00006478echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6479echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006480
6481fi
6482if test $ac_cv_header_stdarg_h = yes; then
6483 cat >>confdefs.h <<\_ACEOF
6484#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006485_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006486
6487fi
6488
6489
6490if test "${ac_cv_header_stddef_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006491 echo "$as_me:$LINENO: checking for stddef.h" >&5
6492echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006493if test "${ac_cv_header_stddef_h+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495fi
Benny Prijono0b462322008-03-12 22:44:24 +00006496echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6497echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006498else
6499 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006500echo "$as_me:$LINENO: checking stddef.h usability" >&5
6501echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006502cat >conftest.$ac_ext <<_ACEOF
6503/* confdefs.h. */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
6507/* end confdefs.h. */
6508$ac_includes_default
6509#include <stddef.h>
6510_ACEOF
6511rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006514 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006515 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006516 rm -f conftest.er1
6517 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006533 ac_header_compiler=yes
6534else
6535 echo "$as_me: failed program was:" >&5
6536sed 's/^/| /' conftest.$ac_ext >&5
6537
Benny Prijono0b462322008-03-12 22:44:24 +00006538ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006539fi
Benny Prijono0b462322008-03-12 22:44:24 +00006540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6542echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006543
6544# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006545echo "$as_me:$LINENO: checking stddef.h presence" >&5
6546echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006547cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h. */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h. */
6553#include <stddef.h>
6554_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006562 (exit $ac_status); } >/dev/null; then
6563 if test -s conftest.err; then
6564 ac_cpp_err=$ac_c_preproc_warn_flag
6565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6566 else
6567 ac_cpp_err=
6568 fi
6569else
6570 ac_cpp_err=yes
6571fi
6572if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006573 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006574else
6575 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006579fi
6580rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6582echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006583
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006584# So? What about this header?
6585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6586 yes:no: )
6587 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6588echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6589 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6590echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6591 ac_header_preproc=yes
6592 ;;
6593 no:yes:* )
6594 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6595echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6597echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6599echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6601echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6603echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6605echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006606 (
6607 cat <<\_ASBOX
6608## ------------------------------------ ##
6609## Report this to the pjproject lists. ##
6610## ------------------------------------ ##
6611_ASBOX
6612 ) |
6613 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006614 ;;
6615esac
Benny Prijono0b462322008-03-12 22:44:24 +00006616echo "$as_me:$LINENO: checking for stddef.h" >&5
6617echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006618if test "${ac_cv_header_stddef_h+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006620else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006621 ac_cv_header_stddef_h=$ac_header_preproc
6622fi
Benny Prijono0b462322008-03-12 22:44:24 +00006623echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6624echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006625
6626fi
6627if test $ac_cv_header_stddef_h = yes; then
6628 cat >>confdefs.h <<\_ACEOF
6629#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006630_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006631
6632fi
6633
6634
6635if test "${ac_cv_header_stdio_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006636 echo "$as_me:$LINENO: checking for stdio.h" >&5
6637echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006638if test "${ac_cv_header_stdio_h+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640fi
Benny Prijono0b462322008-03-12 22:44:24 +00006641echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6642echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006643else
6644 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006645echo "$as_me:$LINENO: checking stdio.h usability" >&5
6646echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006647cat >conftest.$ac_ext <<_ACEOF
6648/* confdefs.h. */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
6652/* end confdefs.h. */
6653$ac_includes_default
6654#include <stdio.h>
6655_ACEOF
6656rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006659 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006660 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006661 rm -f conftest.er1
6662 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006664 (exit $ac_status); } &&
6665 { ac_try='test -z "$ac_c_werror_flag"
6666 || test ! -s conftest.err'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 (eval $ac_try) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; } &&
6672 { ac_try='test -s conftest.$ac_objext'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 (eval $ac_try) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006678 ac_header_compiler=yes
6679else
6680 echo "$as_me: failed program was:" >&5
6681sed 's/^/| /' conftest.$ac_ext >&5
6682
Benny Prijono0b462322008-03-12 22:44:24 +00006683ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006684fi
Benny Prijono0b462322008-03-12 22:44:24 +00006685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6687echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006688
6689# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006690echo "$as_me:$LINENO: checking stdio.h presence" >&5
6691echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006692cat >conftest.$ac_ext <<_ACEOF
6693/* confdefs.h. */
6694_ACEOF
6695cat confdefs.h >>conftest.$ac_ext
6696cat >>conftest.$ac_ext <<_ACEOF
6697/* end confdefs.h. */
6698#include <stdio.h>
6699_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006707 (exit $ac_status); } >/dev/null; then
6708 if test -s conftest.err; then
6709 ac_cpp_err=$ac_c_preproc_warn_flag
6710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6711 else
6712 ac_cpp_err=
6713 fi
6714else
6715 ac_cpp_err=yes
6716fi
6717if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006718 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006719else
6720 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006724fi
6725rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6727echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006728
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006729# So? What about this header?
6730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6731 yes:no: )
6732 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6733echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6735echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6736 ac_header_preproc=yes
6737 ;;
6738 no:yes:* )
6739 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6740echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6742echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6744echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6745 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6746echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6747 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6748echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6750echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006751 (
6752 cat <<\_ASBOX
6753## ------------------------------------ ##
6754## Report this to the pjproject lists. ##
6755## ------------------------------------ ##
6756_ASBOX
6757 ) |
6758 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006759 ;;
6760esac
Benny Prijono0b462322008-03-12 22:44:24 +00006761echo "$as_me:$LINENO: checking for stdio.h" >&5
6762echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006763if test "${ac_cv_header_stdio_h+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006765else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006766 ac_cv_header_stdio_h=$ac_header_preproc
6767fi
Benny Prijono0b462322008-03-12 22:44:24 +00006768echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6769echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006770
6771fi
6772if test $ac_cv_header_stdio_h = yes; then
6773 cat >>confdefs.h <<\_ACEOF
6774#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006775_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006776
6777fi
6778
6779
Benny Prijonofdafd402008-01-23 14:34:46 +00006780if test "${ac_cv_header_stdint_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006781 echo "$as_me:$LINENO: checking for stdint.h" >&5
6782echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006783if test "${ac_cv_header_stdint_h+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785fi
Benny Prijono0b462322008-03-12 22:44:24 +00006786echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6787echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006788else
6789 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006790echo "$as_me:$LINENO: checking stdint.h usability" >&5
6791echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006792cat >conftest.$ac_ext <<_ACEOF
6793/* confdefs.h. */
6794_ACEOF
6795cat confdefs.h >>conftest.$ac_ext
6796cat >>conftest.$ac_ext <<_ACEOF
6797/* end confdefs.h. */
6798$ac_includes_default
6799#include <stdint.h>
6800_ACEOF
6801rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803 (eval $ac_compile) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006809 (exit $ac_status); } &&
6810 { ac_try='test -z "$ac_c_werror_flag"
6811 || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try='test -s conftest.$ac_objext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006823 ac_header_compiler=yes
6824else
6825 echo "$as_me: failed program was:" >&5
6826sed 's/^/| /' conftest.$ac_ext >&5
6827
Benny Prijono0b462322008-03-12 22:44:24 +00006828ac_header_compiler=no
Benny Prijonofdafd402008-01-23 14:34:46 +00006829fi
Benny Prijono0b462322008-03-12 22:44:24 +00006830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6832echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006833
6834# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006835echo "$as_me:$LINENO: checking stdint.h presence" >&5
6836echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006837cat >conftest.$ac_ext <<_ACEOF
6838/* confdefs.h. */
6839_ACEOF
6840cat confdefs.h >>conftest.$ac_ext
6841cat >>conftest.$ac_ext <<_ACEOF
6842/* end confdefs.h. */
6843#include <stdint.h>
6844_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006852 (exit $ac_status); } >/dev/null; then
6853 if test -s conftest.err; then
6854 ac_cpp_err=$ac_c_preproc_warn_flag
6855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6856 else
6857 ac_cpp_err=
6858 fi
6859else
6860 ac_cpp_err=yes
6861fi
6862if test -z "$ac_cpp_err"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006863 ac_header_preproc=yes
6864else
6865 echo "$as_me: failed program was:" >&5
6866sed 's/^/| /' conftest.$ac_ext >&5
6867
6868 ac_header_preproc=no
6869fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006870rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6872echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006873
6874# So? What about this header?
6875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6876 yes:no: )
6877 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6878echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6880echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6881 ac_header_preproc=yes
6882 ;;
6883 no:yes:* )
6884 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6885echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6886 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
6887echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6889echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6890 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
6891echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
6892 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6893echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6894 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6895echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006896 (
6897 cat <<\_ASBOX
6898## ------------------------------------ ##
6899## Report this to the pjproject lists. ##
6900## ------------------------------------ ##
6901_ASBOX
6902 ) |
6903 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijonofdafd402008-01-23 14:34:46 +00006904 ;;
6905esac
Benny Prijono0b462322008-03-12 22:44:24 +00006906echo "$as_me:$LINENO: checking for stdint.h" >&5
6907echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006908if test "${ac_cv_header_stdint_h+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 ac_cv_header_stdint_h=$ac_header_preproc
6912fi
Benny Prijono0b462322008-03-12 22:44:24 +00006913echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6914echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006915
6916fi
6917if test $ac_cv_header_stdint_h = yes; then
6918 cat >>confdefs.h <<\_ACEOF
6919#define PJ_HAS_STDINT_H 1
6920_ACEOF
6921
6922fi
6923
6924
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006925if test "${ac_cv_header_stdlib_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006926 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6927echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006928if test "${ac_cv_header_stdlib_h+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930fi
Benny Prijono0b462322008-03-12 22:44:24 +00006931echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6932echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006933else
6934 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006935echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6936echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006937cat >conftest.$ac_ext <<_ACEOF
6938/* confdefs.h. */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h. */
6943$ac_includes_default
6944#include <stdlib.h>
6945_ACEOF
6946rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006949 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006950 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006951 rm -f conftest.er1
6952 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest.$ac_objext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006968 ac_header_compiler=yes
6969else
6970 echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
Benny Prijono0b462322008-03-12 22:44:24 +00006973ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006974fi
Benny Prijono0b462322008-03-12 22:44:24 +00006975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6977echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006978
6979# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006980echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6981echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006982cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h. */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h. */
6988#include <stdlib.h>
6989_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006997 (exit $ac_status); } >/dev/null; then
6998 if test -s conftest.err; then
6999 ac_cpp_err=$ac_c_preproc_warn_flag
7000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7001 else
7002 ac_cpp_err=
7003 fi
7004else
7005 ac_cpp_err=yes
7006fi
7007if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007008 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007009else
7010 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007014fi
7015rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7017echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007018
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007019# So? What about this header?
7020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7021 yes:no: )
7022 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7023echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7025echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7026 ac_header_preproc=yes
7027 ;;
7028 no:yes:* )
7029 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7030echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7032echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7033 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7034echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7035 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7036echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7037 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7038echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7039 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7040echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007041 (
7042 cat <<\_ASBOX
7043## ------------------------------------ ##
7044## Report this to the pjproject lists. ##
7045## ------------------------------------ ##
7046_ASBOX
7047 ) |
7048 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007049 ;;
7050esac
Benny Prijono0b462322008-03-12 22:44:24 +00007051echo "$as_me:$LINENO: checking for stdlib.h" >&5
7052echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007053if test "${ac_cv_header_stdlib_h+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007055else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007056 ac_cv_header_stdlib_h=$ac_header_preproc
7057fi
Benny Prijono0b462322008-03-12 22:44:24 +00007058echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7059echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007060
7061fi
7062if test $ac_cv_header_stdlib_h = yes; then
7063 cat >>confdefs.h <<\_ACEOF
7064#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007065_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007066
7067fi
7068
7069
7070if test "${ac_cv_header_string_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007071 echo "$as_me:$LINENO: checking for string.h" >&5
7072echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007073if test "${ac_cv_header_string_h+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075fi
Benny Prijono0b462322008-03-12 22:44:24 +00007076echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7077echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007078else
7079 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007080echo "$as_me:$LINENO: checking string.h usability" >&5
7081echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007082cat >conftest.$ac_ext <<_ACEOF
7083/* confdefs.h. */
7084_ACEOF
7085cat confdefs.h >>conftest.$ac_ext
7086cat >>conftest.$ac_ext <<_ACEOF
7087/* end confdefs.h. */
7088$ac_includes_default
7089#include <string.h>
7090_ACEOF
7091rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007094 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007095 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007096 rm -f conftest.er1
7097 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007099 (exit $ac_status); } &&
7100 { ac_try='test -z "$ac_c_werror_flag"
7101 || test ! -s conftest.err'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; } &&
7107 { ac_try='test -s conftest.$ac_objext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 (eval $ac_try) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007113 ac_header_compiler=yes
7114else
7115 echo "$as_me: failed program was:" >&5
7116sed 's/^/| /' conftest.$ac_ext >&5
7117
Benny Prijono0b462322008-03-12 22:44:24 +00007118ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007119fi
Benny Prijono0b462322008-03-12 22:44:24 +00007120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7122echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007123
7124# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007125echo "$as_me:$LINENO: checking string.h presence" >&5
7126echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007127cat >conftest.$ac_ext <<_ACEOF
7128/* confdefs.h. */
7129_ACEOF
7130cat confdefs.h >>conftest.$ac_ext
7131cat >>conftest.$ac_ext <<_ACEOF
7132/* end confdefs.h. */
7133#include <string.h>
7134_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007142 (exit $ac_status); } >/dev/null; then
7143 if test -s conftest.err; then
7144 ac_cpp_err=$ac_c_preproc_warn_flag
7145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7146 else
7147 ac_cpp_err=
7148 fi
7149else
7150 ac_cpp_err=yes
7151fi
7152if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007153 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007154else
7155 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007159fi
7160rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7162echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007163
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007164# So? What about this header?
7165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7166 yes:no: )
7167 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7168echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7169 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7170echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7171 ac_header_preproc=yes
7172 ;;
7173 no:yes:* )
7174 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7175echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7177echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7179echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7180 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7181echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7182 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7183echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7185echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007186 (
7187 cat <<\_ASBOX
7188## ------------------------------------ ##
7189## Report this to the pjproject lists. ##
7190## ------------------------------------ ##
7191_ASBOX
7192 ) |
7193 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007194 ;;
7195esac
Benny Prijono0b462322008-03-12 22:44:24 +00007196echo "$as_me:$LINENO: checking for string.h" >&5
7197echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007198if test "${ac_cv_header_string_h+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007200else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007201 ac_cv_header_string_h=$ac_header_preproc
7202fi
Benny Prijono0b462322008-03-12 22:44:24 +00007203echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7204echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007205
7206fi
7207if test $ac_cv_header_string_h = yes; then
7208 cat >>confdefs.h <<\_ACEOF
7209#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007210_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007211
7212fi
7213
7214
7215if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007216 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7217echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007218if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220fi
Benny Prijono0b462322008-03-12 22:44:24 +00007221echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7222echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007223else
7224 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007225echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7226echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007227cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h. */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h. */
7233$ac_includes_default
7234#include <sys/ioctl.h>
7235_ACEOF
7236rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007239 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007240 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007241 rm -f conftest.er1
7242 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag"
7246 || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest.$ac_objext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007258 ac_header_compiler=yes
7259else
7260 echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
Benny Prijono0b462322008-03-12 22:44:24 +00007263ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007264fi
Benny Prijono0b462322008-03-12 22:44:24 +00007265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7267echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007268
7269# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007270echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7271echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007272cat >conftest.$ac_ext <<_ACEOF
7273/* confdefs.h. */
7274_ACEOF
7275cat confdefs.h >>conftest.$ac_ext
7276cat >>conftest.$ac_ext <<_ACEOF
7277/* end confdefs.h. */
7278#include <sys/ioctl.h>
7279_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007287 (exit $ac_status); } >/dev/null; then
7288 if test -s conftest.err; then
7289 ac_cpp_err=$ac_c_preproc_warn_flag
7290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7291 else
7292 ac_cpp_err=
7293 fi
7294else
7295 ac_cpp_err=yes
7296fi
7297if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007298 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007299else
7300 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007304fi
7305rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7307echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007308
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007309# So? What about this header?
7310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7311 yes:no: )
7312 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7313echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7314 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7315echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7316 ac_header_preproc=yes
7317 ;;
7318 no:yes:* )
7319 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7320echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7321 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7322echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7323 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7324echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7326echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7327 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7328echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7329 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7330echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007331 (
7332 cat <<\_ASBOX
7333## ------------------------------------ ##
7334## Report this to the pjproject lists. ##
7335## ------------------------------------ ##
7336_ASBOX
7337 ) |
7338 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007339 ;;
7340esac
Benny Prijono0b462322008-03-12 22:44:24 +00007341echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7342echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007343if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007345else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007346 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7347fi
Benny Prijono0b462322008-03-12 22:44:24 +00007348echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7349echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007350
7351fi
7352if test $ac_cv_header_sys_ioctl_h = yes; then
7353 cat >>confdefs.h <<\_ACEOF
7354#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007355_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007356
7357fi
7358
7359
7360if test "${ac_cv_header_sys_select_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007361 echo "$as_me:$LINENO: checking for sys/select.h" >&5
7362echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007363if test "${ac_cv_header_sys_select_h+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365fi
Benny Prijono0b462322008-03-12 22:44:24 +00007366echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7367echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007368else
7369 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007370echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7371echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007372cat >conftest.$ac_ext <<_ACEOF
7373/* confdefs.h. */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h. */
7378$ac_includes_default
7379#include <sys/select.h>
7380_ACEOF
7381rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007384 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007385 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007386 rm -f conftest.er1
7387 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest.$ac_objext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007403 ac_header_compiler=yes
7404else
7405 echo "$as_me: failed program was:" >&5
7406sed 's/^/| /' conftest.$ac_ext >&5
7407
Benny Prijono0b462322008-03-12 22:44:24 +00007408ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007409fi
Benny Prijono0b462322008-03-12 22:44:24 +00007410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7412echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007413
7414# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007415echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7416echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007417cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h. */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h. */
7423#include <sys/select.h>
7424_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007427 ac_status=$?
7428 grep -v '^ *+' conftest.er1 >conftest.err
7429 rm -f conftest.er1
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007432 (exit $ac_status); } >/dev/null; then
7433 if test -s conftest.err; then
7434 ac_cpp_err=$ac_c_preproc_warn_flag
7435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7436 else
7437 ac_cpp_err=
7438 fi
7439else
7440 ac_cpp_err=yes
7441fi
7442if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007443 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007444else
7445 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007446sed 's/^/| /' conftest.$ac_ext >&5
7447
7448 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007449fi
7450rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7452echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007453
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007454# So? What about this header?
7455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7456 yes:no: )
7457 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7458echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7460echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7461 ac_header_preproc=yes
7462 ;;
7463 no:yes:* )
7464 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7465echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7467echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7469echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7470 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7471echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7473echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7475echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007476 (
7477 cat <<\_ASBOX
7478## ------------------------------------ ##
7479## Report this to the pjproject lists. ##
7480## ------------------------------------ ##
7481_ASBOX
7482 ) |
7483 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007484 ;;
7485esac
Benny Prijono0b462322008-03-12 22:44:24 +00007486echo "$as_me:$LINENO: checking for sys/select.h" >&5
7487echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007488if test "${ac_cv_header_sys_select_h+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007490else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007491 ac_cv_header_sys_select_h=$ac_header_preproc
7492fi
Benny Prijono0b462322008-03-12 22:44:24 +00007493echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7494echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007495
7496fi
7497if test $ac_cv_header_sys_select_h = yes; then
7498 cat >>confdefs.h <<\_ACEOF
7499#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007500_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007501
7502fi
7503
7504
7505if test "${ac_cv_header_sys_socket_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007506 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7507echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007508if test "${ac_cv_header_sys_socket_h+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510fi
Benny Prijono0b462322008-03-12 22:44:24 +00007511echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7512echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007513else
7514 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007515echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7516echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007517cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h. */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h. */
7523$ac_includes_default
7524#include <sys/socket.h>
7525_ACEOF
7526rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007529 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007530 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007531 rm -f conftest.er1
7532 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007534 (exit $ac_status); } &&
7535 { ac_try='test -z "$ac_c_werror_flag"
7536 || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 (eval $ac_try) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest.$ac_objext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007548 ac_header_compiler=yes
7549else
7550 echo "$as_me: failed program was:" >&5
7551sed 's/^/| /' conftest.$ac_ext >&5
7552
Benny Prijono0b462322008-03-12 22:44:24 +00007553ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007554fi
Benny Prijono0b462322008-03-12 22:44:24 +00007555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7557echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007558
7559# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007560echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7561echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007562cat >conftest.$ac_ext <<_ACEOF
7563/* confdefs.h. */
7564_ACEOF
7565cat confdefs.h >>conftest.$ac_ext
7566cat >>conftest.$ac_ext <<_ACEOF
7567/* end confdefs.h. */
7568#include <sys/socket.h>
7569_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007577 (exit $ac_status); } >/dev/null; then
7578 if test -s conftest.err; then
7579 ac_cpp_err=$ac_c_preproc_warn_flag
7580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7581 else
7582 ac_cpp_err=
7583 fi
7584else
7585 ac_cpp_err=yes
7586fi
7587if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007588 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007589else
7590 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007591sed 's/^/| /' conftest.$ac_ext >&5
7592
7593 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007594fi
7595rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7597echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007598
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007599# So? What about this header?
7600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7601 yes:no: )
7602 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7603echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7605echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7606 ac_header_preproc=yes
7607 ;;
7608 no:yes:* )
7609 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7610echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7612echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7614echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7616echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7618echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7620echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007621 (
7622 cat <<\_ASBOX
7623## ------------------------------------ ##
7624## Report this to the pjproject lists. ##
7625## ------------------------------------ ##
7626_ASBOX
7627 ) |
7628 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007629 ;;
7630esac
Benny Prijono0b462322008-03-12 22:44:24 +00007631echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7632echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007633if test "${ac_cv_header_sys_socket_h+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007635else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007636 ac_cv_header_sys_socket_h=$ac_header_preproc
7637fi
Benny Prijono0b462322008-03-12 22:44:24 +00007638echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7639echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007640
7641fi
7642if test $ac_cv_header_sys_socket_h = yes; then
7643 cat >>confdefs.h <<\_ACEOF
7644#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007645_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007646
7647fi
7648
7649
7650if test "${ac_cv_header_sys_time_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007651 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7652echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007653if test "${ac_cv_header_sys_time_h+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655fi
Benny Prijono0b462322008-03-12 22:44:24 +00007656echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7657echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007658else
7659 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007660echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7661echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007662cat >conftest.$ac_ext <<_ACEOF
7663/* confdefs.h. */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h. */
7668$ac_includes_default
7669#include <sys/time.h>
7670_ACEOF
7671rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007674 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007675 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007676 rm -f conftest.er1
7677 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007679 (exit $ac_status); } &&
7680 { ac_try='test -z "$ac_c_werror_flag"
7681 || test ! -s conftest.err'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 (eval $ac_try) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; } &&
7687 { ac_try='test -s conftest.$ac_objext'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007693 ac_header_compiler=yes
7694else
7695 echo "$as_me: failed program was:" >&5
7696sed 's/^/| /' conftest.$ac_ext >&5
7697
Benny Prijono0b462322008-03-12 22:44:24 +00007698ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007699fi
Benny Prijono0b462322008-03-12 22:44:24 +00007700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7702echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007703
7704# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007705echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7706echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007707cat >conftest.$ac_ext <<_ACEOF
7708/* confdefs.h. */
7709_ACEOF
7710cat confdefs.h >>conftest.$ac_ext
7711cat >>conftest.$ac_ext <<_ACEOF
7712/* end confdefs.h. */
7713#include <sys/time.h>
7714_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007722 (exit $ac_status); } >/dev/null; then
7723 if test -s conftest.err; then
7724 ac_cpp_err=$ac_c_preproc_warn_flag
7725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7726 else
7727 ac_cpp_err=
7728 fi
7729else
7730 ac_cpp_err=yes
7731fi
7732if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007733 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007734else
7735 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007736sed 's/^/| /' conftest.$ac_ext >&5
7737
7738 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007739fi
7740rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7742echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007743
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007744# So? What about this header?
7745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7746 yes:no: )
7747 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7748echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7749 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7750echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7751 ac_header_preproc=yes
7752 ;;
7753 no:yes:* )
7754 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7755echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7756 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7757echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7758 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7759echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7761echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7763echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7765echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007766 (
7767 cat <<\_ASBOX
7768## ------------------------------------ ##
7769## Report this to the pjproject lists. ##
7770## ------------------------------------ ##
7771_ASBOX
7772 ) |
7773 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007774 ;;
7775esac
Benny Prijono0b462322008-03-12 22:44:24 +00007776echo "$as_me:$LINENO: checking for sys/time.h" >&5
7777echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007778if test "${ac_cv_header_sys_time_h+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007780else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007781 ac_cv_header_sys_time_h=$ac_header_preproc
7782fi
Benny Prijono0b462322008-03-12 22:44:24 +00007783echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7784echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007785
7786fi
7787if test $ac_cv_header_sys_time_h = yes; then
7788 cat >>confdefs.h <<\_ACEOF
7789#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007790_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007791
7792fi
7793
7794
7795if test "${ac_cv_header_sys_timeb_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007796 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7797echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007798if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800fi
Benny Prijono0b462322008-03-12 22:44:24 +00007801echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7802echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007803else
7804 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007805echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7806echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007807cat >conftest.$ac_ext <<_ACEOF
7808/* confdefs.h. */
7809_ACEOF
7810cat confdefs.h >>conftest.$ac_ext
7811cat >>conftest.$ac_ext <<_ACEOF
7812/* end confdefs.h. */
7813$ac_includes_default
7814#include <sys/timeb.h>
7815_ACEOF
7816rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007819 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007820 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007821 rm -f conftest.er1
7822 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007838 ac_header_compiler=yes
7839else
7840 echo "$as_me: failed program was:" >&5
7841sed 's/^/| /' conftest.$ac_ext >&5
7842
Benny Prijono0b462322008-03-12 22:44:24 +00007843ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007844fi
Benny Prijono0b462322008-03-12 22:44:24 +00007845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7847echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007848
7849# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007850echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7851echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007852cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h. */
7858#include <sys/timeb.h>
7859_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007867 (exit $ac_status); } >/dev/null; then
7868 if test -s conftest.err; then
7869 ac_cpp_err=$ac_c_preproc_warn_flag
7870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7871 else
7872 ac_cpp_err=
7873 fi
7874else
7875 ac_cpp_err=yes
7876fi
7877if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007878 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007879else
7880 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007881sed 's/^/| /' conftest.$ac_ext >&5
7882
7883 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007884fi
7885rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7887echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007888
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007889# So? What about this header?
7890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7891 yes:no: )
7892 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7893echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7895echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7896 ac_header_preproc=yes
7897 ;;
7898 no:yes:* )
7899 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7900echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7902echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7904echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7906echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7908echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7910echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007911 (
7912 cat <<\_ASBOX
7913## ------------------------------------ ##
7914## Report this to the pjproject lists. ##
7915## ------------------------------------ ##
7916_ASBOX
7917 ) |
7918 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007919 ;;
7920esac
Benny Prijono0b462322008-03-12 22:44:24 +00007921echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7922echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007923if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007925else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007926 ac_cv_header_sys_timeb_h=$ac_header_preproc
7927fi
Benny Prijono0b462322008-03-12 22:44:24 +00007928echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7929echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007930
7931fi
7932if test $ac_cv_header_sys_timeb_h = yes; then
7933 cat >>confdefs.h <<\_ACEOF
7934#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007935_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007936
7937fi
7938
7939
7940if test "${ac_cv_header_sys_types_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007941 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7942echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007943if test "${ac_cv_header_sys_types_h+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945fi
Benny Prijono0b462322008-03-12 22:44:24 +00007946echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7947echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007948else
7949 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007950echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7951echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007952cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958$ac_includes_default
7959#include <sys/types.h>
7960_ACEOF
7961rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7963 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007964 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007965 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007966 rm -f conftest.er1
7967 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag"
7971 || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007983 ac_header_compiler=yes
7984else
7985 echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
Benny Prijono0b462322008-03-12 22:44:24 +00007988ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007989fi
Benny Prijono0b462322008-03-12 22:44:24 +00007990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7992echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007993
7994# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007995echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7996echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007997cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h. */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h. */
8003#include <sys/types.h>
8004_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8016 else
8017 ac_cpp_err=
8018 fi
8019else
8020 ac_cpp_err=yes
8021fi
8022if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008023 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008024else
8025 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008026sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008029fi
8030rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8032echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008033
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008034# So? What about this header?
8035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8036 yes:no: )
8037 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8038echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8040echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8041 ac_header_preproc=yes
8042 ;;
8043 no:yes:* )
8044 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8045echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8047echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8049echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8051echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8053echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8055echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008056 (
8057 cat <<\_ASBOX
8058## ------------------------------------ ##
8059## Report this to the pjproject lists. ##
8060## ------------------------------------ ##
8061_ASBOX
8062 ) |
8063 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008064 ;;
8065esac
Benny Prijono0b462322008-03-12 22:44:24 +00008066echo "$as_me:$LINENO: checking for sys/types.h" >&5
8067echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008068if test "${ac_cv_header_sys_types_h+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008070else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008071 ac_cv_header_sys_types_h=$ac_header_preproc
8072fi
Benny Prijono0b462322008-03-12 22:44:24 +00008073echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8074echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008075
8076fi
8077if test $ac_cv_header_sys_types_h = yes; then
8078 cat >>confdefs.h <<\_ACEOF
8079#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008080_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008081
8082fi
8083
8084
8085if test "${ac_cv_header_time_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008086 echo "$as_me:$LINENO: checking for time.h" >&5
8087echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008088if test "${ac_cv_header_time_h+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090fi
Benny Prijono0b462322008-03-12 22:44:24 +00008091echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8092echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008093else
8094 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008095echo "$as_me:$LINENO: checking time.h usability" >&5
8096echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008097cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
8103$ac_includes_default
8104#include <time.h>
8105_ACEOF
8106rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8108 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008109 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008110 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008111 rm -f conftest.er1
8112 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008114 (exit $ac_status); } &&
8115 { ac_try='test -z "$ac_c_werror_flag"
8116 || test ! -s conftest.err'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008128 ac_header_compiler=yes
8129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
Benny Prijono0b462322008-03-12 22:44:24 +00008133ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008134fi
Benny Prijono0b462322008-03-12 22:44:24 +00008135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8137echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008138
8139# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008140echo "$as_me:$LINENO: checking time.h presence" >&5
8141echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008142cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h. */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h. */
8148#include <time.h>
8149_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008157 (exit $ac_status); } >/dev/null; then
8158 if test -s conftest.err; then
8159 ac_cpp_err=$ac_c_preproc_warn_flag
8160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8161 else
8162 ac_cpp_err=
8163 fi
8164else
8165 ac_cpp_err=yes
8166fi
8167if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008168 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008169else
8170 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008171sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008174fi
8175rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008176echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8177echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008178
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008179# So? What about this header?
8180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8181 yes:no: )
8182 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8183echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
8185echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
8186 ac_header_preproc=yes
8187 ;;
8188 no:yes:* )
8189 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
8190echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
8192echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
8194echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
8196echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
8198echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
8200echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008201 (
8202 cat <<\_ASBOX
8203## ------------------------------------ ##
8204## Report this to the pjproject lists. ##
8205## ------------------------------------ ##
8206_ASBOX
8207 ) |
8208 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008209 ;;
8210esac
Benny Prijono0b462322008-03-12 22:44:24 +00008211echo "$as_me:$LINENO: checking for time.h" >&5
8212echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008213if test "${ac_cv_header_time_h+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008215else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008216 ac_cv_header_time_h=$ac_header_preproc
8217fi
Benny Prijono0b462322008-03-12 22:44:24 +00008218echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8219echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008220
8221fi
8222if test $ac_cv_header_time_h = yes; then
8223 cat >>confdefs.h <<\_ACEOF
8224#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008225_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008226
8227fi
8228
8229
8230if test "${ac_cv_header_unistd_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008231 echo "$as_me:$LINENO: checking for unistd.h" >&5
8232echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008233if test "${ac_cv_header_unistd_h+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235fi
Benny Prijono0b462322008-03-12 22:44:24 +00008236echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8237echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008238else
8239 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008240echo "$as_me:$LINENO: checking unistd.h usability" >&5
8241echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008242cat >conftest.$ac_ext <<_ACEOF
8243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
8248$ac_includes_default
8249#include <unistd.h>
8250_ACEOF
8251rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8253 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008254 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008255 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008256 rm -f conftest.er1
8257 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008259 (exit $ac_status); } &&
8260 { ac_try='test -z "$ac_c_werror_flag"
8261 || test ! -s conftest.err'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; } &&
8267 { ac_try='test -s conftest.$ac_objext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008273 ac_header_compiler=yes
8274else
8275 echo "$as_me: failed program was:" >&5
8276sed 's/^/| /' conftest.$ac_ext >&5
8277
Benny Prijono0b462322008-03-12 22:44:24 +00008278ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008279fi
Benny Prijono0b462322008-03-12 22:44:24 +00008280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8282echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008283
8284# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008285echo "$as_me:$LINENO: checking unistd.h presence" >&5
8286echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008287cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h. */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h. */
8293#include <unistd.h>
8294_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008302 (exit $ac_status); } >/dev/null; then
8303 if test -s conftest.err; then
8304 ac_cpp_err=$ac_c_preproc_warn_flag
8305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8306 else
8307 ac_cpp_err=
8308 fi
8309else
8310 ac_cpp_err=yes
8311fi
8312if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008313 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008314else
8315 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008316sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008319fi
8320rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8322echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008323
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008324# So? What about this header?
8325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8326 yes:no: )
8327 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8328echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8330echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8331 ac_header_preproc=yes
8332 ;;
8333 no:yes:* )
8334 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8335echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8336 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8337echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8338 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8339echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8340 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8341echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8343echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8345echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008346 (
8347 cat <<\_ASBOX
8348## ------------------------------------ ##
8349## Report this to the pjproject lists. ##
8350## ------------------------------------ ##
8351_ASBOX
8352 ) |
8353 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008354 ;;
8355esac
Benny Prijono0b462322008-03-12 22:44:24 +00008356echo "$as_me:$LINENO: checking for unistd.h" >&5
8357echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008358if test "${ac_cv_header_unistd_h+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008360else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008361 ac_cv_header_unistd_h=$ac_header_preproc
8362fi
Benny Prijono0b462322008-03-12 22:44:24 +00008363echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8364echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008365
8366fi
8367if test $ac_cv_header_unistd_h = yes; then
8368 cat >>confdefs.h <<\_ACEOF
8369#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008370_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008371
8372fi
8373
8374
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008375if test "${ac_cv_header_winsock_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008376 echo "$as_me:$LINENO: checking for winsock.h" >&5
8377echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008378if test "${ac_cv_header_winsock_h+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380fi
Benny Prijono0b462322008-03-12 22:44:24 +00008381echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8382echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008383else
8384 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008385echo "$as_me:$LINENO: checking winsock.h usability" >&5
8386echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008387cat >conftest.$ac_ext <<_ACEOF
8388/* confdefs.h. */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h. */
8393$ac_includes_default
8394#include <winsock.h>
8395_ACEOF
8396rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008399 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008400 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008401 rm -f conftest.er1
8402 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag"
8406 || test ! -s conftest.err'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 (eval $ac_try) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 (eval $ac_try) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008418 ac_header_compiler=yes
8419else
8420 echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
8422
Benny Prijono0b462322008-03-12 22:44:24 +00008423ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008424fi
Benny Prijono0b462322008-03-12 22:44:24 +00008425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008428
8429# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008430echo "$as_me:$LINENO: checking winsock.h presence" >&5
8431echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008432cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h. */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h. */
8438#include <winsock.h>
8439_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008447 (exit $ac_status); } >/dev/null; then
8448 if test -s conftest.err; then
8449 ac_cpp_err=$ac_c_preproc_warn_flag
8450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8451 else
8452 ac_cpp_err=
8453 fi
8454else
8455 ac_cpp_err=yes
8456fi
8457if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008458 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008459else
8460 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008464fi
8465rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8467echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008468
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008469# So? What about this header?
8470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8471 yes:no: )
8472 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8473echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8475echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8476 ac_header_preproc=yes
8477 ;;
8478 no:yes:* )
8479 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8480echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8482echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8484echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8486echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8488echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8490echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008491 (
8492 cat <<\_ASBOX
8493## ------------------------------------ ##
8494## Report this to the pjproject lists. ##
8495## ------------------------------------ ##
8496_ASBOX
8497 ) |
8498 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008499 ;;
8500esac
Benny Prijono0b462322008-03-12 22:44:24 +00008501echo "$as_me:$LINENO: checking for winsock.h" >&5
8502echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008503if test "${ac_cv_header_winsock_h+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008505else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008506 ac_cv_header_winsock_h=$ac_header_preproc
8507fi
Benny Prijono0b462322008-03-12 22:44:24 +00008508echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8509echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008510
8511fi
8512if test $ac_cv_header_winsock_h = yes; then
8513 cat >>confdefs.h <<\_ACEOF
8514#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008515_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008516
8517fi
8518
8519
8520if test "${ac_cv_header_winsock2_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008521 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8522echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008523if test "${ac_cv_header_winsock2_h+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525fi
Benny Prijono0b462322008-03-12 22:44:24 +00008526echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8527echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008528else
8529 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008530echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8531echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008532cat >conftest.$ac_ext <<_ACEOF
8533/* confdefs.h. */
8534_ACEOF
8535cat confdefs.h >>conftest.$ac_ext
8536cat >>conftest.$ac_ext <<_ACEOF
8537/* end confdefs.h. */
8538$ac_includes_default
8539#include <winsock2.h>
8540_ACEOF
8541rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8543 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008544 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008545 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008546 rm -f conftest.er1
8547 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag"
8551 || test ! -s conftest.err'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest.$ac_objext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008563 ac_header_compiler=yes
8564else
8565 echo "$as_me: failed program was:" >&5
8566sed 's/^/| /' conftest.$ac_ext >&5
8567
Benny Prijono0b462322008-03-12 22:44:24 +00008568ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008569fi
Benny Prijono0b462322008-03-12 22:44:24 +00008570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8572echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008573
8574# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008575echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8576echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008577cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583#include <winsock2.h>
8584_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008592 (exit $ac_status); } >/dev/null; then
8593 if test -s conftest.err; then
8594 ac_cpp_err=$ac_c_preproc_warn_flag
8595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8596 else
8597 ac_cpp_err=
8598 fi
8599else
8600 ac_cpp_err=yes
8601fi
8602if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008603 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008604else
8605 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008606sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008609fi
8610rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8612echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008613
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008614# So? What about this header?
8615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8616 yes:no: )
8617 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8618echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8620echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8621 ac_header_preproc=yes
8622 ;;
8623 no:yes:* )
8624 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8625echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8627echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8629echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8631echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8633echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8635echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008636 (
8637 cat <<\_ASBOX
8638## ------------------------------------ ##
8639## Report this to the pjproject lists. ##
8640## ------------------------------------ ##
8641_ASBOX
8642 ) |
8643 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008644 ;;
8645esac
Benny Prijono0b462322008-03-12 22:44:24 +00008646echo "$as_me:$LINENO: checking for winsock2.h" >&5
8647echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008648if test "${ac_cv_header_winsock2_h+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008650else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008651 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008652fi
Benny Prijono0b462322008-03-12 22:44:24 +00008653echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8654echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008655
8656fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008657if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008658 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008659#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008660_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008661
8662fi
8663
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008664
Benny Prijonoa9948e62008-03-25 14:03:01 +00008665echo "$as_me:$LINENO: checking for mswsock.h" >&5
8666echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
8667if test "${ac_cv_header_mswsock_h+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8669else
8670 cat >conftest.$ac_ext <<_ACEOF
8671/* confdefs.h. */
8672_ACEOF
8673cat confdefs.h >>conftest.$ac_ext
8674cat >>conftest.$ac_ext <<_ACEOF
8675/* end confdefs.h. */
8676#if PJ_HAS_WINSOCK2_H
8677 # include <winsock2.h>
8678 #elif PJ_HAS_WINSOCK_H
8679 # include <winsock.h>
8680 #endif
8681
8682
8683#include <mswsock.h>
8684_ACEOF
8685rm -f conftest.$ac_objext
8686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag"
8695 || test ! -s conftest.err'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest.$ac_objext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_cv_header_mswsock_h=yes
8708else
8709 echo "$as_me: failed program was:" >&5
8710sed 's/^/| /' conftest.$ac_ext >&5
8711
8712ac_cv_header_mswsock_h=no
8713fi
8714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8715fi
8716echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8717echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
8718if test $ac_cv_header_mswsock_h = yes; then
8719 cat >>confdefs.h <<\_ACEOF
8720#define PJ_HAS_MSWSOCK_H 1
8721_ACEOF
8722
8723fi
8724
8725
Benny Prijono4e48b512007-05-16 13:41:00 +00008726if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008727 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8728echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008729if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731fi
Benny Prijono0b462322008-03-12 22:44:24 +00008732echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8733echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008734else
8735 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008736echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8737echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008738cat >conftest.$ac_ext <<_ACEOF
8739/* confdefs.h. */
8740_ACEOF
8741cat confdefs.h >>conftest.$ac_ext
8742cat >>conftest.$ac_ext <<_ACEOF
8743/* end confdefs.h. */
8744$ac_includes_default
8745#include <uuid/uuid.h>
8746_ACEOF
8747rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag"
8757 || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008769 ac_header_compiler=yes
8770else
8771 echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
8773
Benny Prijono0b462322008-03-12 22:44:24 +00008774ac_header_compiler=no
Benny Prijono4e48b512007-05-16 13:41:00 +00008775fi
Benny Prijono0b462322008-03-12 22:44:24 +00008776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8778echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008779
8780# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008781echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8782echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008783cat >conftest.$ac_ext <<_ACEOF
8784/* confdefs.h. */
8785_ACEOF
8786cat confdefs.h >>conftest.$ac_ext
8787cat >>conftest.$ac_ext <<_ACEOF
8788/* end confdefs.h. */
8789#include <uuid/uuid.h>
8790_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008798 (exit $ac_status); } >/dev/null; then
8799 if test -s conftest.err; then
8800 ac_cpp_err=$ac_c_preproc_warn_flag
8801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8802 else
8803 ac_cpp_err=
8804 fi
8805else
8806 ac_cpp_err=yes
8807fi
8808if test -z "$ac_cpp_err"; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008809 ac_header_preproc=yes
8810else
8811 echo "$as_me: failed program was:" >&5
8812sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ac_header_preproc=no
8815fi
8816rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8818echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008819
8820# So? What about this header?
8821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8822 yes:no: )
8823 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8824echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8825 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8826echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8827 ac_header_preproc=yes
8828 ;;
8829 no:yes:* )
8830 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8831echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8833echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8835echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8837echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8839echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8841echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008842 (
8843 cat <<\_ASBOX
8844## ------------------------------------ ##
8845## Report this to the pjproject lists. ##
8846## ------------------------------------ ##
8847_ASBOX
8848 ) |
8849 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono4e48b512007-05-16 13:41:00 +00008850 ;;
8851esac
Benny Prijono0b462322008-03-12 22:44:24 +00008852echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8853echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008854if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856else
8857 ac_cv_header_uuid_uuid_h=$ac_header_preproc
8858fi
Benny Prijono0b462322008-03-12 22:44:24 +00008859echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8860echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008861
8862fi
8863if test $ac_cv_header_uuid_uuid_h = yes; then
8864 ac_has_uuid_h=1
8865fi
8866
8867
Benny Prijonoa9948e62008-03-25 14:03:01 +00008868echo "$as_me:$LINENO: checking for net/if.h" >&5
8869echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
8870if test "${ac_cv_header_net_if_h+set}" = set; then
Benny Prijono188ba7e2008-03-25 13:53:16 +00008871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872else
8873 cat >conftest.$ac_ext <<_ACEOF
8874/* confdefs.h. */
8875_ACEOF
8876cat confdefs.h >>conftest.$ac_ext
8877cat >>conftest.$ac_ext <<_ACEOF
8878/* end confdefs.h. */
8879#if PJ_HAS_SYS_SOCKET_H
8880 # include <sys/socket.h>
8881 #endif
8882
8883
Benny Prijonoa9948e62008-03-25 14:03:01 +00008884#include <net/if.h>
Benny Prijono188ba7e2008-03-25 13:53:16 +00008885_ACEOF
8886rm -f conftest.$ac_objext
8887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8888 (eval $ac_compile) 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest.$ac_objext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00008908 ac_cv_header_net_if_h=yes
Benny Prijono188ba7e2008-03-25 13:53:16 +00008909else
8910 echo "$as_me: failed program was:" >&5
8911sed 's/^/| /' conftest.$ac_ext >&5
8912
Benny Prijonoa9948e62008-03-25 14:03:01 +00008913ac_cv_header_net_if_h=no
Benny Prijono188ba7e2008-03-25 13:53:16 +00008914fi
8915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8916fi
Benny Prijonoa9948e62008-03-25 14:03:01 +00008917echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
8918echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
8919if test $ac_cv_header_net_if_h = yes; then
8920 cat >>confdefs.h <<\_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +00008921#define PJ_HAS_NET_IF_H 1
8922_ACEOF
8923
8924fi
8925
Benny Prijono188ba7e2008-03-25 13:53:16 +00008926
8927
Benny Prijono0b462322008-03-12 22:44:24 +00008928echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
8929echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008930cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008931#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008932_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008933
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008934
Benny Prijono0b462322008-03-12 22:44:24 +00008935echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
8936echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008937cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008938#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008939_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008940
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008941
Benny Prijono0b462322008-03-12 22:44:24 +00008942echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
8943echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008944cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008945#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008946_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008947
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008948
Benny Prijono0b462322008-03-12 22:44:24 +00008949echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
8950echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008951cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008952#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008953_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008954
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008955
Benny Prijono0b462322008-03-12 22:44:24 +00008956echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
8957echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008958cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008959#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008960_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008961
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008962
Benny Prijono0b462322008-03-12 22:44:24 +00008963echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
8964echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008965cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008966#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008967_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008968
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008969
Benny Prijono0b462322008-03-12 22:44:24 +00008970echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
8971echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008972cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008973/* confdefs.h. */
8974_ACEOF
8975cat confdefs.h >>conftest.$ac_ext
8976cat >>conftest.$ac_ext <<_ACEOF
8977/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008978#include <sys/types.h>
8979 #include <sys/socket.h>
8980 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008981int
8982main ()
8983{
8984inet_aton(0, 0);
8985 ;
8986 return 0;
8987}
8988_ACEOF
8989rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008992 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag"
8999 || test ! -s conftest.err'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 (eval $ac_try) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; } &&
9005 { ac_try='test -s conftest.$ac_objext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009011 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009012#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009013_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009014
Benny Prijono0b462322008-03-12 22:44:24 +00009015 echo "$as_me:$LINENO: result: yes" >&5
9016echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009017else
9018 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009019sed 's/^/| /' conftest.$ac_ext >&5
9020
Benny Prijono0b462322008-03-12 22:44:24 +00009021echo "$as_me:$LINENO: result: no" >&5
9022echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009023fi
Benny Prijono0b462322008-03-12 22:44:24 +00009024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009025
Benny Prijono0b462322008-03-12 22:44:24 +00009026echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
9027echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009028cat >conftest.$ac_ext <<_ACEOF
9029/* confdefs.h. */
9030_ACEOF
9031cat confdefs.h >>conftest.$ac_ext
9032cat >>conftest.$ac_ext <<_ACEOF
9033/* end confdefs.h. */
9034#include <sys/types.h>
9035 #include <sys/socket.h>
9036 #include <arpa/inet.h>
9037int
9038main ()
9039{
9040inet_pton(0, 0, 0);
9041 ;
9042 return 0;
9043}
9044_ACEOF
9045rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest.$ac_objext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009067 cat >>confdefs.h <<\_ACEOF
9068#define PJ_SOCK_HAS_INET_PTON 1
9069_ACEOF
9070
Benny Prijono0b462322008-03-12 22:44:24 +00009071 echo "$as_me:$LINENO: result: yes" >&5
9072echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009073else
9074 echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
Benny Prijono0b462322008-03-12 22:44:24 +00009077echo "$as_me:$LINENO: result: no" >&5
9078echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009079fi
Benny Prijono0b462322008-03-12 22:44:24 +00009080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009081
Benny Prijono0b462322008-03-12 22:44:24 +00009082echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9083echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009084cat >conftest.$ac_ext <<_ACEOF
9085/* confdefs.h. */
9086_ACEOF
9087cat confdefs.h >>conftest.$ac_ext
9088cat >>conftest.$ac_ext <<_ACEOF
9089/* end confdefs.h. */
9090#include <sys/types.h>
9091 #include <sys/socket.h>
9092 #include <arpa/inet.h>
9093int
9094main ()
9095{
9096inet_ntop(0, 0, 0, 0);
9097 ;
9098 return 0;
9099}
9100_ACEOF
9101rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009104 ac_status=$?
9105 grep -v '^ *+' conftest.er1 >conftest.err
9106 rm -f conftest.er1
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009109 (exit $ac_status); } &&
9110 { ac_try='test -z "$ac_c_werror_flag"
9111 || test ! -s conftest.err'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try='test -s conftest.$ac_objext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009123 cat >>confdefs.h <<\_ACEOF
9124#define PJ_SOCK_HAS_INET_NTOP 1
9125_ACEOF
9126
Benny Prijono0b462322008-03-12 22:44:24 +00009127 echo "$as_me:$LINENO: result: yes" >&5
9128echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009129else
9130 echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
Benny Prijono0b462322008-03-12 22:44:24 +00009133echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009135fi
Benny Prijono0b462322008-03-12 22:44:24 +00009136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009137
Benny Prijono0b462322008-03-12 22:44:24 +00009138echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
9139echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009140cat >conftest.$ac_ext <<_ACEOF
9141/* confdefs.h. */
9142_ACEOF
9143cat confdefs.h >>conftest.$ac_ext
9144cat >>conftest.$ac_ext <<_ACEOF
9145/* end confdefs.h. */
9146#include <sys/types.h>
9147 #include <sys/socket.h>
9148 #include <netdb.h>
9149int
9150main ()
9151{
9152getaddrinfo(0, 0, 0, 0);
9153 ;
9154 return 0;
9155}
9156_ACEOF
9157rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest.$ac_objext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009179 cat >>confdefs.h <<\_ACEOF
9180#define PJ_SOCK_HAS_GETADDRINFO 1
9181_ACEOF
9182
Benny Prijono0b462322008-03-12 22:44:24 +00009183 echo "$as_me:$LINENO: result: yes" >&5
9184echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009185else
9186 echo "$as_me: failed program was:" >&5
9187sed 's/^/| /' conftest.$ac_ext >&5
9188
Benny Prijono0b462322008-03-12 22:44:24 +00009189echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009191fi
Benny Prijono0b462322008-03-12 22:44:24 +00009192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009193
Benny Prijono0b462322008-03-12 22:44:24 +00009194echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
9195echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009196cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009197/* confdefs.h. */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009202#include <sys/types.h>
9203 #include <sys/socket.h>
9204 #include <netinet/in.h>
9205 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009206int
9207main ()
9208{
9209struct sockaddr_in a; a.sin_len=0;
9210 ;
9211 return 0;
9212}
9213_ACEOF
9214rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009217 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009236 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009237#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009238_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009239
Benny Prijono0b462322008-03-12 22:44:24 +00009240 echo "$as_me:$LINENO: result: yes" >&5
9241echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009242else
9243 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009244sed 's/^/| /' conftest.$ac_ext >&5
9245
Benny Prijono0b462322008-03-12 22:44:24 +00009246echo "$as_me:$LINENO: result: no" >&5
9247echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009248fi
Benny Prijono0b462322008-03-12 22:44:24 +00009249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009250
Benny Prijono0b462322008-03-12 22:44:24 +00009251echo "$as_me:$LINENO: checking if socklen_t is available" >&5
9252echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009253cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009254/* confdefs.h. */
9255_ACEOF
9256cat confdefs.h >>conftest.$ac_ext
9257cat >>conftest.$ac_ext <<_ACEOF
9258/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00009259#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00009260int
9261main ()
9262{
9263socklen_t xxx = 0;
9264 ;
9265 return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00009271 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag"
9278 || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009290 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009291#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009292_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009293
Benny Prijono0b462322008-03-12 22:44:24 +00009294 echo "$as_me:$LINENO: result: yes" >&5
9295echo "${ECHO_T}yes" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009296else
9297 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009298sed 's/^/| /' conftest.$ac_ext >&5
9299
Benny Prijono0b462322008-03-12 22:44:24 +00009300echo "$as_me:$LINENO: result: no" >&5
9301echo "${ECHO_T}no" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009302fi
Benny Prijono0b462322008-03-12 22:44:24 +00009303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00009304
Benny Prijono0b462322008-03-12 22:44:24 +00009305echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
9306echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009307case $target in
9308 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009309 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009310#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009311_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009312
Benny Prijono0b462322008-03-12 22:44:24 +00009313 echo "$as_me:$LINENO: result: yes" >&5
9314echo "${ECHO_T}yes" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009315 ;;
9316 *)
9317 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009318/* confdefs.h. */
9319_ACEOF
9320cat confdefs.h >>conftest.$ac_ext
9321cat >>conftest.$ac_ext <<_ACEOF
9322/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009323#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009324 #include <sys/socket.h>
9325 #include <netinet/in.h>
9326 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009327int
9328main ()
9329{
9330int i=SO_ERROR;
9331 ;
9332 return 0;
9333}
9334_ACEOF
9335rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009338 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009339 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -f conftest.er1
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009343 (exit $ac_status); } &&
9344 { ac_try='test -z "$ac_c_werror_flag"
9345 || test ! -s conftest.err'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; } &&
9351 { ac_try='test -s conftest.$ac_objext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009357 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009358#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009359_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009360
Benny Prijono0b462322008-03-12 22:44:24 +00009361 echo "$as_me:$LINENO: result: yes" >&5
9362echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009363else
9364 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009365sed 's/^/| /' conftest.$ac_ext >&5
9366
Benny Prijono0b462322008-03-12 22:44:24 +00009367echo "$as_me:$LINENO: result: no" >&5
9368echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009369fi
Benny Prijono0b462322008-03-12 22:44:24 +00009370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009371 ;;
9372esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009373
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009374
Benny Prijono0b462322008-03-12 22:44:24 +00009375echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
9376echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009377cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009378/* confdefs.h. */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009383#include <pthread.h>
9384int
9385main ()
9386{
9387pthread_rwlock_t *x;
9388 ;
9389 return 0;
9390}
9391_ACEOF
9392rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009395 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest.$ac_objext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009414 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009415#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009416_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009417
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009418 ac_rwmutex="yes"
Benny Prijono0b462322008-03-12 22:44:24 +00009419 echo "$as_me:$LINENO: result: yes" >&5
9420echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009421else
9422 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009423sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009424
Benny Prijono0b462322008-03-12 22:44:24 +00009425cat >>confdefs.h <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009426#define PJ_EMULATE_RWMUTEX 1
9427_ACEOF
9428
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009429 ac_rwmutex="no"
Benny Prijono0b462322008-03-12 22:44:24 +00009430 echo "$as_me:$LINENO: result: no" >&5
9431echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009432fi
Benny Prijono0b462322008-03-12 22:44:24 +00009433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009434
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009435if test "$ac_rwmutex" = "no"; then
Benny Prijono0b462322008-03-12 22:44:24 +00009436 echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
9437echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009438 cat >conftest.$ac_ext <<_ACEOF
9439/* confdefs.h. */
9440_ACEOF
9441cat confdefs.h >>conftest.$ac_ext
9442cat >>conftest.$ac_ext <<_ACEOF
9443/* end confdefs.h. */
9444#define _POSIX_READER_WRITER_LOCKS
9445 #include <pthread.h>
9446int
9447main ()
9448{
9449pthread_rwlock_t *x;
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009457 ac_status=$?
9458 grep -v '^ *+' conftest.er1 >conftest.err
9459 rm -f conftest.er1
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009462 (exit $ac_status); } &&
9463 { ac_try='test -z "$ac_c_werror_flag"
9464 || test ! -s conftest.err'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest.$ac_objext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009476 cat >>confdefs.h <<\_ACEOF
9477#define PJ_EMULATE_RWMUTEX 0
9478_ACEOF
9479
9480 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono0b462322008-03-12 22:44:24 +00009481 echo "$as_me:$LINENO: result: yes" >&5
9482echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009483else
9484 echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
Benny Prijono0b462322008-03-12 22:44:24 +00009487cat >>confdefs.h <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009488#define PJ_EMULATE_RWMUTEX 1
9489_ACEOF
9490
Benny Prijono0b462322008-03-12 22:44:24 +00009491 echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
9493fi
9494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009495fi
9496
Benny Prijono0b462322008-03-12 22:44:24 +00009497echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
9498echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009499cat >conftest.$ac_ext <<_ACEOF
9500/* confdefs.h. */
9501_ACEOF
9502cat confdefs.h >>conftest.$ac_ext
9503cat >>conftest.$ac_ext <<_ACEOF
9504/* end confdefs.h. */
9505#include <pthread.h>
9506int
9507main ()
9508{
9509pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
9510 ;
9511 return 0;
9512}
9513_ACEOF
9514rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009522 (exit $ac_status); } &&
9523 { ac_try='test -z "$ac_c_werror_flag"
9524 || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try='test -s conftest.$ac_objext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009536 cat >>confdefs.h <<\_ACEOF
9537#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
9538_ACEOF
9539
Benny Prijono0b462322008-03-12 22:44:24 +00009540 echo "$as_me:$LINENO: result: yes" >&5
9541echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009542else
9543 echo "$as_me: failed program was:" >&5
9544sed 's/^/| /' conftest.$ac_ext >&5
9545
Benny Prijono0b462322008-03-12 22:44:24 +00009546echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009548fi
Benny Prijono0b462322008-03-12 22:44:24 +00009549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009550
Benny Prijono0b462322008-03-12 22:44:24 +00009551echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
9552echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009553cat >conftest.$ac_ext <<_ACEOF
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
9559#include <pthread.h>
9560int
9561main ()
9562{
9563pthread_mutexattr_t attr;
9564 attr.recursive=1;
9565 ;
9566 return 0;
9567}
9568_ACEOF
9569rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9571 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest.$ac_objext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009591 cat >>confdefs.h <<\_ACEOF
9592#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
9593_ACEOF
9594
Benny Prijono0b462322008-03-12 22:44:24 +00009595 echo "$as_me:$LINENO: result: yes" >&5
9596echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009597else
9598 echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
Benny Prijono0b462322008-03-12 22:44:24 +00009601echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009603fi
Benny Prijono0b462322008-03-12 22:44:24 +00009604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009605
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009606
9607case $target in
9608 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00009609 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 +00009610 ;;
9611 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00009612 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"
9613 # UUID
9614 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9615 ac_os_objs="$ac_os_objs guid_uuid.o"
9616 else
9617 ac_os_objs="$ac_os_objs guid_simple.o"
9618 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009619 ;;
9620esac
9621
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009622
9623
9624
Benny Prijono4e48b512007-05-16 13:41:00 +00009625
Benny Prijono0b462322008-03-12 22:44:24 +00009626# Check whether --enable-sound or --disable-sound was given.
Benny Prijono1d971622006-09-10 22:27:40 +00009627if test "${enable_sound+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009628 enableval="$enable_sound"
9629 if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00009630 ac_pjmedia_snd=null
Benny Prijono0b462322008-03-12 22:44:24 +00009631 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
9632echo "${ECHO_T}Checking if sound is disabled... yes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00009633 fi
9634
Benny Prijono0b462322008-03-12 22:44:24 +00009635fi;
Benny Prijono1d971622006-09-10 22:27:40 +00009636
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009637
Benny Prijono27c98722007-04-09 21:28:15 +00009638if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009639 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9640echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009641if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643fi
Benny Prijono0b462322008-03-12 22:44:24 +00009644echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9645echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009646else
9647 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009648echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9649echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009650cat >conftest.$ac_ext <<_ACEOF
9651/* confdefs.h. */
9652_ACEOF
9653cat confdefs.h >>conftest.$ac_ext
9654cat >>conftest.$ac_ext <<_ACEOF
9655/* end confdefs.h. */
9656$ac_includes_default
9657#include <sys/soundcard.h>
9658_ACEOF
9659rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest.$ac_objext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009681 ac_header_compiler=yes
9682else
9683 echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
Benny Prijono0b462322008-03-12 22:44:24 +00009686ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009687fi
Benny Prijono0b462322008-03-12 22:44:24 +00009688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9690echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009691
9692# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009693echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9694echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009695cat >conftest.$ac_ext <<_ACEOF
9696/* confdefs.h. */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
9700/* end confdefs.h. */
9701#include <sys/soundcard.h>
9702_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009710 (exit $ac_status); } >/dev/null; then
9711 if test -s conftest.err; then
9712 ac_cpp_err=$ac_c_preproc_warn_flag
9713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9714 else
9715 ac_cpp_err=
9716 fi
9717else
9718 ac_cpp_err=yes
9719fi
9720if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009721 ac_header_preproc=yes
9722else
9723 echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 ac_header_preproc=no
9727fi
9728rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9730echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009731
9732# So? What about this header?
9733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9734 yes:no: )
9735 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9736echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9738echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9739 ac_header_preproc=yes
9740 ;;
9741 no:yes:* )
9742 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9743echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9745echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9747echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9749echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9751echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9753echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009754 (
9755 cat <<\_ASBOX
9756## ------------------------------------ ##
9757## Report this to the pjproject lists. ##
9758## ------------------------------------ ##
9759_ASBOX
9760 ) |
9761 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009762 ;;
9763esac
Benny Prijono0b462322008-03-12 22:44:24 +00009764echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9765echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009766if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768else
9769 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9770fi
Benny Prijono0b462322008-03-12 22:44:24 +00009771echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9772echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009773
9774fi
9775if test $ac_cv_header_sys_soundcard_h = yes; then
9776 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9777fi
9778
9779
9780if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009781 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9782echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009783if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785fi
Benny Prijono0b462322008-03-12 22:44:24 +00009786echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9787echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009788else
9789 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009790echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9791echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009792cat >conftest.$ac_ext <<_ACEOF
9793/* confdefs.h. */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h. */
9798$ac_includes_default
9799#include <linux/soundcard.h>
9800_ACEOF
9801rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009823 ac_header_compiler=yes
9824else
9825 echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
Benny Prijono0b462322008-03-12 22:44:24 +00009828ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009829fi
Benny Prijono0b462322008-03-12 22:44:24 +00009830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9832echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009833
9834# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009835echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9836echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009837cat >conftest.$ac_ext <<_ACEOF
9838/* confdefs.h. */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h. */
9843#include <linux/soundcard.h>
9844_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009852 (exit $ac_status); } >/dev/null; then
9853 if test -s conftest.err; then
9854 ac_cpp_err=$ac_c_preproc_warn_flag
9855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9856 else
9857 ac_cpp_err=
9858 fi
9859else
9860 ac_cpp_err=yes
9861fi
9862if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009863 ac_header_preproc=yes
9864else
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 ac_header_preproc=no
9869fi
9870rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9872echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009873
9874# So? What about this header?
9875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9876 yes:no: )
9877 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9878echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
9880echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
9881 ac_header_preproc=yes
9882 ;;
9883 no:yes:* )
9884 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
9885echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
9887echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
9889echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9891echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
9893echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
9895echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009896 (
9897 cat <<\_ASBOX
9898## ------------------------------------ ##
9899## Report this to the pjproject lists. ##
9900## ------------------------------------ ##
9901_ASBOX
9902 ) |
9903 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009904 ;;
9905esac
Benny Prijono0b462322008-03-12 22:44:24 +00009906echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9907echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009908if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910else
9911 ac_cv_header_linux_soundcard_h=$ac_header_preproc
9912fi
Benny Prijono0b462322008-03-12 22:44:24 +00009913echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9914echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009915
9916fi
9917if test $ac_cv_header_linux_soundcard_h = yes; then
9918 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
9919fi
9920
9921
9922if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009923 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9924echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009925if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927fi
Benny Prijono0b462322008-03-12 22:44:24 +00009928echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9929echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009930else
9931 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009932echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
9933echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009934cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h. */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h. */
9940$ac_includes_default
9941#include <machine/soundcard.h>
9942_ACEOF
9943rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9945 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_c_werror_flag"
9953 || test ! -s conftest.err'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 (eval $ac_try) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009965 ac_header_compiler=yes
9966else
9967 echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
Benny Prijono0b462322008-03-12 22:44:24 +00009970ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009971fi
Benny Prijono0b462322008-03-12 22:44:24 +00009972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009975
9976# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009977echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9978echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009979cat >conftest.$ac_ext <<_ACEOF
9980/* confdefs.h. */
9981_ACEOF
9982cat confdefs.h >>conftest.$ac_ext
9983cat >>conftest.$ac_ext <<_ACEOF
9984/* end confdefs.h. */
9985#include <machine/soundcard.h>
9986_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009994 (exit $ac_status); } >/dev/null; then
9995 if test -s conftest.err; then
9996 ac_cpp_err=$ac_c_preproc_warn_flag
9997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9998 else
9999 ac_cpp_err=
10000 fi
10001else
10002 ac_cpp_err=yes
10003fi
10004if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010005 ac_header_preproc=yes
10006else
10007 echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_header_preproc=no
10011fi
10012rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010015
10016# So? What about this header?
10017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10018 yes:no: )
10019 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10020echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
10022echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
10023 ac_header_preproc=yes
10024 ;;
10025 no:yes:* )
10026 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
10027echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
10028 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
10029echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
10031echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10033echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
10035echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
10037echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010038 (
10039 cat <<\_ASBOX
10040## ------------------------------------ ##
10041## Report this to the pjproject lists. ##
10042## ------------------------------------ ##
10043_ASBOX
10044 ) |
10045 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +000010046 ;;
10047esac
Benny Prijono0b462322008-03-12 22:44:24 +000010048echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10049echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010050if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052else
10053 ac_cv_header_machine_soundcard_h=$ac_header_preproc
10054fi
Benny Prijono0b462322008-03-12 22:44:24 +000010055echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10056echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010057
10058fi
10059if test $ac_cv_header_machine_soundcard_h = yes; then
10060 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
10061fi
10062
10063
10064
Benny Prijono3e091672008-01-09 15:43:02 +000010065if test "x$ac_cv_c_bigendian" = "xyes"; then
10066 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
10067else
10068 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
10069fi
10070
Benny Prijono1d971622006-09-10 22:27:40 +000010071if test "$enable_sound" = "no"; then
10072 true;
10073else
10074 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +000010075 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000010076 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
10077 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010078 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000010079 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
10080 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono0b462322008-03-12 22:44:24 +000010081 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
10082echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010083 else
10084 ac_pjmedia_snd=pa_darwinos
Benny Prijono0b462322008-03-12 22:44:24 +000010085 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
10086echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010087 fi
Benny Prijonob466e232006-09-10 08:53:59 +000010088 ;;
10089 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010090 ac_pjmedia_snd=pa_win32
Benny Prijono0b462322008-03-12 22:44:24 +000010091 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
10092echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010093 ;;
10094 *rtems*)
10095 ac_pjmedia_snd=null
Benny Prijono0b462322008-03-12 22:44:24 +000010096 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
10097echo "${ECHO_T}Checking sound device backend... null sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010098 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010099 *)
Benny Prijono0b462322008-03-12 22:44:24 +000010100 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010101 if test "${ac_cv_header_alsa_version_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010102 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10103echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010104if test "${ac_cv_header_alsa_version_h+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010106fi
Benny Prijono0b462322008-03-12 22:44:24 +000010107echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10108echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010109else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010110 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010111echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
10112echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010113cat >conftest.$ac_ext <<_ACEOF
10114/* confdefs.h. */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h. */
10119$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010120#include <alsa/version.h>
10121_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010122rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010125 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010126 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010127 rm -f conftest.er1
10128 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010130 (exit $ac_status); } &&
10131 { ac_try='test -z "$ac_c_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010144 ac_header_compiler=yes
10145else
10146 echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
Benny Prijono0b462322008-03-12 22:44:24 +000010149ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010150fi
Benny Prijono0b462322008-03-12 22:44:24 +000010151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10153echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010154
10155# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010156echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
10157echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164#include <alsa/version.h>
10165_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010173 (exit $ac_status); } >/dev/null; then
10174 if test -s conftest.err; then
10175 ac_cpp_err=$ac_c_preproc_warn_flag
10176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10177 else
10178 ac_cpp_err=
10179 fi
10180else
10181 ac_cpp_err=yes
10182fi
10183if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010184 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010185else
10186 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010187sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010190fi
10191rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10193echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010194
10195# So? What about this header?
10196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10197 yes:no: )
10198 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10199echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
10201echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
10202 ac_header_preproc=yes
10203 ;;
10204 no:yes:* )
10205 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
10206echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
10208echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
10210echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
10212echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
10214echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
10216echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010217 (
10218 cat <<\_ASBOX
10219## ------------------------------------ ##
10220## Report this to the pjproject lists. ##
10221## ------------------------------------ ##
10222_ASBOX
10223 ) |
10224 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010225 ;;
10226esac
Benny Prijono0b462322008-03-12 22:44:24 +000010227echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10228echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010229if test "${ac_cv_header_alsa_version_h+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231else
10232 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010233fi
Benny Prijono0b462322008-03-12 22:44:24 +000010234echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10235echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010236
10237fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010238if test $ac_cv_header_alsa_version_h = yes; then
10239 ac_pa_use_alsa=1
10240
10241 LIBS="$LIBS -lasound"
10242
10243else
10244 ac_pa_use_alsa=0
10245
10246fi
10247
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010248
Benny Prijono0b462322008-03-12 22:44:24 +000010249 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
10250echo "${ECHO_T}Checking sound device backend... unix" >&6
10251
10252 ac_pa_use_oss=1
10253
10254 # Check whether --enable-oss or --disable-oss was given.
10255if test "${enable_oss+set}" = set; then
10256 enableval="$enable_oss"
10257
10258 if test "$enable_oss" = "no"; then
10259 ac_pa_use_oss=0
10260 echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
10261echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6
10262 fi
10263
10264fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010265 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000010266 esac
10267fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010268
Benny Prijonoebb2c332008-07-28 23:40:58 +000010269# Check whether --enable-ext_sound or --disable-ext_sound was given.
10270if test "${enable_ext_sound+set}" = set; then
10271 enableval="$enable_ext_sound"
10272 if test "$enable_ext_sound" = "yes"; then
10273 ac_pjmedia_snd=external
10274 echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
10275echo "${ECHO_T}Checking if external sound is set... yes" >&6
10276 fi
10277
10278fi;
10279
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010280
Benny Prijono0b462322008-03-12 22:44:24 +000010281# Check whether --enable-small-filter or --disable-small-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010282if test "${enable_small_filter+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010283 enableval="$enable_small_filter"
10284 if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010285 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010286 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
10287echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010288 fi
10289else
Benny Prijono0b462322008-03-12 22:44:24 +000010290 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
10291echo "${ECHO_T}Checking if small filter is disabled... no" >&6
10292fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010293
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010294
Benny Prijono0b462322008-03-12 22:44:24 +000010295# Check whether --enable-large-filter or --disable-large-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010296if test "${enable_large_filter+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010297 enableval="$enable_large_filter"
10298 if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010299 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010300 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
10301echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010302 fi
10303else
Benny Prijono0b462322008-03-12 22:44:24 +000010304 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
10305echo "${ECHO_T}Checking if large filter is disabled... no" >&6
10306fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010307
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010308
Benny Prijono0b462322008-03-12 22:44:24 +000010309# Check whether --enable-speex-aec or --disable-speex-aec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010310if test "${enable_speex_aec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010311 enableval="$enable_speex_aec"
10312 if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010313 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010314 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
10315echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010316 fi
10317else
Benny Prijono0b462322008-03-12 22:44:24 +000010318 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
10319echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
10320fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010321
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010322
Benny Prijono0b462322008-03-12 22:44:24 +000010323# Check whether --enable-g711-codec or --disable-g711-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010324if test "${enable_g711_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010325 enableval="$enable_g711_codec"
10326 if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010327 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010328 cat >>confdefs.h <<\_ACEOF
10329#define PJMEDIA_HAS_G711_CODEC 0
10330_ACEOF
10331
Benny Prijono0b462322008-03-12 22:44:24 +000010332 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
10333echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010334 fi
10335else
Benny Prijono0b462322008-03-12 22:44:24 +000010336 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
10337echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
10338fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010339
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010340
10341
Benny Prijono0b462322008-03-12 22:44:24 +000010342# Check whether --enable-l16-codec or --disable-l16-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010343if test "${enable_l16_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010344 enableval="$enable_l16_codec"
10345 if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010346 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010347 cat >>confdefs.h <<\_ACEOF
10348#define PJMEDIA_HAS_L16_CODEC 0
10349_ACEOF
10350
Benny Prijono0b462322008-03-12 22:44:24 +000010351 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
10352echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010353 fi
10354else
Benny Prijono0b462322008-03-12 22:44:24 +000010355 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
10356echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
10357fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010358
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010359
10360
Benny Prijono0b462322008-03-12 22:44:24 +000010361# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010362if test "${enable_gsm_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010363 enableval="$enable_gsm_codec"
10364 if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010365 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010366 cat >>confdefs.h <<\_ACEOF
10367#define PJMEDIA_HAS_GSM_CODEC 0
10368_ACEOF
10369
Benny Prijono0b462322008-03-12 22:44:24 +000010370 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
10371echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010372 fi
10373else
Benny Prijono0b462322008-03-12 22:44:24 +000010374 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
10375echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
10376fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010377
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010378
Benny Prijono71f657d2008-03-17 14:24:21 +000010379# Check whether --enable-g722-codec or --disable-g722-codec was given.
10380if test "${enable_g722_codec+set}" = set; then
10381 enableval="$enable_g722_codec"
10382 if test "$enable_g722_codec" = "no"; then
10383 ac_no_g722_codec=1
10384 cat >>confdefs.h <<\_ACEOF
10385#define PJMEDIA_HAS_G722_CODEC 0
10386_ACEOF
10387
10388 echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
10389echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6
10390 fi
10391else
10392 echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
10393echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6
10394fi;
10395
10396
Benny Prijono0b462322008-03-12 22:44:24 +000010397# Check whether --enable-speex-codec or --disable-speex-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010398if test "${enable_speex_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010399 enableval="$enable_speex_codec"
10400 if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010401 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010402 cat >>confdefs.h <<\_ACEOF
10403#define PJMEDIA_HAS_SPEEX_CODEC 0
10404_ACEOF
10405
Benny Prijono0b462322008-03-12 22:44:24 +000010406 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
10407echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010408 fi
10409else
Benny Prijono0b462322008-03-12 22:44:24 +000010410 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
10411echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
10412fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010413
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010414
Benny Prijono0b462322008-03-12 22:44:24 +000010415# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010416if test "${enable_ilbc_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010417 enableval="$enable_ilbc_codec"
10418 if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010419 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010420 cat >>confdefs.h <<\_ACEOF
10421#define PJMEDIA_HAS_ILBC_CODEC 0
10422_ACEOF
10423
Benny Prijono0b462322008-03-12 22:44:24 +000010424 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
10425echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010426 fi
10427else
Benny Prijono0b462322008-03-12 22:44:24 +000010428 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
10429echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
10430fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010431
Benny Prijono0b462322008-03-12 22:44:24 +000010432# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
Benny Prijono550a1a62007-10-16 08:54:00 +000010433if test "${enable_libsamplerate+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010434 enableval="$enable_libsamplerate"
10435
10436echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
10437echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010438if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
10441 ac_check_lib_save_LIBS=$LIBS
10442LIBS="-lsamplerate $LIBS"
10443cat >conftest.$ac_ext <<_ACEOF
10444/* confdefs.h. */
10445_ACEOF
10446cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h. */
10449
Benny Prijono0b462322008-03-12 22:44:24 +000010450/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010451#ifdef __cplusplus
10452extern "C"
10453#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010454/* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010456char src_new ();
10457int
10458main ()
10459{
Benny Prijono0b462322008-03-12 22:44:24 +000010460src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000010461 ;
10462 return 0;
10463}
10464_ACEOF
10465rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467 (eval $ac_link) 2>conftest.er1
Benny Prijono550a1a62007-10-16 08:54:00 +000010468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest$ac_exeext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
Benny Prijono550a1a62007-10-16 08:54:00 +000010487 ac_cv_lib_samplerate_src_new=yes
10488else
10489 echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
Benny Prijono0b462322008-03-12 22:44:24 +000010492ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000010493fi
Benny Prijono0b462322008-03-12 22:44:24 +000010494rm -f conftest.err conftest.$ac_objext \
Benny Prijono550a1a62007-10-16 08:54:00 +000010495 conftest$ac_exeext conftest.$ac_ext
10496LIBS=$ac_check_lib_save_LIBS
10497fi
Benny Prijono0b462322008-03-12 22:44:24 +000010498echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
10499echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010500if test $ac_cv_lib_samplerate_src_new = yes; then
10501 cat >>confdefs.h <<_ACEOF
10502#define HAVE_LIBSAMPLERATE 1
10503_ACEOF
10504
10505 LIBS="-lsamplerate $LIBS"
10506
10507fi
10508
10509else
Benny Prijono0b462322008-03-12 22:44:24 +000010510 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
10511echo "${ECHO_T}Skipping libsamplerate detection" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010512
Benny Prijono0b462322008-03-12 22:44:24 +000010513fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010514
10515
10516
10517
Benny Prijono0b462322008-03-12 22:44:24 +000010518# Check whether --enable-ssl or --disable-ssl was given.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010519if test "${enable_ssl+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010520 enableval="$enable_ssl"
10521
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010522 if test "$enable_ssl" = "no"; then
10523 ac_no_ssl=1
Benny Prijono0b462322008-03-12 22:44:24 +000010524 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
10525echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010526 fi
10527
10528else
10529
Benny Prijono0b462322008-03-12 22:44:24 +000010530 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
10531echo "${ECHO_T}checking for OpenSSL installations.." >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010532
10533
10534
10535 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010536 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10537echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010538if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540fi
Benny Prijono0b462322008-03-12 22:44:24 +000010541echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10542echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010543else
10544 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010545echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10546echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010547cat >conftest.$ac_ext <<_ACEOF
10548/* confdefs.h. */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h. */
10553$ac_includes_default
10554#include <openssl/ssl.h>
10555_ACEOF
10556rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10558 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010559 ac_status=$?
10560 grep -v '^ *+' conftest.er1 >conftest.err
10561 rm -f conftest.er1
10562 cat conftest.err >&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010564 (exit $ac_status); } &&
10565 { ac_try='test -z "$ac_c_werror_flag"
10566 || test ! -s conftest.err'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; } &&
10572 { ac_try='test -s conftest.$ac_objext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010578 ac_header_compiler=yes
10579else
10580 echo "$as_me: failed program was:" >&5
10581sed 's/^/| /' conftest.$ac_ext >&5
10582
Benny Prijono0b462322008-03-12 22:44:24 +000010583ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010584fi
Benny Prijono0b462322008-03-12 22:44:24 +000010585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10587echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010588
10589# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010590echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10591echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010592cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h. */
10598#include <openssl/ssl.h>
10599_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010602 ac_status=$?
10603 grep -v '^ *+' conftest.er1 >conftest.err
10604 rm -f conftest.er1
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010607 (exit $ac_status); } >/dev/null; then
10608 if test -s conftest.err; then
10609 ac_cpp_err=$ac_c_preproc_warn_flag
10610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10611 else
10612 ac_cpp_err=
10613 fi
10614else
10615 ac_cpp_err=yes
10616fi
10617if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010618 ac_header_preproc=yes
10619else
10620 echo "$as_me: failed program was:" >&5
10621sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_header_preproc=no
10624fi
10625rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10627echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010628
10629# So? What about this header?
10630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10631 yes:no: )
10632 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10633echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10635echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10636 ac_header_preproc=yes
10637 ;;
10638 no:yes:* )
10639 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10640echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10642echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10644echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10646echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10648echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10650echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010651 (
10652 cat <<\_ASBOX
10653## ------------------------------------ ##
10654## Report this to the pjproject lists. ##
10655## ------------------------------------ ##
10656_ASBOX
10657 ) |
10658 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010659 ;;
10660esac
Benny Prijono0b462322008-03-12 22:44:24 +000010661echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10662echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010663if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10667fi
Benny Prijono0b462322008-03-12 22:44:24 +000010668echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10669echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010670
10671fi
10672if test $ac_cv_header_openssl_ssl_h = yes; then
10673 openssl_h_present=1
10674fi
10675
10676
Benny Prijono0b462322008-03-12 22:44:24 +000010677 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
10678echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010679if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682 ac_check_lib_save_LIBS=$LIBS
10683LIBS="-lssl $LIBS"
10684cat >conftest.$ac_ext <<_ACEOF
10685/* confdefs.h. */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h. */
10690
Benny Prijono0b462322008-03-12 22:44:24 +000010691/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010692#ifdef __cplusplus
10693extern "C"
10694#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010695/* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010697char SSL_library_init ();
10698int
10699main ()
10700{
Benny Prijono0b462322008-03-12 22:44:24 +000010701SSL_library_init ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010702 ;
10703 return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010714 (exit $ac_status); } &&
10715 { ac_try='test -z "$ac_c_werror_flag"
10716 || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try='test -s conftest$ac_exeext'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010728 ac_cv_lib_ssl_SSL_library_init=yes
10729else
10730 echo "$as_me: failed program was:" >&5
10731sed 's/^/| /' conftest.$ac_ext >&5
10732
Benny Prijono0b462322008-03-12 22:44:24 +000010733ac_cv_lib_ssl_SSL_library_init=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010734fi
Benny Prijono0b462322008-03-12 22:44:24 +000010735rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010736 conftest$ac_exeext conftest.$ac_ext
10737LIBS=$ac_check_lib_save_LIBS
10738fi
Benny Prijono0b462322008-03-12 22:44:24 +000010739echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
10740echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010741if test $ac_cv_lib_ssl_SSL_library_init = yes; then
10742 libssl_present=1 && LIBS="$LIBS -lssl"
10743fi
10744
Benny Prijono0b462322008-03-12 22:44:24 +000010745 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
10746echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010747if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749else
10750 ac_check_lib_save_LIBS=$LIBS
10751LIBS="-lcrypto $LIBS"
10752cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h. */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h. */
10758
Benny Prijono0b462322008-03-12 22:44:24 +000010759/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010760#ifdef __cplusplus
10761extern "C"
10762#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010763/* We use char because int might match the return type of a gcc2
10764 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010765char ERR_load_BIO_strings ();
10766int
10767main ()
10768{
Benny Prijono0b462322008-03-12 22:44:24 +000010769ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010770 ;
10771 return 0;
10772}
10773_ACEOF
10774rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag"
10784 || test ! -s conftest.err'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest$ac_exeext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010796 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
10797else
10798 echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
Benny Prijono0b462322008-03-12 22:44:24 +000010801ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010802fi
Benny Prijono0b462322008-03-12 22:44:24 +000010803rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010804 conftest$ac_exeext conftest.$ac_ext
10805LIBS=$ac_check_lib_save_LIBS
10806fi
Benny Prijono0b462322008-03-12 22:44:24 +000010807echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
10808echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010809if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
10810 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
10811fi
10812
10813 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijono0b462322008-03-12 22:44:24 +000010814 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
10815echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010816 cat >>confdefs.h <<\_ACEOF
10817#define PJSIP_HAS_TLS_TRANSPORT 1
10818_ACEOF
10819
10820 else
Benny Prijono0b462322008-03-12 22:44:24 +000010821 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
10822echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010823 fi
10824
Benny Prijono0b462322008-03-12 22:44:24 +000010825fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010826
10827
10828
10829
Benny Prijono0b462322008-03-12 22:44:24 +000010830echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
10831echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010832case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010833 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010834#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010835_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010836
Benny Prijono0b462322008-03-12 22:44:24 +000010837 echo "$as_me:$LINENO: result: yes" >&5
10838echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010839 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010840 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010841#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010842_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010843
Benny Prijono0b462322008-03-12 22:44:24 +000010844 echo "$as_me:$LINENO: result: no (default)" >&5
10845echo "${ECHO_T}no (default)" >&6
10846 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
10847echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010848 ;;
10849esac
10850
Benny Prijono0b462322008-03-12 22:44:24 +000010851echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
10852echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010853case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010854 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010855#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010856_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010857
Benny Prijono0b462322008-03-12 22:44:24 +000010858 echo "$as_me:$LINENO: result: yes" >&5
10859echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010860 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010861 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010862#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010863_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010864
Benny Prijono0b462322008-03-12 22:44:24 +000010865 echo "$as_me:$LINENO: result: no (default)" >&5
10866echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010867 ;;
10868esac
10869
Benny Prijono0b462322008-03-12 22:44:24 +000010870echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
10871echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010872case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010873 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010874#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010875_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010876
Benny Prijono0b462322008-03-12 22:44:24 +000010877 echo "$as_me:$LINENO: result: yes" >&5
10878echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010879 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010880 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010881#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010882_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010883
Benny Prijono0b462322008-03-12 22:44:24 +000010884 echo "$as_me:$LINENO: result: no (default)" >&5
10885echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010886 ;;
10887esac
10888
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010889case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010890 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010891 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010892#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010893_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010894
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010895 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010896 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010897#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010898_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010899
Benny Prijono0b462322008-03-12 22:44:24 +000010900 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
10901echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010902 ;;
10903esac
10904
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010905case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010906 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010907 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010908#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010909_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010910
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010911 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010912 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010913#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010914_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010915
Benny Prijono0b462322008-03-12 22:44:24 +000010916 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
10917echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010918 ;;
10919esac
10920
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010921
10922
10923
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010924if test "$build" = "$host"; then
10925 ac_cross_compile=
10926else
Benny Prijono5b818b22006-09-17 22:58:51 +000010927 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010928fi
10929ac_linux_poll=select
10930
10931ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010932
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010933
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010934case $target in
10935 *rtems*)
10936 ac_main_obj=main_rtems.o
10937 ;;
10938 *)
10939 ac_main_obj=main.o
10940 ;;
10941esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010942
10943cat >confcache <<\_ACEOF
10944# This file is a shell script that caches the results of configure
10945# tests run on this system so they can be shared between configure
10946# scripts and configure runs, see configure's option --config-cache.
10947# It is not useful on other systems. If it contains results you don't
10948# want to keep, you may remove or edit it.
10949#
10950# config.status only pays attention to the cache file if you give it
10951# the --recheck option to rerun configure.
10952#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010953# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010954# loading this file, other *unset* `ac_cv_foo' will be assigned the
10955# following values.
10956
10957_ACEOF
10958
10959# The following way of writing the cache mishandles newlines in values,
10960# but we know of no workaround that is simple, portable, and efficient.
Benny Prijono0b462322008-03-12 22:44:24 +000010961# So, don't put newlines in cache variables' values.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010962# Ultrix sh set writes to stderr and can't be redirected directly,
10963# and sets the high bit in the cache file unless we assign to the vars.
Benny Prijono0b462322008-03-12 22:44:24 +000010964{
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010965 (set) 2>&1 |
Benny Prijono0b462322008-03-12 22:44:24 +000010966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10967 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010968 # `set' does not quote correctly, so add quotes (double-quote
10969 # substitution turns \\\\ into \\, and sed turns \\ into \).
10970 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010971 "s/'/'\\\\''/g;
10972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijono0b462322008-03-12 22:44:24 +000010973 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010974 *)
10975 # `set' quotes correctly as required by POSIX, so do not add quotes.
Benny Prijono0b462322008-03-12 22:44:24 +000010976 sed -n \
10977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010978 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000010979 esac;
10980} |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010981 sed '
10982 t clear
Benny Prijono0b462322008-03-12 22:44:24 +000010983 : clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10985 t end
Benny Prijono0b462322008-03-12 22:44:24 +000010986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10987 : end' >>confcache
10988if diff $cache_file confcache >/dev/null 2>&1; then :; else
10989 if test -w $cache_file; then
10990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010991 cat confcache >$cache_file
10992 else
Benny Prijono0b462322008-03-12 22:44:24 +000010993 echo "not updating unwritable cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010994 fi
10995fi
10996rm -f confcache
10997
10998test "x$prefix" = xNONE && prefix=$ac_default_prefix
10999# Let make expand exec_prefix.
11000test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11001
Benny Prijono0b462322008-03-12 22:44:24 +000011002# VPATH may cause trouble with some makes, so we remove $(srcdir),
11003# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11004# trailing colons and then remove the whole line if VPATH becomes empty
11005# (actually we leave an empty line to preserve line numbers).
11006if test "x$srcdir" = x.; then
11007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11008s/:*\$(srcdir):*/:/;
11009s/:*\${srcdir}:*/:/;
11010s/:*@srcdir@:*/:/;
11011s/^\([^=]*=[ ]*\):*/\1/;
11012s/:*$//;
11013s/^[^=]*=[ ]*$//;
11014}'
11015fi
11016
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011017DEFS=-DHAVE_CONFIG_H
11018
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011019ac_libobjs=
11020ac_ltlibobjs=
11021for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11022 # 1. Remove the extension, and $U if already installed.
Benny Prijono0b462322008-03-12 22:44:24 +000011023 ac_i=`echo "$ac_i" |
11024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11025 # 2. Add them.
11026 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11027 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011028done
11029LIBOBJS=$ac_libobjs
11030
11031LTLIBOBJS=$ac_ltlibobjs
11032
11033
11034
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011035: ${CONFIG_STATUS=./config.status}
11036ac_clean_files_save=$ac_clean_files
11037ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011038{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011039echo "$as_me: creating $CONFIG_STATUS" >&6;}
11040cat >$CONFIG_STATUS <<_ACEOF
11041#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011042# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011043# Run this file to recreate the current configuration.
11044# Compiler output produced by configure, useful for debugging
11045# configure, is in config.log if it exists.
11046
11047debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011048ac_cs_recheck=false
11049ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011050SHELL=\${CONFIG_SHELL-$SHELL}
11051_ACEOF
11052
11053cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011054## --------------------- ##
11055## M4sh Initialization. ##
11056## --------------------- ##
11057
Benny Prijono0b462322008-03-12 22:44:24 +000011058# Be Bourne compatible
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011059if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11060 emulate sh
11061 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11063 # is contrary to our usage. Disable this feature.
11064 alias -g '${1+"$@"}'='"$@"'
Benny Prijono0b462322008-03-12 22:44:24 +000011065elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11066 set -o posix
11067fi
11068DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonofdafd402008-01-23 14:34:46 +000011069
Benny Prijono0b462322008-03-12 22:44:24 +000011070# Support unset when possible.
11071if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11072 as_unset=unset
11073else
11074 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011075fi
11076
11077
Benny Prijono0b462322008-03-12 22:44:24 +000011078# Work around bugs in pre-3.0 UWIN ksh.
11079$as_unset ENV MAIL MAILPATH
11080PS1='$ '
11081PS2='> '
11082PS4='+ '
11083
11084# NLS nuisances.
11085for as_var in \
11086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11088 LC_TELEPHONE LC_TIME
11089do
11090 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11091 eval $as_var=C; export $as_var
11092 else
11093 $as_unset $as_var
11094 fi
11095done
11096
11097# Required to use basename.
11098if expr a : '\(a\)' >/dev/null 2>&1; then
11099 as_expr=expr
11100else
11101 as_expr=false
11102fi
11103
11104if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11105 as_basename=basename
11106else
11107 as_basename=false
11108fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011109
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011110
Benny Prijono0b462322008-03-12 22:44:24 +000011111# Name of the executable.
11112as_me=`$as_basename "$0" ||
11113$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11114 X"$0" : 'X\(//\)$' \| \
11115 X"$0" : 'X\(/\)$' \| \
11116 . : '\(.\)' 2>/dev/null ||
11117echo X/"$0" |
11118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11119 /^X\/\(\/\/\)$/{ s//\1/; q; }
11120 /^X\/\(\/\).*/{ s//\1/; q; }
11121 s/.*/./; q'`
11122
11123
11124# PATH needs CR, and LINENO needs CR and PATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011125# Avoid depending upon Character Ranges.
11126as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11128as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11129as_cr_digits='0123456789'
11130as_cr_alnum=$as_cr_Letters$as_cr_digits
11131
11132# The user is always right.
11133if test "${PATH_SEPARATOR+set}" != set; then
11134 echo "#! /bin/sh" >conf$$.sh
11135 echo "exit 0" >>conf$$.sh
11136 chmod +x conf$$.sh
11137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11138 PATH_SEPARATOR=';'
11139 else
11140 PATH_SEPARATOR=:
11141 fi
11142 rm -f conf$$.sh
11143fi
11144
11145
Benny Prijono0b462322008-03-12 22:44:24 +000011146 as_lineno_1=$LINENO
11147 as_lineno_2=$LINENO
11148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11149 test "x$as_lineno_1" != "x$as_lineno_2" &&
11150 test "x$as_lineno_3" = "x$as_lineno_2" || {
11151 # Find who we are. Look in the path if we contain no path at all
11152 # relative or not.
11153 case $0 in
11154 *[\\/]* ) as_myself=$0 ;;
11155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011156for as_dir in $PATH
11157do
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11161done
11162
Benny Prijono0b462322008-03-12 22:44:24 +000011163 ;;
11164 esac
11165 # We did not find ourselves, most probably we were run as `sh COMMAND'
11166 # in which case we are not to be found in the path.
11167 if test "x$as_myself" = x; then
11168 as_myself=$0
Benny Prijonofdafd402008-01-23 14:34:46 +000011169 fi
Benny Prijono0b462322008-03-12 22:44:24 +000011170 if test ! -f "$as_myself"; then
11171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11172echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11173 { (exit 1); exit 1; }; }
11174 fi
11175 case $CONFIG_SHELL in
11176 '')
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
11182 for as_base in sh bash ksh sh5; do
11183 case $as_dir in
11184 /*)
11185 if ("$as_dir/$as_base" -c '
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011186 as_lineno_1=$LINENO
11187 as_lineno_2=$LINENO
Benny Prijono0b462322008-03-12 22:44:24 +000011188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011189 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijono0b462322008-03-12 22:44:24 +000011190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11191 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11192 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11193 CONFIG_SHELL=$as_dir/$as_base
11194 export CONFIG_SHELL
11195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11196 fi;;
11197 esac
11198 done
11199done
11200;;
11201 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011202
11203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11204 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijono0b462322008-03-12 22:44:24 +000011205 # line-number line before each line; the second 'sed' does the real
11206 # work. The second script uses 'N' to pair each line-number line
11207 # with the numbered line, and appends trailing '-' during
11208 # substitution so that $LINENO is not a special case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijono0b462322008-03-12 22:44:24 +000011210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11211 sed '=' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011212 sed '
11213 N
Benny Prijono0b462322008-03-12 22:44:24 +000011214 s,$,-,
11215 : loop
11216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011217 t loop
Benny Prijono0b462322008-03-12 22:44:24 +000011218 s,-$,,
11219 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011220 ' >$as_me.lineno &&
Benny Prijono0b462322008-03-12 22:44:24 +000011221 chmod +x $as_me.lineno ||
11222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11223echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011224 { (exit 1); exit 1; }; }
11225
11226 # Don't try to exec as it changes $[0], causing all sort of problems
11227 # (the dirname of $[0] is not the place where we might find the
Benny Prijono0b462322008-03-12 22:44:24 +000011228 # original and so on. Autoconf is especially sensible to this).
11229 . ./$as_me.lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011230 # Exit status is that of the last command.
11231 exit
11232}
11233
11234
Benny Prijono0b462322008-03-12 22:44:24 +000011235case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11236 *c*,-n*) ECHO_N= ECHO_C='
11237' ECHO_T=' ' ;;
11238 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11239 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011240esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011241
Benny Prijono0b462322008-03-12 22:44:24 +000011242if expr a : '\(a\)' >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011243 as_expr=expr
11244else
11245 as_expr=false
11246fi
11247
11248rm -f conf$$ conf$$.exe conf$$.file
11249echo >conf$$.file
11250if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijono0b462322008-03-12 22:44:24 +000011251 # We could just check for DJGPP; but this test a) works b) is more generic
11252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11253 if test -f conf$$.exe; then
11254 # Don't use ln at all; we don't have any links
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011255 as_ln_s='cp -p'
Benny Prijono0b462322008-03-12 22:44:24 +000011256 else
11257 as_ln_s='ln -s'
11258 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011259elif ln conf$$.file conf$$ 2>/dev/null; then
11260 as_ln_s=ln
11261else
11262 as_ln_s='cp -p'
11263fi
Benny Prijono0b462322008-03-12 22:44:24 +000011264rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011265
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011266if mkdir -p . 2>/dev/null; then
11267 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000011268else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011269 test -d ./-p && rmdir ./-p
11270 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000011271fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011272
Benny Prijono0b462322008-03-12 22:44:24 +000011273as_executable_p="test -f"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011274
11275# Sed expression to map a string onto a valid CPP name.
11276as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11277
11278# Sed expression to map a string onto a valid variable name.
11279as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11280
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011281
Benny Prijono0b462322008-03-12 22:44:24 +000011282# IFS
11283# We need space, tab and new line, in precisely that order.
11284as_nl='
11285'
11286IFS=" $as_nl"
11287
11288# CDPATH.
11289$as_unset CDPATH
11290
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011291exec 6>&1
11292
Benny Prijono0b462322008-03-12 22:44:24 +000011293# Open the log real soon, to keep \$[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011294# report actual input values of CONFIG_FILES etc. instead of their
Benny Prijono0b462322008-03-12 22:44:24 +000011295# values after options handling. Logging --version etc. is OK.
11296exec 5>>config.log
11297{
11298 echo
11299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11300## Running $as_me. ##
11301_ASBOX
11302} >&5
11303cat >&5 <<_CSEOF
11304
Benny Prijono1c5f4e42008-02-07 13:11:39 +000011305This file was extended by pjproject $as_me 0.8, which was
Benny Prijono0b462322008-03-12 22:44:24 +000011306generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011307
11308 CONFIG_FILES = $CONFIG_FILES
11309 CONFIG_HEADERS = $CONFIG_HEADERS
11310 CONFIG_LINKS = $CONFIG_LINKS
11311 CONFIG_COMMANDS = $CONFIG_COMMANDS
11312 $ $0 $@
11313
Benny Prijono0b462322008-03-12 22:44:24 +000011314_CSEOF
11315echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11316echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011317_ACEOF
11318
11319# Files that config.status was made for.
Benny Prijono0b462322008-03-12 22:44:24 +000011320if test -n "$ac_config_files"; then
11321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11322fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011323
Benny Prijono0b462322008-03-12 22:44:24 +000011324if test -n "$ac_config_headers"; then
11325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11326fi
11327
11328if test -n "$ac_config_links"; then
11329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11330fi
11331
11332if test -n "$ac_config_commands"; then
11333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11334fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011335
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011336cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011337
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011338ac_cs_usage="\
11339\`$as_me' instantiates files from templates according to the
11340current configuration.
11341
11342Usage: $0 [OPTIONS] [FILE]...
11343
11344 -h, --help print this help, then exit
Benny Prijono0b462322008-03-12 22:44:24 +000011345 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011346 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011347 -d, --debug don't remove temporary files
11348 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011349 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011350 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011351 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011352 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011353
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011354Configuration files:
11355$config_files
11356
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011357Configuration headers:
11358$config_headers
11359
11360Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonofdafd402008-01-23 14:34:46 +000011361_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011362
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011363cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011364ac_cs_version="\\
Benny Prijono1c5f4e42008-02-07 13:11:39 +000011365pjproject config.status 0.8
Benny Prijono0b462322008-03-12 22:44:24 +000011366configured by $0, generated by GNU Autoconf 2.59,
11367 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011368
Benny Prijono0b462322008-03-12 22:44:24 +000011369Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011370This config.status script is free software; the Free Software Foundation
11371gives unlimited permission to copy, distribute and modify it."
Benny Prijono0b462322008-03-12 22:44:24 +000011372srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011373_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011374
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011375cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011376# If no file are specified by the user, then we need to provide default
11377# value. By we need to know if files were specified by the user.
11378ac_need_defaults=:
11379while test $# != 0
11380do
11381 case $1 in
11382 --*=*)
Benny Prijono0b462322008-03-12 22:44:24 +000011383 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11384 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011385 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011386 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011387 -*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011388 ac_option=$1
11389 ac_optarg=$2
11390 ac_shift=shift
11391 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011392 *) # This is not an option, so the user has probably given explicit
11393 # arguments.
11394 ac_option=$1
11395 ac_need_defaults=false;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011396 esac
11397
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011398 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011399 # Handling of the options.
Benny Prijono0b462322008-03-12 22:44:24 +000011400_ACEOF
11401cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011403 ac_cs_recheck=: ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011404 --version | --vers* | -V )
11405 echo "$ac_cs_version"; exit 0 ;;
11406 --he | --h)
11407 # Conflict between --help and --header
11408 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11409Try \`$0 --help' for more information." >&5
11410echo "$as_me: error: ambiguous option: $1
11411Try \`$0 --help' for more information." >&2;}
11412 { (exit 1); exit 1; }; };;
11413 --help | --hel | -h )
11414 echo "$ac_cs_usage"; exit 0 ;;
11415 --debug | --d* | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011416 debug=: ;;
11417 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011418 $ac_shift
11419 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011420 ac_need_defaults=false;;
11421 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011422 $ac_shift
11423 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011424 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11426 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11427 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011428
11429 # This is an error.
Benny Prijono0b462322008-03-12 22:44:24 +000011430 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11431Try \`$0 --help' for more information." >&5
11432echo "$as_me: error: unrecognized option: $1
11433Try \`$0 --help' for more information." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011434 { (exit 1); exit 1; }; } ;;
11435
Benny Prijono0b462322008-03-12 22:44:24 +000011436 *) ac_config_targets="$ac_config_targets $1" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011437
11438 esac
11439 shift
11440done
11441
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011442ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011443
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011444if $ac_cs_silent; then
11445 exec 6>/dev/null
11446 ac_configure_extra_args="$ac_configure_extra_args --silent"
11447fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011448
11449_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011450cat >>$CONFIG_STATUS <<_ACEOF
11451if \$ac_cs_recheck; then
Benny Prijono0b462322008-03-12 22:44:24 +000011452 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11453 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011454fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011455
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011456_ACEOF
11457
Benny Prijono0b462322008-03-12 22:44:24 +000011458
11459
11460
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011461
11462cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011463for ac_config_target in $ac_config_targets
11464do
Benny Prijono0b462322008-03-12 22:44:24 +000011465 case "$ac_config_target" in
11466 # Handling of arguments.
11467 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
11468 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
11469 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
11470 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
11471 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
11472 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
11473 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
11474 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
11475 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
11476 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
11477 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
11478 "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
11479 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011480 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011481echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11482 { (exit 1); exit 1; }; };;
11483 esac
11484done
11485
11486# If the user did not use the arguments to specify the items to instantiate,
11487# then the envvar interface is used. Set only those that are not.
11488# We use the long form for the default assignment because of an extremely
11489# bizarre bug on SunOS 4.1.3.
11490if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11493fi
11494
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011495# Have a temporary directory for convenience. Make it in the build tree
Benny Prijono0b462322008-03-12 22:44:24 +000011496# simply because there is no reason to put it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011497# creating and moving files from /tmp can sometimes cause problems.
Benny Prijono0b462322008-03-12 22:44:24 +000011498# Create a temporary directory, and hook for its removal unless debugging.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011499$debug ||
11500{
Benny Prijono0b462322008-03-12 22:44:24 +000011501 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011502 trap '{ (exit 1); exit 1; }' 1 2 13 15
11503}
Benny Prijono0b462322008-03-12 22:44:24 +000011504
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011505# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011506
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011507{
Benny Prijono0b462322008-03-12 22:44:24 +000011508 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011509 test -n "$tmp" && test -d "$tmp"
11510} ||
11511{
Benny Prijono0b462322008-03-12 22:44:24 +000011512 tmp=./confstat$$-$RANDOM
11513 (umask 077 && mkdir $tmp)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011514} ||
11515{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011516 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011517 { (exit 1); exit 1; }
11518}
11519
Benny Prijono0b462322008-03-12 22:44:24 +000011520_ACEOF
11521
11522cat >>$CONFIG_STATUS <<_ACEOF
11523
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011524#
Benny Prijono0b462322008-03-12 22:44:24 +000011525# CONFIG_FILES section.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011526#
11527
11528# No need to generate the scripts if there are no CONFIG_FILES.
11529# This happens for instance when ./config.status config.h
Benny Prijono0b462322008-03-12 22:44:24 +000011530if test -n "\$CONFIG_FILES"; then
11531 # Protect against being on the right side of a sed subst in config.status.
11532 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11533 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11534s,@SHELL@,$SHELL,;t t
11535s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11536s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11537s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11538s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11539s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11540s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11541s,@exec_prefix@,$exec_prefix,;t t
11542s,@prefix@,$prefix,;t t
11543s,@program_transform_name@,$program_transform_name,;t t
11544s,@bindir@,$bindir,;t t
11545s,@sbindir@,$sbindir,;t t
11546s,@libexecdir@,$libexecdir,;t t
11547s,@datadir@,$datadir,;t t
11548s,@sysconfdir@,$sysconfdir,;t t
11549s,@sharedstatedir@,$sharedstatedir,;t t
11550s,@localstatedir@,$localstatedir,;t t
11551s,@libdir@,$libdir,;t t
11552s,@includedir@,$includedir,;t t
11553s,@oldincludedir@,$oldincludedir,;t t
11554s,@infodir@,$infodir,;t t
11555s,@mandir@,$mandir,;t t
11556s,@build_alias@,$build_alias,;t t
11557s,@host_alias@,$host_alias,;t t
11558s,@target_alias@,$target_alias,;t t
11559s,@DEFS@,$DEFS,;t t
11560s,@ECHO_C@,$ECHO_C,;t t
11561s,@ECHO_N@,$ECHO_N,;t t
11562s,@ECHO_T@,$ECHO_T,;t t
11563s,@LIBS@,$LIBS,;t t
11564s,@build@,$build,;t t
11565s,@build_cpu@,$build_cpu,;t t
11566s,@build_vendor@,$build_vendor,;t t
11567s,@build_os@,$build_os,;t t
11568s,@host@,$host,;t t
11569s,@host_cpu@,$host_cpu,;t t
11570s,@host_vendor@,$host_vendor,;t t
11571s,@host_os@,$host_os,;t t
11572s,@target@,$target,;t t
11573s,@target_cpu@,$target_cpu,;t t
11574s,@target_vendor@,$target_vendor,;t t
11575s,@target_os@,$target_os,;t t
11576s,@CC@,$CC,;t t
11577s,@CFLAGS@,$CFLAGS,;t t
11578s,@LDFLAGS@,$LDFLAGS,;t t
11579s,@CPPFLAGS@,$CPPFLAGS,;t t
11580s,@ac_ct_CC@,$ac_ct_CC,;t t
11581s,@EXEEXT@,$EXEEXT,;t t
11582s,@OBJEXT@,$OBJEXT,;t t
11583s,@CXX@,$CXX,;t t
11584s,@CXXFLAGS@,$CXXFLAGS,;t t
11585s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11586s,@ac_pjdir@,$ac_pjdir,;t t
11587s,@CPP@,$CPP,;t t
11588s,@EGREP@,$EGREP,;t t
11589s,@ac_os_objs@,$ac_os_objs,;t t
11590s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
11591s,@ac_pa_cflags@,$ac_pa_cflags,;t t
11592s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
11593s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t
11594s,@ac_no_small_filter@,$ac_no_small_filter,;t t
11595s,@ac_no_large_filter@,$ac_no_large_filter,;t t
11596s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
11597s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
11598s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
11599s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
Benny Prijono71f657d2008-03-17 14:24:21 +000011600s,@ac_no_g722_codec@,$ac_no_g722_codec,;t t
Benny Prijono0b462322008-03-12 22:44:24 +000011601s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
11602s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
11603s,@ac_no_ssl@,$ac_no_ssl,;t t
11604s,@openssl_h_present@,$openssl_h_present,;t t
11605s,@libssl_present@,$libssl_present,;t t
11606s,@libcrypto_present@,$libcrypto_present,;t t
11607s,@ac_cross_compile@,$ac_cross_compile,;t t
11608s,@ac_linux_poll@,$ac_linux_poll,;t t
11609s,@ac_host@,$ac_host,;t t
11610s,@ac_main_obj@,$ac_main_obj,;t t
11611s,@LIBOBJS@,$LIBOBJS,;t t
11612s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11613CEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011614
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011615_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011616
Benny Prijono0b462322008-03-12 22:44:24 +000011617 cat >>$CONFIG_STATUS <<\_ACEOF
11618 # Split the substitutions into bite-sized pieces for seds with
11619 # small command number limits, like on Digital OSF/1 and HP-UX.
11620 ac_max_sed_lines=48
11621 ac_sed_frag=1 # Number of current file.
11622 ac_beg=1 # First line for current file.
11623 ac_end=$ac_max_sed_lines # Line after last line for current file.
11624 ac_more_lines=:
11625 ac_sed_cmds=
11626 while $ac_more_lines; do
11627 if test $ac_beg -gt 1; then
11628 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11629 else
11630 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11631 fi
11632 if test ! -s $tmp/subs.frag; then
11633 ac_more_lines=false
11634 else
11635 # The purpose of the label and of the branching condition is to
11636 # speed up the sed processing (if there are no `@' at all, there
11637 # is no need to browse any of the substitutions).
11638 # These are the two extra sed commands mentioned above.
11639 (echo ':t
11640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11641 if test -z "$ac_sed_cmds"; then
11642 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11643 else
11644 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11645 fi
11646 ac_sed_frag=`expr $ac_sed_frag + 1`
11647 ac_beg=$ac_end
11648 ac_end=`expr $ac_end + $ac_max_sed_lines`
11649 fi
11650 done
11651 if test -z "$ac_sed_cmds"; then
11652 ac_sed_cmds=cat
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011653 fi
11654fi # test -n "$CONFIG_FILES"
11655
Benny Prijono0b462322008-03-12 22:44:24 +000011656_ACEOF
11657cat >>$CONFIG_STATUS <<\_ACEOF
11658for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11660 case $ac_file in
11661 - | *:- | *:-:* ) # input from stdin
11662 cat >$tmp/stdin
11663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11667 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011668 esac
11669
Benny Prijono0b462322008-03-12 22:44:24 +000011670 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11671 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011672$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11673 X"$ac_file" : 'X\(//\)[^/]' \| \
11674 X"$ac_file" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +000011675 X"$ac_file" : 'X\(/\)' \| \
11676 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011677echo X"$ac_file" |
Benny Prijono0b462322008-03-12 22:44:24 +000011678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11680 /^X\(\/\/\)$/{ s//\1/; q; }
11681 /^X\(\/\).*/{ s//\1/; q; }
11682 s/.*/./; q'`
11683 { if $as_mkdir_p; then
11684 mkdir -p "$ac_dir"
11685 else
11686 as_dir="$ac_dir"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011687 as_dirs=
Benny Prijono0b462322008-03-12 22:44:24 +000011688 while test ! -d "$as_dir"; do
11689 as_dirs="$as_dir $as_dirs"
11690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011691$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11692 X"$as_dir" : 'X\(//\)[^/]' \| \
11693 X"$as_dir" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +000011694 X"$as_dir" : 'X\(/\)' \| \
11695 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011696echo X"$as_dir" |
Benny Prijono0b462322008-03-12 22:44:24 +000011697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11699 /^X\(\/\/\)$/{ s//\1/; q; }
11700 /^X\(\/\).*/{ s//\1/; q; }
11701 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011702 done
Benny Prijono0b462322008-03-12 22:44:24 +000011703 test ! -n "$as_dirs" || mkdir $as_dirs
11704 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11705echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011706 { (exit 1); exit 1; }; }; }
Benny Prijono0b462322008-03-12 22:44:24 +000011707
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011708 ac_builddir=.
11709
Benny Prijono0b462322008-03-12 22:44:24 +000011710if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0b462322008-03-12 22:44:24 +000011712 # A "../" for each directory in $ac_dir_suffix.
11713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11714else
11715 ac_dir_suffix= ac_top_builddir=
11716fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011717
11718case $srcdir in
Benny Prijono0b462322008-03-12 22:44:24 +000011719 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011720 ac_srcdir=.
Benny Prijono0b462322008-03-12 22:44:24 +000011721 if test -z "$ac_top_builddir"; then
11722 ac_top_srcdir=.
11723 else
11724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11725 fi ;;
11726 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011727 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0b462322008-03-12 22:44:24 +000011728 ac_top_srcdir=$srcdir ;;
11729 *) # Relative path.
11730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011732esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011733
Benny Prijono0b462322008-03-12 22:44:24 +000011734# Do not use `cd foo && pwd` to compute absolute paths, because
11735# the directories may not exist.
11736case `pwd` in
11737.) ac_abs_builddir="$ac_dir";;
11738*)
11739 case "$ac_dir" in
11740 .) ac_abs_builddir=`pwd`;;
11741 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11742 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11743 esac;;
Benny Prijonofdafd402008-01-23 14:34:46 +000011744esac
Benny Prijono0b462322008-03-12 22:44:24 +000011745case $ac_abs_builddir in
11746.) ac_abs_top_builddir=${ac_top_builddir}.;;
11747*)
11748 case ${ac_top_builddir}. in
11749 .) ac_abs_top_builddir=$ac_abs_builddir;;
11750 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11751 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11752 esac;;
11753esac
11754case $ac_abs_builddir in
11755.) ac_abs_srcdir=$ac_srcdir;;
11756*)
11757 case $ac_srcdir in
11758 .) ac_abs_srcdir=$ac_abs_builddir;;
11759 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11760 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11761 esac;;
11762esac
11763case $ac_abs_builddir in
11764.) ac_abs_top_srcdir=$ac_top_srcdir;;
11765*)
11766 case $ac_top_srcdir in
11767 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11768 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11769 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11770 esac;;
11771esac
Benny Prijonofdafd402008-01-23 14:34:46 +000011772
Benny Prijono0b462322008-03-12 22:44:24 +000011773
11774
11775 if test x"$ac_file" != x-; then
11776 { echo "$as_me:$LINENO: creating $ac_file" >&5
11777echo "$as_me: creating $ac_file" >&6;}
11778 rm -f "$ac_file"
11779 fi
11780 # Let's still pretend it is `configure' which instantiates (i.e., don't
11781 # use $as_me), people would be surprised to read:
11782 # /* config.h. Generated by config.status. */
11783 if test x"$ac_file" = x-; then
11784 configure_input=
11785 else
11786 configure_input="$ac_file. "
11787 fi
11788 configure_input=$configure_input"Generated from `echo $ac_file_in |
11789 sed 's,.*/,,'` by configure."
11790
11791 # First look for the input files in the build tree, otherwise in the
11792 # src tree.
11793 ac_file_inputs=`IFS=:
11794 for f in $ac_file_in; do
11795 case $f in
11796 -) echo $tmp/stdin ;;
11797 [\\/$]*)
11798 # Absolute (can't be DOS-style, as IFS=:)
11799 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11800echo "$as_me: error: cannot find input file: $f" >&2;}
11801 { (exit 1); exit 1; }; }
11802 echo "$f";;
11803 *) # Relative
11804 if test -f "$f"; then
11805 # Build tree
11806 echo "$f"
11807 elif test -f "$srcdir/$f"; then
11808 # Source tree
11809 echo "$srcdir/$f"
11810 else
11811 # /dev/null tree
11812 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11813echo "$as_me: error: cannot find input file: $f" >&2;}
11814 { (exit 1); exit 1; }; }
11815 fi;;
11816 esac
11817 done` || { (exit 1); exit 1; }
11818_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011819cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011820 sed "$ac_vpsub
11821$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011822_ACEOF
11823cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011824:t
11825/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono0b462322008-03-12 22:44:24 +000011826s,@configure_input@,$configure_input,;t t
11827s,@srcdir@,$ac_srcdir,;t t
11828s,@abs_srcdir@,$ac_abs_srcdir,;t t
11829s,@top_srcdir@,$ac_top_srcdir,;t t
11830s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11831s,@builddir@,$ac_builddir,;t t
11832s,@abs_builddir@,$ac_abs_builddir,;t t
11833s,@top_builddir@,$ac_top_builddir,;t t
11834s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11835" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11836 rm -f $tmp/stdin
11837 if test x"$ac_file" != x-; then
11838 mv $tmp/out $ac_file
11839 else
11840 cat $tmp/out
11841 rm -f $tmp/out
11842 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011843
Benny Prijono0b462322008-03-12 22:44:24 +000011844done
11845_ACEOF
11846cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011847
Benny Prijono0b462322008-03-12 22:44:24 +000011848#
11849# CONFIG_HEADER section.
11850#
11851
11852# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11853# NAME is the cpp macro being defined and VALUE is the value it is being given.
11854#
11855# ac_d sets the value in "#define NAME VALUE" lines.
11856ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11857ac_dB='[ ].*$,\1#\2'
11858ac_dC=' '
11859ac_dD=',;t'
11860# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11861ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11862ac_uB='$,\1#\2define\3'
11863ac_uC=' '
11864ac_uD=',;t'
11865
11866for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011868 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +000011869 - | *:- | *:-:* ) # input from stdin
11870 cat >$tmp/stdin
11871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11875 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011876 esac
Benny Prijono0b462322008-03-12 22:44:24 +000011877
11878 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11879echo "$as_me: creating $ac_file" >&6;}
11880
11881 # First look for the input files in the build tree, otherwise in the
11882 # src tree.
11883 ac_file_inputs=`IFS=:
11884 for f in $ac_file_in; do
11885 case $f in
11886 -) echo $tmp/stdin ;;
11887 [\\/$]*)
11888 # Absolute (can't be DOS-style, as IFS=:)
11889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11890echo "$as_me: error: cannot find input file: $f" >&2;}
11891 { (exit 1); exit 1; }; }
11892 # Do quote $f, to prevent DOS paths from being IFS'd.
11893 echo "$f";;
11894 *) # Relative
11895 if test -f "$f"; then
11896 # Build tree
11897 echo "$f"
11898 elif test -f "$srcdir/$f"; then
11899 # Source tree
11900 echo "$srcdir/$f"
11901 else
11902 # /dev/null tree
11903 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11904echo "$as_me: error: cannot find input file: $f" >&2;}
11905 { (exit 1); exit 1; }; }
11906 fi;;
11907 esac
11908 done` || { (exit 1); exit 1; }
11909 # Remove the trailing spaces.
11910 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11911
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011912_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011913
Benny Prijono0b462322008-03-12 22:44:24 +000011914# Transform confdefs.h into two sed scripts, `conftest.defines' and
11915# `conftest.undefs', that substitutes the proper values into
11916# config.h.in to produce config.h. The first handles `#define'
11917# templates, and the second `#undef' templates.
11918# And first: Protect against being on the right side of a sed subst in
11919# config.status. Protect against being in an unquoted here document
11920# in config.status.
11921rm -f conftest.defines conftest.undefs
11922# Using a here document instead of a string reduces the quoting nightmare.
11923# Putting comments in sed scripts is not portable.
11924#
11925# `end' is used to avoid that the second main sed command (meant for
11926# 0-ary CPP macros) applies to n-ary macro definitions.
11927# See the Autoconf documentation for `clear'.
11928cat >confdef2sed.sed <<\_ACEOF
11929s/[\\&,]/\\&/g
11930s,[\\$`],\\&,g
11931t clear
11932: clear
11933s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11934t end
11935s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11936: end
11937_ACEOF
11938# If some macros were called several times there might be several times
11939# the same #defines, which is useless. Nevertheless, we may not want to
11940# sort them, since we want the *last* AC-DEFINE to be honored.
11941uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11942sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11943rm -f confdef2sed.sed
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011944
Benny Prijono0b462322008-03-12 22:44:24 +000011945# This sed command replaces #undef with comments. This is necessary, for
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011946# example, in the case of _POSIX_SOURCE, which is predefined and required
11947# on some systems where configure will not decide to define it.
Benny Prijono0b462322008-03-12 22:44:24 +000011948cat >>conftest.undefs <<\_ACEOF
11949s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Benny Prijonofdafd402008-01-23 14:34:46 +000011950_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011951
11952# Break up conftest.defines because some shells have a limit on the size
11953# of here documents, and old seds have small limits too (100 cmds).
11954echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11955echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11956echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11957echo ' :' >>$CONFIG_STATUS
11958rm -f conftest.tail
11959while grep . conftest.defines >/dev/null
11960do
11961 # Write a limited-size here document to $tmp/defines.sed.
11962 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11963 # Speed up: don't consider the non `#define' lines.
11964 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11965 # Work around the forget-to-reset-the-flag bug.
11966 echo 't clr' >>$CONFIG_STATUS
11967 echo ': clr' >>$CONFIG_STATUS
11968 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011969 echo 'CEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011970 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11971 rm -f $tmp/in
11972 mv $tmp/out $tmp/in
11973' >>$CONFIG_STATUS
11974 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011975 rm -f conftest.defines
11976 mv conftest.tail conftest.defines
11977done
Benny Prijono0b462322008-03-12 22:44:24 +000011978rm -f conftest.defines
11979echo ' fi # grep' >>$CONFIG_STATUS
11980echo >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011981
Benny Prijono0b462322008-03-12 22:44:24 +000011982# Break up conftest.undefs because some shells have a limit on the size
11983# of here documents, and old seds have small limits too (100 cmds).
11984echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11985rm -f conftest.tail
11986while grep . conftest.undefs >/dev/null
11987do
11988 # Write a limited-size here document to $tmp/undefs.sed.
11989 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11990 # Speed up: don't consider the non `#undef'
11991 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11992 # Work around the forget-to-reset-the-flag bug.
11993 echo 't clr' >>$CONFIG_STATUS
11994 echo ': clr' >>$CONFIG_STATUS
11995 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11996 echo 'CEOF
11997 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11998 rm -f $tmp/in
11999 mv $tmp/out $tmp/in
12000' >>$CONFIG_STATUS
12001 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12002 rm -f conftest.undefs
12003 mv conftest.tail conftest.undefs
12004done
12005rm -f conftest.undefs
12006
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012007cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000012008 # Let's still pretend it is `configure' which instantiates (i.e., don't
12009 # use $as_me), people would be surprised to read:
12010 # /* config.h. Generated by config.status. */
12011 if test x"$ac_file" = x-; then
12012 echo "/* Generated by configure. */" >$tmp/config.h
12013 else
12014 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12015 fi
12016 cat $tmp/in >>$tmp/config.h
12017 rm -f $tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012018 if test x"$ac_file" != x-; then
Benny Prijono0b462322008-03-12 22:44:24 +000012019 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012021echo "$as_me: $ac_file is unchanged" >&6;}
12022 else
Benny Prijono0b462322008-03-12 22:44:24 +000012023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12025 X"$ac_file" : 'X\(//\)[^/]' \| \
12026 X"$ac_file" : 'X\(//\)$' \| \
12027 X"$ac_file" : 'X\(/\)' \| \
12028 . : '\(.\)' 2>/dev/null ||
12029echo X"$ac_file" |
12030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12032 /^X\(\/\/\)$/{ s//\1/; q; }
12033 /^X\(\/\).*/{ s//\1/; q; }
12034 s/.*/./; q'`
12035 { if $as_mkdir_p; then
12036 mkdir -p "$ac_dir"
12037 else
12038 as_dir="$ac_dir"
12039 as_dirs=
12040 while test ! -d "$as_dir"; do
12041 as_dirs="$as_dir $as_dirs"
12042 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12044 X"$as_dir" : 'X\(//\)[^/]' \| \
12045 X"$as_dir" : 'X\(//\)$' \| \
12046 X"$as_dir" : 'X\(/\)' \| \
12047 . : '\(.\)' 2>/dev/null ||
12048echo X"$as_dir" |
12049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12051 /^X\(\/\/\)$/{ s//\1/; q; }
12052 /^X\(\/\).*/{ s//\1/; q; }
12053 s/.*/./; q'`
12054 done
12055 test ! -n "$as_dirs" || mkdir $as_dirs
12056 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12057echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12058 { (exit 1); exit 1; }; }; }
12059
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012060 rm -f $ac_file
Benny Prijono0b462322008-03-12 22:44:24 +000012061 mv $tmp/config.h $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012062 fi
12063 else
Benny Prijono0b462322008-03-12 22:44:24 +000012064 cat $tmp/config.h
12065 rm -f $tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012066 fi
Benny Prijono0b462322008-03-12 22:44:24 +000012067done
12068_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012069
Benny Prijono0b462322008-03-12 22:44:24 +000012070cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012071
12072{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012073_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012074chmod +x $CONFIG_STATUS
12075ac_clean_files=$ac_clean_files_save
12076
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012077
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012078# configure is writing to config.log, and then calls config.status.
12079# config.status does its own redirection, appending to config.log.
12080# Unfortunately, on DOS this fails, as config.log is still kept open
12081# by configure, so config.status won't be able to write to it; its
12082# output is simply discarded. So we exec the FD to /dev/null,
12083# effectively closing config.log, so it can be properly (re)opened and
12084# appended to by config.status. When coming back to configure, we
12085# need to make the FD available again.
12086if test "$no_create" != yes; then
12087 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012088 ac_config_status_args=
12089 test "$silent" = yes &&
12090 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012091 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012093 exec 5>>config.log
12094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12095 # would make configure fail if this is the last instruction.
12096 $ac_cs_success || { (exit 1); exit 1; }
12097fi
12098
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012099
Benny Prijonod9627842007-04-18 09:24:31 +000012100
Benny Prijono0b462322008-03-12 22:44:24 +000012101echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000012102
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012103Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
Benny Prijonod9627842007-04-18 09:24:31 +000012104
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012105Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012106 - 'user.mak'
12107 - 'pjlib/include/pj/config_site.h'
12108
12109The next step now is to run 'make dep' and 'make'.
12110" >&5
12111echo "${ECHO_T}
12112
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012113Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
Benny Prijonod9627842007-04-18 09:24:31 +000012114
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012115Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012116 - 'user.mak'
12117 - 'pjlib/include/pj/config_site.h'
12118
12119The next step now is to run 'make dep' and 'make'.
Benny Prijono0b462322008-03-12 22:44:24 +000012120" >&6
Benny Prijonod9627842007-04-18 09:24:31 +000012121