blob: 8c04574ce8af5b2fd46db80289f7d39bc245332d [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 Prijono0b462322008-03-12 22:44:24 +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_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 Prijonoc4c61d02006-08-20 20:47:34 +0000862 --disable-small-filter Exclude small filter in resampling
863 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000864 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
865 --disable-g711-codec Exclude G.711 codecs from the build
866 --disable-l16-codec Exclude Linear/L16 codec family from the build
867 --disable-gsm-codec Exclude GSM codec in the build
868 --disable-speex-codec Exclude Speex codecs in the build
869 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +0000870 --enable-libsamplerate Link with libsamplerate when available. Note that
871 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoce1db762007-02-14 02:21:08 +0000872 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000873
874
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000875Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
Benny Prijono0b462322008-03-12 22:44:24 +0000880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000884 CPP C preprocessor
885
886Use these variables to override the choices made by `configure' or to help
887it to find libraries and programs with nonstandard names/locations.
888
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000889_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000890fi
891
892if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
Benny Prijono0b462322008-03-12 22:44:24 +0000894 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono0b462322008-03-12 22:44:24 +0000896 test -d $ac_dir || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000897 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000898
Benny Prijono0b462322008-03-12 22:44:24 +0000899if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0b462322008-03-12 22:44:24 +0000901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903else
904 ac_dir_suffix= ac_top_builddir=
905fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000906
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000907case $srcdir in
Benny Prijono0b462322008-03-12 22:44:24 +0000908 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000909 ac_srcdir=.
Benny Prijono0b462322008-03-12 22:44:24 +0000910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000916 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0b462322008-03-12 22:44:24 +0000917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000921esac
922
Benny Prijono0b462322008-03-12 22:44:24 +0000923# Do not use `cd foo && pwd` to compute absolute paths, because
924# the directories may not exist.
925case `pwd` in
926.) ac_abs_builddir="$ac_dir";;
927*)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_builddir=${ac_top_builddir}.;;
936*)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_srcdir=$ac_srcdir;;
945*)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_srcdir=$ac_top_srcdir;;
954*)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960esac
961
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000974 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijono0b462322008-03-12 22:44:24 +0000976 fi
977 cd $ac_popdir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000978 done
979fi
980
Benny Prijono0b462322008-03-12 22:44:24 +0000981test -n "$ac_init_help" && exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000982if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000983 cat <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000984pjproject configure 0.8
Benny Prijono0b462322008-03-12 22:44:24 +0000985generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000986
Benny Prijono0b462322008-03-12 22:44:24 +0000987Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000988This configure script is free software; the Free Software Foundation
989gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000990_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +0000991 exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000992fi
Benny Prijono0b462322008-03-12 22:44:24 +0000993exec 5>config.log
994cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000995This file contains any messages produced by compilers while
996running configure, to aid debugging if configure makes a mistake.
997
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000998It was created by pjproject $as_me 0.8, which was
Benny Prijono0b462322008-03-12 22:44:24 +0000999generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001000
1001 $ $0 $@
1002
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001003_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001004{
1005cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001006## --------- ##
1007## Platform. ##
1008## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001009
1010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018
1019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Benny Prijono0b462322008-03-12 22:44:24 +00001022hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026
1027_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001028
1029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030for as_dir in $PATH
1031do
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035done
1036
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001037} >&5
1038
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001039cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001040
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001041
1042## ----------- ##
1043## Core tests. ##
1044## ----------- ##
1045
1046_ACEOF
1047
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001048
1049# Keep a trace of the command line.
1050# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001051# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001052# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001053# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001054ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001055ac_configure_args0=
1056ac_configure_args1=
Benny Prijono0b462322008-03-12 22:44:24 +00001057ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001058ac_must_keep_next=false
1059for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001060do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001061 for ac_arg
1062 do
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
Benny Prijono0b462322008-03-12 22:44:24 +00001068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 2)
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1086 ;;
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1089 fi
Benny Prijono0b462322008-03-12 22:44:24 +00001090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001093 ;;
1094 esac
1095 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001096done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001097$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098$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 +00001099
1100# When interrupted or exit'd, cleanup temporary files, and complete
1101# config.log. We remove comments because anyway the quotes in there
1102# would cause problems or look ugly.
Benny Prijono0b462322008-03-12 22:44:24 +00001103# WARNING: Be sure not to use single quotes in there, as some shells,
1104# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001105trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001107 {
1108 echo
1109
1110 cat <<\_ASBOX
1111## ---------------- ##
1112## Cache variables. ##
1113## ---------------- ##
1114_ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
Benny Prijono0b462322008-03-12 22:44:24 +00001117{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001118 (set) 2>&1 |
Benny Prijono0b462322008-03-12 22:44:24 +00001119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001121 sed -n \
Benny Prijono0b462322008-03-12 22:44:24 +00001122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001124 ;;
Benny Prijono0b462322008-03-12 22:44:24 +00001125 *)
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ;;
1129 esac;
1130}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001131 echo
1132
1133 cat <<\_ASBOX
1134## ----------------- ##
1135## Output variables. ##
1136## ----------------- ##
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1140 do
Benny Prijono0b462322008-03-12 22:44:24 +00001141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001143 done | sort
1144 echo
1145
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
Benny Prijono0b462322008-03-12 22:44:24 +00001148## ------------- ##
1149## Output files. ##
1150## ------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001151_ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1154 do
Benny Prijono0b462322008-03-12 22:44:24 +00001155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001157 done | sort
1158 echo
1159 fi
1160
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163## ----------- ##
1164## confdefs.h. ##
1165## ----------- ##
1166_ASBOX
1167 echo
Benny Prijono0b462322008-03-12 22:44:24 +00001168 sed "/^$/d" confdefs.h | sort
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001169 echo
1170 fi
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
Benny Prijono0b462322008-03-12 22:44:24 +00001175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001177 exit $exit_status
Benny Prijono0b462322008-03-12 22:44:24 +00001178 ' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001179for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181done
1182ac_signal=0
1183
1184# confdefs.h avoids OS command line length limits that DEFS can exceed.
Benny Prijono0b462322008-03-12 22:44:24 +00001185rm -rf conftest* confdefs.h
1186# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187echo >confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001188
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001189# Predefined preprocessor variables.
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_NAME "$PACKAGE_NAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_VERSION "$PACKAGE_VERSION"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_STRING "$PACKAGE_STRING"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213_ACEOF
1214
1215
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001216# Let the site file select an alternate cache file if it wants to.
1217# Prefer explicitly selected file to automatically selected ones.
Benny Prijono0b462322008-03-12 22:44:24 +00001218if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001224fi
Benny Prijono0b462322008-03-12 22:44:24 +00001225for ac_site_file in $CONFIG_SITE; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001226 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001228echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001229 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001230 . "$ac_site_file"
1231 fi
1232done
1233
1234if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001239echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001243 esac
1244 fi
1245else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001247echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1249fi
1250
1251# Check that the precious variables saved in the cache have kept the same
1252# value.
1253ac_cache_corrupted=false
Benny Prijono0b462322008-03-12 22:44:24 +00001254for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
Benny Prijono0b462322008-03-12 22:44:24 +00001258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001260 case $ac_old_set,$ac_new_set in
1261 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001262 { 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 +00001263echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001267echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1270 *)
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001273echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001277echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001278 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001279 fi;;
1280 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001281 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
Benny Prijono0b462322008-03-12 22:44:24 +00001284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001291 esac
1292 fi
1293done
1294if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001296echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1300fi
1301
1302ac_ext=c
1303ac_cpp='$CPP $CPPFLAGS'
1304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001308
1309
Benny Prijono0b462322008-03-12 22:44:24 +00001310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
Benny Prijono5b818b22006-09-17 22:58:51 +00001335host_orig="$host"
1336
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001337ac_aux_dir=
Benny Prijono0b462322008-03-12 22:44:24 +00001338for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339 if test -f $ac_dir/install-sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 break
Benny Prijono0b462322008-03-12 22:44:24 +00001343 elif test -f $ac_dir/install.sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 break
Benny Prijono0b462322008-03-12 22:44:24 +00001347 elif test -f $ac_dir/shtool; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001348 ac_aux_dir=$ac_dir
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 break
1351 fi
1352done
1353if test -z "$ac_aux_dir"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001356 { (exit 1); exit 1; }; }
1357fi
Benny Prijono0b462322008-03-12 22:44:24 +00001358ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001361
1362# Make sure we can run config.sub.
Benny Prijono0b462322008-03-12 22:44:24 +00001363$ac_config_sub sun4 >/dev/null 2>&1 ||
1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1365echo "$as_me: error: cannot run $ac_config_sub" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001366 { (exit 1); exit 1; }; }
1367
Benny Prijono0b462322008-03-12 22:44:24 +00001368echo "$as_me:$LINENO: checking build system type" >&5
1369echo $ECHO_N "checking build system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001370if test "${ac_cv_build+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372else
Benny Prijono0b462322008-03-12 22:44:24 +00001373 ac_cv_build_alias=$build_alias
1374test -z "$ac_cv_build_alias" &&
1375 ac_cv_build_alias=`$ac_config_guess`
1376test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001378echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1379 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +00001380ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1382echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001383 { (exit 1); exit 1; }; }
1384
1385fi
Benny Prijono0b462322008-03-12 22:44:24 +00001386echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1387echo "${ECHO_T}$ac_cv_build" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001388build=$ac_cv_build
Benny Prijono0b462322008-03-12 22:44:24 +00001389build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001392
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001393
Benny Prijono0b462322008-03-12 22:44:24 +00001394echo "$as_me:$LINENO: checking host system type" >&5
1395echo $ECHO_N "checking host system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001396if test "${ac_cv_host+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398else
Benny Prijono0b462322008-03-12 22:44:24 +00001399 ac_cv_host_alias=$host_alias
1400test -z "$ac_cv_host_alias" &&
1401 ac_cv_host_alias=$ac_cv_build_alias
1402ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1404echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001405 { (exit 1); exit 1; }; }
1406
1407fi
Benny Prijono0b462322008-03-12 22:44:24 +00001408echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1409echo "${ECHO_T}$ac_cv_host" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001410host=$ac_cv_host
Benny Prijono0b462322008-03-12 22:44:24 +00001411host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1412host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1413host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001414
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001415
Benny Prijono0b462322008-03-12 22:44:24 +00001416echo "$as_me:$LINENO: checking target system type" >&5
1417echo $ECHO_N "checking target system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001418if test "${ac_cv_target+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
Benny Prijono0b462322008-03-12 22:44:24 +00001421 ac_cv_target_alias=$target_alias
1422test "x$ac_cv_target_alias" = "x" &&
1423 ac_cv_target_alias=$ac_cv_host_alias
1424ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1426echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001427 { (exit 1); exit 1; }; }
1428
1429fi
Benny Prijono0b462322008-03-12 22:44:24 +00001430echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1431echo "${ECHO_T}$ac_cv_target" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001432target=$ac_cv_target
Benny Prijono0b462322008-03-12 22:44:24 +00001433target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001436
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001437
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001438# The aliases save the names the user supplied, while $host etc.
1439# will get canonicalized.
1440test -n "$target_alias" &&
1441 test "$program_prefix$program_suffix$program_transform_name" = \
1442 NONENONEs,x,x, &&
1443 program_prefix=${target_alias}-
Benny Prijono0b462322008-03-12 22:44:24 +00001444 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 +00001445
Benny Prijono0b462322008-03-12 22:44:24 +00001446 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 +00001447
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001448
Benny Prijono12483112007-03-12 10:44:38 +00001449
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001450if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001451 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001452else
1453 CFLAGS="$CFLAGS"
1454fi
1455
1456CXXFLAGS="$CFLAGS $CXXFLAGS"
1457
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001458ac_ext=c
1459ac_cpp='$CPP $CPPFLAGS'
1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001466echo "$as_me:$LINENO: checking for $ac_word" >&5
1467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001468if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470else
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475for as_dir in $PATH
1476do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 break 2
1484 fi
1485done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001486done
1487
1488fi
1489fi
1490CC=$ac_cv_prog_CC
1491if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001492 echo "$as_me:$LINENO: result: $CC" >&5
1493echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001494else
Benny Prijono0b462322008-03-12 22:44:24 +00001495 echo "$as_me:$LINENO: result: no" >&5
1496echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001497fi
1498
1499fi
1500if test -z "$ac_cv_prog_CC"; then
1501 ac_ct_CC=$CC
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503set dummy gcc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001504echo "$as_me:$LINENO: checking for $ac_word" >&5
1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513for as_dir in $PATH
1514do
1515 IFS=$as_save_IFS
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001519 ac_cv_prog_ac_ct_CC="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 break 2
1522 fi
1523done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001524done
1525
1526fi
1527fi
1528ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529if test -n "$ac_ct_CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001532else
Benny Prijono0b462322008-03-12 22:44:24 +00001533 echo "$as_me:$LINENO: result: no" >&5
1534echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001535fi
1536
Benny Prijono0b462322008-03-12 22:44:24 +00001537 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001538else
1539 CC="$ac_cv_prog_CC"
1540fi
1541
1542if test -z "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001543 if test -n "$ac_tool_prefix"; then
1544 # 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 +00001545set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001546echo "$as_me:$LINENO: checking for $ac_word" >&5
1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001548if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
1556do
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001561 ac_cv_prog_CC="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1564 fi
1565done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001566done
1567
1568fi
1569fi
1570CC=$ac_cv_prog_CC
1571if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001572 echo "$as_me:$LINENO: result: $CC" >&5
1573echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001574else
Benny Prijono0b462322008-03-12 22:44:24 +00001575 echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001577fi
1578
Benny Prijono0b462322008-03-12 22:44:24 +00001579fi
1580if test -z "$ac_cv_prog_CC"; then
1581 ac_ct_CC=$CC
1582 # Extract the first word of "cc", so it can be a program name with args.
1583set dummy cc; ac_word=$2
1584echo "$as_me:$LINENO: checking for $ac_word" >&5
1585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591else
1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593for as_dir in $PATH
1594do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001602 fi
Benny Prijono0b462322008-03-12 22:44:24 +00001603done
1604done
1605
1606fi
1607fi
1608ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611echo "${ECHO_T}$ac_ct_CC" >&6
1612else
1613 echo "$as_me:$LINENO: result: no" >&5
1614echo "${ECHO_T}no" >&6
1615fi
1616
1617 CC=$ac_ct_CC
1618else
1619 CC="$ac_cv_prog_CC"
1620fi
1621
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001622fi
1623if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625set dummy cc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001628if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC="$CC" # Let the user override the test.
1633else
1634 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected=yes
1644 continue
1645 fi
1646 ac_cv_prog_CC="cc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001651done
1652
1653if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy $ac_cv_prog_CC
1656 shift
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1661 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001663 fi
1664fi
1665fi
1666fi
1667CC=$ac_cv_prog_CC
1668if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001669 echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001671else
Benny Prijono0b462322008-03-12 22:44:24 +00001672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001674fi
1675
1676fi
1677if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001679 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001680 do
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001683echo "$as_me:$LINENO: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001685if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1701 fi
1702done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001703done
1704
1705fi
1706fi
1707CC=$ac_cv_prog_CC
1708if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001709 echo "$as_me:$LINENO: result: $CC" >&5
1710echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001711else
Benny Prijono0b462322008-03-12 22:44:24 +00001712 echo "$as_me:$LINENO: result: no" >&5
1713echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001714fi
1715
1716 test -n "$CC" && break
1717 done
1718fi
1719if test -z "$CC"; then
1720 ac_ct_CC=$CC
Benny Prijono0b462322008-03-12 22:44:24 +00001721 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001722do
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724set dummy $ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001725echo "$as_me:$LINENO: checking for $ac_word" >&5
1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001740 ac_cv_prog_ac_ct_CC="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001745done
1746
1747fi
1748fi
1749ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750if test -n "$ac_ct_CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001753else
Benny Prijono0b462322008-03-12 22:44:24 +00001754 echo "$as_me:$LINENO: result: no" >&5
1755echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001756fi
1757
1758 test -n "$ac_ct_CC" && break
1759done
1760
Benny Prijono0b462322008-03-12 22:44:24 +00001761 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001762fi
1763
1764fi
1765
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001766
1767test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768See \`config.log' for more details." >&5
1769echo "$as_me: error: no acceptable C compiler found in \$PATH
1770See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001771 { (exit 1); exit 1; }; }
1772
1773# Provide some information about the compiler.
Benny Prijono0b462322008-03-12 22:44:24 +00001774echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001776ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0b462322008-03-12 22:44:24 +00001777{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001779 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001781 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00001782{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001784 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001786 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00001787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001789 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001791 (exit $ac_status); }
1792
1793cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001794/* confdefs.h. */
1795_ACEOF
1796cat confdefs.h >>conftest.$ac_ext
1797cat >>conftest.$ac_ext <<_ACEOF
1798/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001799
1800int
1801main ()
1802{
1803
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001809ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001810# Try to create an executable without -o first, disregard a.out.
1811# It will help us diagnose broken compilers, and finding out an intuition
1812# of exeext.
Benny Prijono0b462322008-03-12 22:44:24 +00001813echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001815ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono0b462322008-03-12 22:44:24 +00001816if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001818 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001820 (exit $ac_status); }; then
Benny Prijono0b462322008-03-12 22:44:24 +00001821 # Find the output, starting from the most likely. This scheme is
1822# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823# resort.
1824
1825# Be careful to initialize this variable, since it used to be cached.
1826# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827ac_cv_exeext=
1828# b.out is created by i960 compilers.
1829for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001830do
1831 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001832 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834 ;;
1835 conftest.$ac_ext )
1836 # This is the source file.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001837 ;;
1838 [ab].out )
1839 # We found the default executable, but exeext='' is most
1840 # certainly right.
1841 break;;
1842 *.* )
Benny Prijono0b462322008-03-12 22:44:24 +00001843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1847 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001848 break;;
1849 * )
1850 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001851 esac
1852done
1853else
1854 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858See \`config.log' for more details." >&5
1859echo "$as_me: error: C compiler cannot create executables
1860See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001861 { (exit 77); exit 77; }; }
1862fi
1863
1864ac_exeext=$ac_cv_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00001865echo "$as_me:$LINENO: result: $ac_file" >&5
1866echo "${ECHO_T}$ac_file" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001867
Benny Prijono0b462322008-03-12 22:44:24 +00001868# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001869# the compiler is broken, or we cross compile.
Benny Prijono0b462322008-03-12 22:44:24 +00001870echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001872# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873# If not cross compiling, check that we can run a simple program.
1874if test "$cross_compiling" != yes; then
1875 if { ac_try='./$ac_file'
Benny Prijono0b462322008-03-12 22:44:24 +00001876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 (eval $ac_try) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001878 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001880 (exit $ac_status); }; }; then
1881 cross_compiling=no
1882 else
1883 if test "$cross_compiling" = maybe; then
1884 cross_compiling=yes
1885 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887If you meant to cross compile, use \`--host'.
1888See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001889echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001890If you meant to cross compile, use \`--host'.
1891See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001892 { (exit 1); exit 1; }; }
1893 fi
1894 fi
1895fi
Benny Prijono0b462322008-03-12 22:44:24 +00001896echo "$as_me:$LINENO: result: yes" >&5
1897echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001898
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001899rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001900ac_clean_files=$ac_clean_files_save
Benny Prijono0b462322008-03-12 22:44:24 +00001901# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902# the compiler is broken, or we cross compile.
Benny Prijono0b462322008-03-12 22:44:24 +00001903echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906echo "${ECHO_T}$cross_compiling" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001907
Benny Prijono0b462322008-03-12 22:44:24 +00001908echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001912 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917# work properly (i.e., refer to `conftest.exe'), while it won't with
1918# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001919for ac_file in conftest.exe conftest conftest.*; do
1920 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001921 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono0b462322008-03-12 22:44:24 +00001924 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001925 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001926 * ) break;;
1927 esac
1928done
1929else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931See \`config.log' for more details." >&5
1932echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001934 { (exit 1); exit 1; }; }
1935fi
1936
1937rm -f conftest$ac_cv_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00001938echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939echo "${ECHO_T}$ac_cv_exeext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001940
1941rm -f conftest.$ac_ext
1942EXEEXT=$ac_cv_exeext
1943ac_exeext=$EXEEXT
Benny Prijono0b462322008-03-12 22:44:24 +00001944echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001946if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001950/* confdefs.h. */
1951_ACEOF
1952cat confdefs.h >>conftest.$ac_ext
1953cat >>conftest.$ac_ext <<_ACEOF
1954/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001955
1956int
1957main ()
1958{
1959
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964rm -f conftest.o conftest.obj
Benny Prijono0b462322008-03-12 22:44:24 +00001965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001967 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001969 (exit $ac_status); }; then
Benny Prijono0b462322008-03-12 22:44:24 +00001970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001971 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974 break;;
1975 esac
1976done
1977else
1978 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982See \`config.log' for more details." >&5
1983echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001985 { (exit 1); exit 1; }; }
1986fi
1987
1988rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989fi
Benny Prijono0b462322008-03-12 22:44:24 +00001990echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991echo "${ECHO_T}$ac_cv_objext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001992OBJEXT=$ac_cv_objext
1993ac_objext=$OBJEXT
Benny Prijono0b462322008-03-12 22:44:24 +00001994echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001996if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002000/* confdefs.h. */
2001_ACEOF
2002cat confdefs.h >>conftest.$ac_ext
2003cat >>conftest.$ac_ext <<_ACEOF
2004/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002005
2006int
2007main ()
2008{
2009#ifndef __GNUC__
2010 choke me
2011#endif
2012
2013 ;
2014 return 0;
2015}
2016_ACEOF
2017rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002020 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002021 grep -v '^ *+' conftest.er1 >conftest.err
2022 rm -f conftest.er1
2023 cat conftest.err >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002025 (exit $ac_status); } &&
2026 { ac_try='test -z "$ac_c_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 (eval $ac_try) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002039 ac_compiler_gnu=yes
2040else
2041 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002042sed 's/^/| /' conftest.$ac_ext >&5
2043
Benny Prijono0b462322008-03-12 22:44:24 +00002044ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002045fi
Benny Prijono0b462322008-03-12 22:44:24 +00002046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002047ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049fi
Benny Prijono0b462322008-03-12 22:44:24 +00002050echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002052GCC=`test $ac_compiler_gnu = yes && echo yes`
2053ac_test_CFLAGS=${CFLAGS+set}
2054ac_save_CFLAGS=$CFLAGS
Benny Prijono0b462322008-03-12 22:44:24 +00002055CFLAGS="-g"
2056echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002058if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
Benny Prijono0b462322008-03-12 22:44:24 +00002061 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002062/* confdefs.h. */
2063_ACEOF
2064cat confdefs.h >>conftest.$ac_ext
2065cat >>conftest.$ac_ext <<_ACEOF
2066/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002067
2068int
2069main ()
2070{
2071
2072 ;
2073 return 0;
2074}
2075_ACEOF
2076rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002079 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002080 grep -v '^ *+' conftest.er1 >conftest.err
2081 rm -f conftest.er1
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002098 ac_cv_prog_cc_g=yes
2099else
2100 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002101sed 's/^/| /' conftest.$ac_ext >&5
2102
Benny Prijono0b462322008-03-12 22:44:24 +00002103ac_cv_prog_cc_g=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002104fi
Benny Prijono0b462322008-03-12 22:44:24 +00002105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002106fi
Benny Prijono0b462322008-03-12 22:44:24 +00002107echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002109if test "$ac_test_CFLAGS" = set; then
2110 CFLAGS=$ac_save_CFLAGS
2111elif test $ac_cv_prog_cc_g = yes; then
2112 if test "$GCC" = yes; then
2113 CFLAGS="-g -O2"
2114 else
2115 CFLAGS="-g"
2116 fi
2117else
2118 if test "$GCC" = yes; then
2119 CFLAGS="-O2"
2120 else
2121 CFLAGS=
2122 fi
2123fi
Benny Prijono0b462322008-03-12 22:44:24 +00002124echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126if test "${ac_cv_prog_cc_stdc+set}" = set; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
Benny Prijono0b462322008-03-12 22:44:24 +00002129 ac_cv_prog_cc_stdc=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002130ac_save_CC=$CC
2131cat >conftest.$ac_ext <<_ACEOF
2132/* confdefs.h. */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
2136/* end confdefs.h. */
2137#include <stdarg.h>
2138#include <stdio.h>
2139#include <sys/types.h>
2140#include <sys/stat.h>
2141/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2142struct buf { int x; };
2143FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144static char *e (p, i)
2145 char **p;
2146 int i;
2147{
2148 return p[i];
2149}
2150static char *f (char * (*g) (char **, int), char **p, ...)
2151{
2152 char *s;
2153 va_list v;
2154 va_start (v,p);
2155 s = g (p, va_arg (v,int));
2156 va_end (v);
2157 return s;
2158}
2159
2160/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not '\xHH' hex character constants.
2162 These don't provoke an error unfortunately, instead are silently treated
Benny Prijono0b462322008-03-12 22:44:24 +00002163 as 'x'. The following induces an error, until -std1 is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2165 array size at least. It's necessary to write '\x00'==0 to get something
Benny Prijono0b462322008-03-12 22:44:24 +00002166 that's true only with -std1. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002167int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2168
2169int test (int i, double x);
2170struct s1 {int (*f) (int a);};
2171struct s2 {int (*f) (double a);};
2172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2173int argc;
2174char **argv;
2175int
2176main ()
2177{
2178return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2179 ;
2180 return 0;
2181}
2182_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00002183# Don't try gcc -ansi; that turns off useful extensions and
2184# breaks some systems' header files.
2185# AIX -qlanglvl=ansi
2186# Ultrix and OSF/1 -std1
2187# HP-UX 10.20 and later -Ae
2188# HP-UX older versions -Aa -D_HPUX_SOURCE
2189# SVR4 -Xc -D__EXTENSIONS__
2190for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002191do
2192 CC="$ac_save_CC $ac_arg"
2193 rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_cv_prog_cc_stdc=$ac_arg
2216break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002217else
2218 echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221fi
Benny Prijono0b462322008-03-12 22:44:24 +00002222rm -f conftest.err conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002223done
Benny Prijono0b462322008-03-12 22:44:24 +00002224rm -f conftest.$ac_ext conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002225CC=$ac_save_CC
2226
2227fi
Benny Prijono0b462322008-03-12 22:44:24 +00002228
2229case "x$ac_cv_prog_cc_stdc" in
2230 x|xno)
2231 echo "$as_me:$LINENO: result: none needed" >&5
2232echo "${ECHO_T}none needed" >&6 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002233 *)
Benny Prijono0b462322008-03-12 22:44:24 +00002234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236 CC="$CC $ac_cv_prog_cc_stdc" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002237esac
2238
Benny Prijono0b462322008-03-12 22:44:24 +00002239# Some people use a C++ compiler to compile C. Since we use `exit',
2240# in C++ we need to declare it. In case someone uses the same compiler
2241# for both compiling C and C++ we need to have the C++ compiler decide
2242# the declaration of exit, since it's the most demanding environment.
2243cat >conftest.$ac_ext <<_ACEOF
2244#ifndef __cplusplus
2245 choke me
2246#endif
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 for ac_declaration in \
2271 '' \
2272 'extern "C" void std::exit (int) throw (); using std::exit;' \
2273 'extern "C" void std::exit (int); using std::exit;' \
2274 'extern "C" void exit (int) throw ();' \
2275 'extern "C" void exit (int);' \
2276 'void exit (int);'
2277do
2278 cat >conftest.$ac_ext <<_ACEOF
2279/* confdefs.h. */
2280_ACEOF
2281cat confdefs.h >>conftest.$ac_ext
2282cat >>conftest.$ac_ext <<_ACEOF
2283/* end confdefs.h. */
2284$ac_declaration
2285#include <stdlib.h>
2286int
2287main ()
2288{
2289exit (42);
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>conftest.er1
2297 ac_status=$?
2298 grep -v '^ *+' conftest.er1 >conftest.err
2299 rm -f conftest.er1
2300 cat conftest.err >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -z "$ac_c_werror_flag"
2304 || test ! -s conftest.err'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2316 :
2317else
2318 echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002320
Benny Prijono0b462322008-03-12 22:44:24 +00002321continue
2322fi
2323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324 cat >conftest.$ac_ext <<_ACEOF
2325/* confdefs.h. */
2326_ACEOF
2327cat confdefs.h >>conftest.$ac_ext
2328cat >>conftest.$ac_ext <<_ACEOF
2329/* end confdefs.h. */
2330$ac_declaration
2331int
2332main ()
2333{
2334exit (42);
2335 ;
2336 return 0;
2337}
2338_ACEOF
2339rm -f conftest.$ac_objext
2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 break
2362else
2363 echo "$as_me: failed program was:" >&5
2364sed 's/^/| /' conftest.$ac_ext >&5
2365
2366fi
2367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368done
2369rm -f conftest*
2370if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
2374fi
2375
2376else
2377 echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380fi
2381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002382ac_ext=c
2383ac_cpp='$CPP $CPPFLAGS'
2384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
Benny Prijono0b462322008-03-12 22:44:24 +00002388ac_ext=cc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002389ac_cpp='$CXXCPP $CPPFLAGS'
2390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Benny Prijono0b462322008-03-12 22:44:24 +00002393if test -n "$ac_tool_prefix"; then
2394 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 +00002395 do
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00002398echo "$as_me:$LINENO: checking for $ac_word" >&5
2399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002400if test "${ac_cv_prog_CXX+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402else
2403 if test -n "$CXX"; then
2404 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2405else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00002412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002413 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002418done
2419
2420fi
2421fi
2422CXX=$ac_cv_prog_CXX
2423if test -n "$CXX"; then
Benny Prijono0b462322008-03-12 22:44:24 +00002424 echo "$as_me:$LINENO: result: $CXX" >&5
2425echo "${ECHO_T}$CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002426else
Benny Prijono0b462322008-03-12 22:44:24 +00002427 echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002429fi
2430
2431 test -n "$CXX" && break
2432 done
2433fi
2434if test -z "$CXX"; then
2435 ac_ct_CXX=$CXX
Benny Prijono0b462322008-03-12 22:44:24 +00002436 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 +00002437do
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439set dummy $ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00002440echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002442if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445 if test -n "$ac_ct_CXX"; then
2446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2447else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00002454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002455 ac_cv_prog_ac_ct_CXX="$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002460done
2461
2462fi
2463fi
2464ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2465if test -n "$ac_ct_CXX"; then
Benny Prijono0b462322008-03-12 22:44:24 +00002466 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2467echo "${ECHO_T}$ac_ct_CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002468else
Benny Prijono0b462322008-03-12 22:44:24 +00002469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002471fi
2472
2473 test -n "$ac_ct_CXX" && break
2474done
Benny Prijono0b462322008-03-12 22:44:24 +00002475test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002476
Benny Prijono0b462322008-03-12 22:44:24 +00002477 CXX=$ac_ct_CXX
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002478fi
2479
Benny Prijono0b462322008-03-12 22:44:24 +00002480
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002481# Provide some information about the compiler.
Benny Prijono0b462322008-03-12 22:44:24 +00002482echo "$as_me:$LINENO:" \
2483 "checking for C++ compiler version" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002484ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0b462322008-03-12 22:44:24 +00002485{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2486 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002487 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002489 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00002490{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2491 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002492 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002494 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00002495{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2496 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002497 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002499 (exit $ac_status); }
2500
Benny Prijono0b462322008-03-12 22:44:24 +00002501echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2502echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002503if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002507/* confdefs.h. */
2508_ACEOF
2509cat confdefs.h >>conftest.$ac_ext
2510cat >>conftest.$ac_ext <<_ACEOF
2511/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002512
2513int
2514main ()
2515{
2516#ifndef __GNUC__
2517 choke me
2518#endif
2519
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002527 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002532 (exit $ac_status); } &&
2533 { ac_try='test -z "$ac_cxx_werror_flag"
2534 || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 (eval $ac_try) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002546 ac_compiler_gnu=yes
2547else
2548 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002549sed 's/^/| /' conftest.$ac_ext >&5
2550
Benny Prijono0b462322008-03-12 22:44:24 +00002551ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002552fi
Benny Prijono0b462322008-03-12 22:44:24 +00002553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002554ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2555
2556fi
Benny Prijono0b462322008-03-12 22:44:24 +00002557echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2558echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002559GXX=`test $ac_compiler_gnu = yes && echo yes`
2560ac_test_CXXFLAGS=${CXXFLAGS+set}
2561ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono0b462322008-03-12 22:44:24 +00002562CXXFLAGS="-g"
2563echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2564echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002565if test "${ac_cv_prog_cxx_g+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567else
Benny Prijono0b462322008-03-12 22:44:24 +00002568 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002569/* confdefs.h. */
2570_ACEOF
2571cat confdefs.h >>conftest.$ac_ext
2572cat >>conftest.$ac_ext <<_ACEOF
2573/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002574
2575int
2576main ()
2577{
2578
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002586 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_cxx_werror_flag"
2593 || test ! -s conftest.err'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002605 ac_cv_prog_cxx_g=yes
2606else
2607 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002608sed 's/^/| /' conftest.$ac_ext >&5
2609
Benny Prijono0b462322008-03-12 22:44:24 +00002610ac_cv_prog_cxx_g=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002611fi
Benny Prijono0b462322008-03-12 22:44:24 +00002612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002613fi
Benny Prijono0b462322008-03-12 22:44:24 +00002614echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2615echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002616if test "$ac_test_CXXFLAGS" = set; then
2617 CXXFLAGS=$ac_save_CXXFLAGS
2618elif test $ac_cv_prog_cxx_g = yes; then
2619 if test "$GXX" = yes; then
2620 CXXFLAGS="-g -O2"
2621 else
2622 CXXFLAGS="-g"
2623 fi
2624else
2625 if test "$GXX" = yes; then
2626 CXXFLAGS="-O2"
2627 else
2628 CXXFLAGS=
2629 fi
2630fi
Benny Prijono0b462322008-03-12 22:44:24 +00002631for ac_declaration in \
2632 '' \
2633 'extern "C" void std::exit (int) throw (); using std::exit;' \
2634 'extern "C" void std::exit (int); using std::exit;' \
2635 'extern "C" void exit (int) throw ();' \
2636 'extern "C" void exit (int);' \
2637 'void exit (int);'
2638do
2639 cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
2645$ac_declaration
2646#include <stdlib.h>
2647int
2648main ()
2649{
2650exit (42);
2651 ;
2652 return 0;
2653}
2654_ACEOF
2655rm -f conftest.$ac_objext
2656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_cxx_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 :
2678else
2679 echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682continue
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
2691$ac_declaration
2692int
2693main ()
2694{
2695exit (42);
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 break
2723else
2724 echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727fi
2728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729done
2730rm -f conftest*
2731if test -n "$ac_declaration"; then
2732 echo '#ifdef __cplusplus' >>confdefs.h
2733 echo $ac_declaration >>confdefs.h
2734 echo '#endif' >>confdefs.h
2735fi
2736
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002737ac_ext=c
2738ac_cpp='$CPP $CPPFLAGS'
2739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002743ac_ext=c
2744ac_cpp='$CPP $CPPFLAGS'
2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002749
2750
Benny Prijono53847a32007-09-24 16:10:13 +00002751case $target in
2752 *mingw* | *cygw* | *win32* | *w32* )
2753 ac_pjdir=`pwd -W`
2754 ;;
2755 *)
2756 ac_pjdir=`pwd`
2757 ;;
2758esac
Benny Prijono12483112007-03-12 10:44:38 +00002759
2760
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002761
Benny Prijono0b462322008-03-12 22:44:24 +00002762echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2763echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002764if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766else
2767 ac_check_lib_save_LIBS=$LIBS
2768LIBS="-lpthread $LIBS"
2769cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002775
Benny Prijono0b462322008-03-12 22:44:24 +00002776/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002777#ifdef __cplusplus
2778extern "C"
2779#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002780/* We use char because int might match the return type of a gcc2
2781 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002782char pthread_create ();
2783int
2784main ()
2785{
Benny Prijono0b462322008-03-12 22:44:24 +00002786pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002787 ;
2788 return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2793 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002794 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002799 (exit $ac_status); } &&
2800 { ac_try='test -z "$ac_c_werror_flag"
2801 || test ! -s conftest.err'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; } &&
2807 { ac_try='test -s conftest$ac_exeext'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002813 ac_cv_lib_pthread_pthread_create=yes
2814else
2815 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002816sed 's/^/| /' conftest.$ac_ext >&5
2817
Benny Prijono0b462322008-03-12 22:44:24 +00002818ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002819fi
Benny Prijono0b462322008-03-12 22:44:24 +00002820rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002821 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002822LIBS=$ac_check_lib_save_LIBS
2823fi
Benny Prijono0b462322008-03-12 22:44:24 +00002824echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2825echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002826if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002827 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002828#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002829_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002830
2831 LIBS="-lpthread $LIBS"
2832
2833fi
2834
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002835
Benny Prijono0b462322008-03-12 22:44:24 +00002836echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
2837echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002838if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 ac_check_lib_save_LIBS=$LIBS
2842LIBS="-lwsock32 $LIBS"
2843cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002844/* confdefs.h. */
2845_ACEOF
2846cat confdefs.h >>conftest.$ac_ext
2847cat >>conftest.$ac_ext <<_ACEOF
2848/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002849
Benny Prijono0b462322008-03-12 22:44:24 +00002850/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002851#ifdef __cplusplus
2852extern "C"
2853#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002854/* We use char because int might match the return type of a gcc2
2855 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002856char puts ();
2857int
2858main ()
2859{
Benny Prijono0b462322008-03-12 22:44:24 +00002860puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002861 ;
2862 return 0;
2863}
2864_ACEOF
2865rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2867 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002868 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002869 grep -v '^ *+' conftest.er1 >conftest.err
2870 rm -f conftest.er1
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002873 (exit $ac_status); } &&
2874 { ac_try='test -z "$ac_c_werror_flag"
2875 || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest$ac_exeext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002887 ac_cv_lib_wsock32_puts=yes
2888else
2889 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002890sed 's/^/| /' conftest.$ac_ext >&5
2891
Benny Prijono0b462322008-03-12 22:44:24 +00002892ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002893fi
Benny Prijono0b462322008-03-12 22:44:24 +00002894rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002895 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002896LIBS=$ac_check_lib_save_LIBS
2897fi
Benny Prijono0b462322008-03-12 22:44:24 +00002898echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
2899echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002900if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002901 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002902#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002903_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002904
2905 LIBS="-lwsock32 $LIBS"
2906
2907fi
2908
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002909
Benny Prijono0b462322008-03-12 22:44:24 +00002910echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
2911echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002912if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
2915 ac_check_lib_save_LIBS=$LIBS
2916LIBS="-lws2_32 $LIBS"
2917cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002923
Benny Prijono0b462322008-03-12 22:44:24 +00002924/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002925#ifdef __cplusplus
2926extern "C"
2927#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002928/* We use char because int might match the return type of a gcc2
2929 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002930char puts ();
2931int
2932main ()
2933{
Benny Prijono0b462322008-03-12 22:44:24 +00002934puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002935 ;
2936 return 0;
2937}
2938_ACEOF
2939rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2941 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002942 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest$ac_exeext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 (eval $ac_try) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002961 ac_cv_lib_ws2_32_puts=yes
2962else
2963 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002964sed 's/^/| /' conftest.$ac_ext >&5
2965
Benny Prijono0b462322008-03-12 22:44:24 +00002966ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002967fi
Benny Prijono0b462322008-03-12 22:44:24 +00002968rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002969 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002970LIBS=$ac_check_lib_save_LIBS
2971fi
Benny Prijono0b462322008-03-12 22:44:24 +00002972echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
2973echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002974if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002975 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002976#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002977_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002978
2979 LIBS="-lws2_32 $LIBS"
2980
2981fi
2982
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002983
Benny Prijono0b462322008-03-12 22:44:24 +00002984echo "$as_me:$LINENO: checking for puts in -lole32" >&5
2985echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002986if test "${ac_cv_lib_ole32_puts+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 ac_check_lib_save_LIBS=$LIBS
2990LIBS="-lole32 $LIBS"
2991cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002992/* confdefs.h. */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002997
Benny Prijono0b462322008-03-12 22:44:24 +00002998/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002999#ifdef __cplusplus
3000extern "C"
3001#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003002/* We use char because int might match the return type of a gcc2
3003 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003004char puts ();
3005int
3006main ()
3007{
Benny Prijono0b462322008-03-12 22:44:24 +00003008puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3015 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003016 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_c_werror_flag"
3023 || test ! -s conftest.err'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest$ac_exeext'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003035 ac_cv_lib_ole32_puts=yes
3036else
3037 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003038sed 's/^/| /' conftest.$ac_ext >&5
3039
Benny Prijono0b462322008-03-12 22:44:24 +00003040ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003041fi
Benny Prijono0b462322008-03-12 22:44:24 +00003042rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003043 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003044LIBS=$ac_check_lib_save_LIBS
3045fi
Benny Prijono0b462322008-03-12 22:44:24 +00003046echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3047echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003048if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003049 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003050#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003051_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003052
3053 LIBS="-lole32 $LIBS"
3054
3055fi
3056
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003057
Benny Prijono0b462322008-03-12 22:44:24 +00003058echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3059echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003060if test "${ac_cv_lib_winmm_puts+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 ac_check_lib_save_LIBS=$LIBS
3064LIBS="-lwinmm $LIBS"
3065cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003071
Benny Prijono0b462322008-03-12 22:44:24 +00003072/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003073#ifdef __cplusplus
3074extern "C"
3075#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003076/* We use char because int might match the return type of a gcc2
3077 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003078char puts ();
3079int
3080main ()
3081{
Benny Prijono0b462322008-03-12 22:44:24 +00003082puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003090 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag"
3097 || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest$ac_exeext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003109 ac_cv_lib_winmm_puts=yes
3110else
3111 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112sed 's/^/| /' conftest.$ac_ext >&5
3113
Benny Prijono0b462322008-03-12 22:44:24 +00003114ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003115fi
Benny Prijono0b462322008-03-12 22:44:24 +00003116rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003117 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003118LIBS=$ac_check_lib_save_LIBS
3119fi
Benny Prijono0b462322008-03-12 22:44:24 +00003120echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3121echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003122if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003123 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003124#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003125_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003126
3127 LIBS="-lwinmm $LIBS"
3128
3129fi
3130
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003131
Benny Prijono0b462322008-03-12 22:44:24 +00003132echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3133echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003134if test "${ac_cv_lib_socket_puts+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136else
3137 ac_check_lib_save_LIBS=$LIBS
3138LIBS="-lsocket $LIBS"
3139cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003140/* confdefs.h. */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003145
Benny Prijono0b462322008-03-12 22:44:24 +00003146/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003147#ifdef __cplusplus
3148extern "C"
3149#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003150/* We use char because int might match the return type of a gcc2
3151 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003152char puts ();
3153int
3154main ()
3155{
Benny Prijono0b462322008-03-12 22:44:24 +00003156puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003157 ;
3158 return 0;
3159}
3160_ACEOF
3161rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3163 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003164 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_c_werror_flag"
3171 || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003183 ac_cv_lib_socket_puts=yes
3184else
3185 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003186sed 's/^/| /' conftest.$ac_ext >&5
3187
Benny Prijono0b462322008-03-12 22:44:24 +00003188ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003189fi
Benny Prijono0b462322008-03-12 22:44:24 +00003190rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003191 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003192LIBS=$ac_check_lib_save_LIBS
3193fi
Benny Prijono0b462322008-03-12 22:44:24 +00003194echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3195echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003196if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003197 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003198#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003199_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003200
3201 LIBS="-lsocket $LIBS"
3202
3203fi
3204
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003205
Benny Prijono0b462322008-03-12 22:44:24 +00003206echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3207echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003208if test "${ac_cv_lib_rt_puts+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 ac_check_lib_save_LIBS=$LIBS
3212LIBS="-lrt $LIBS"
3213cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003219
Benny Prijono0b462322008-03-12 22:44:24 +00003220/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003221#ifdef __cplusplus
3222extern "C"
3223#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003224/* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003226char puts ();
3227int
3228main ()
3229{
Benny Prijono0b462322008-03-12 22:44:24 +00003230puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003231 ;
3232 return 0;
3233}
3234_ACEOF
3235rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003238 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_c_werror_flag"
3245 || test ! -s conftest.err'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; } &&
3251 { ac_try='test -s conftest$ac_exeext'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003257 ac_cv_lib_rt_puts=yes
3258else
3259 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003260sed 's/^/| /' conftest.$ac_ext >&5
3261
Benny Prijono0b462322008-03-12 22:44:24 +00003262ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003263fi
Benny Prijono0b462322008-03-12 22:44:24 +00003264rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003265 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003266LIBS=$ac_check_lib_save_LIBS
3267fi
Benny Prijono0b462322008-03-12 22:44:24 +00003268echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3269echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003270if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003271 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003272#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003273_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003274
3275 LIBS="-lrt $LIBS"
3276
3277fi
3278
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003279
Benny Prijono0b462322008-03-12 22:44:24 +00003280echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3281echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003282if test "${ac_cv_lib_nsl_puts+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285 ac_check_lib_save_LIBS=$LIBS
3286LIBS="-lnsl $LIBS"
3287cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003288/* confdefs.h. */
3289_ACEOF
3290cat confdefs.h >>conftest.$ac_ext
3291cat >>conftest.$ac_ext <<_ACEOF
3292/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003293
Benny Prijono0b462322008-03-12 22:44:24 +00003294/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003295#ifdef __cplusplus
3296extern "C"
3297#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003298/* We use char because int might match the return type of a gcc2
3299 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003300char puts ();
3301int
3302main ()
3303{
Benny Prijono0b462322008-03-12 22:44:24 +00003304puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003305 ;
3306 return 0;
3307}
3308_ACEOF
3309rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3311 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003312 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag"
3319 || test ! -s conftest.err'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; } &&
3325 { ac_try='test -s conftest$ac_exeext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003331 ac_cv_lib_nsl_puts=yes
3332else
3333 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003334sed 's/^/| /' conftest.$ac_ext >&5
3335
Benny Prijono0b462322008-03-12 22:44:24 +00003336ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003337fi
Benny Prijono0b462322008-03-12 22:44:24 +00003338rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003339 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003340LIBS=$ac_check_lib_save_LIBS
3341fi
Benny Prijono0b462322008-03-12 22:44:24 +00003342echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3343echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003344if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003345 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003346#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003347_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003348
3349 LIBS="-lnsl $LIBS"
3350
3351fi
3352
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003353
Benny Prijono0b462322008-03-12 22:44:24 +00003354echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3355echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003356if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359 ac_check_lib_save_LIBS=$LIBS
3360LIBS="-luuid $LIBS"
3361cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h. */
3367
Benny Prijono0b462322008-03-12 22:44:24 +00003368/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003369#ifdef __cplusplus
3370extern "C"
3371#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003372/* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003374char uuid_generate ();
3375int
3376main ()
3377{
Benny Prijono0b462322008-03-12 22:44:24 +00003378uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest$ac_exeext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003405 ac_cv_lib_uuid_uuid_generate=yes
3406else
3407 echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
Benny Prijono0b462322008-03-12 22:44:24 +00003410ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003411fi
Benny Prijono0b462322008-03-12 22:44:24 +00003412rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003413 conftest$ac_exeext conftest.$ac_ext
3414LIBS=$ac_check_lib_save_LIBS
3415fi
Benny Prijono0b462322008-03-12 22:44:24 +00003416echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3417echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003418if test $ac_cv_lib_uuid_uuid_generate = yes; then
3419 cat >>confdefs.h <<_ACEOF
3420#define HAVE_LIBUUID 1
3421_ACEOF
3422
3423 LIBS="-luuid $LIBS"
3424
3425fi
3426
Benny Prijono0b462322008-03-12 22:44:24 +00003427echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3428echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003429if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431else
3432 ac_check_lib_save_LIBS=$LIBS
3433LIBS="-luuid $LIBS"
3434cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440
Benny Prijono0b462322008-03-12 22:44:24 +00003441/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003442#ifdef __cplusplus
3443extern "C"
3444#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003445/* We use char because int might match the return type of a gcc2
3446 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003447char uuid_generate ();
3448int
3449main ()
3450{
Benny Prijono0b462322008-03-12 22:44:24 +00003451uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003452 ;
3453 return 0;
3454}
3455_ACEOF
3456rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3458 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003459 ac_status=$?
3460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003464 (exit $ac_status); } &&
3465 { ac_try='test -z "$ac_c_werror_flag"
3466 || test ! -s conftest.err'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try='test -s conftest$ac_exeext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003478 ac_cv_lib_uuid_uuid_generate=yes
3479else
3480 echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
Benny Prijono0b462322008-03-12 22:44:24 +00003483ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003484fi
Benny Prijono0b462322008-03-12 22:44:24 +00003485rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003486 conftest$ac_exeext conftest.$ac_ext
3487LIBS=$ac_check_lib_save_LIBS
3488fi
Benny Prijono0b462322008-03-12 22:44:24 +00003489echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3490echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003491if test $ac_cv_lib_uuid_uuid_generate = yes; then
3492 ac_has_uuid_lib=1
3493fi
3494
3495
Benny Prijono0b462322008-03-12 22:44:24 +00003496echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3497echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003498cat >>confdefs.h <<_ACEOF
3499#define PJ_M_NAME "$target_cpu"
3500_ACEOF
3501
3502
Benny Prijono0b462322008-03-12 22:44:24 +00003503echo "$as_me:$LINENO: checking memory alignment" >&5
3504echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003505case $target in
3506 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003507 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003508#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003509_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003510
Benny Prijono0b462322008-03-12 22:44:24 +00003511 echo "$as_me:$LINENO: result: 8 bytes" >&5
3512echo "${ECHO_T}8 bytes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003513 ;;
3514 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003515 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003516#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003517_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003518
Benny Prijono0b462322008-03-12 22:44:24 +00003519 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
3520echo "${ECHO_T}4 bytes (default)" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003521 ;;
3522esac
3523
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003524
Benny Prijono0b462322008-03-12 22:44:24 +00003525echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3526echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003527if test "${ac_cv_c_bigendian+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003530 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003531cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003532/* confdefs.h. */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003537#include <sys/types.h>
3538#include <sys/param.h>
3539
3540int
3541main ()
3542{
Benny Prijono0b462322008-03-12 22:44:24 +00003543#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003544 bogus endian macros
3545#endif
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
3551rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003554 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003559 (exit $ac_status); } &&
3560 { ac_try='test -z "$ac_c_werror_flag"
3561 || test ! -s conftest.err'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; } &&
3567 { ac_try='test -s conftest.$ac_objext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003573 # It does; now see whether it defined to BIG_ENDIAN or not.
3574cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003575/* confdefs.h. */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003580#include <sys/types.h>
3581#include <sys/param.h>
3582
3583int
3584main ()
3585{
3586#if BYTE_ORDER != BIG_ENDIAN
3587 not big endian
3588#endif
3589
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003597 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003616 ac_cv_c_bigendian=yes
3617else
3618 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003619sed 's/^/| /' conftest.$ac_ext >&5
3620
Benny Prijono0b462322008-03-12 22:44:24 +00003621ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003622fi
Benny Prijono0b462322008-03-12 22:44:24 +00003623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003624else
3625 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003626sed 's/^/| /' conftest.$ac_ext >&5
3627
Benny Prijono0b462322008-03-12 22:44:24 +00003628# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003629if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003630 # try to guess the endianness by grepping values into an object file
3631 ac_cv_c_bigendian=unknown
3632 cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h. */
Benny Prijono0b462322008-03-12 22:44:24 +00003638short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3639short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003640void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Benny Prijono0b462322008-03-12 22:44:24 +00003641short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3642short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003643void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3644int
3645main ()
3646{
3647 _ascii (); _ebcdic ();
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003674 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3675 ac_cv_c_bigendian=yes
3676fi
3677if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3678 if test "$ac_cv_c_bigendian" = unknown; then
3679 ac_cv_c_bigendian=no
3680 else
3681 # finding both strings is unlikely to happen, but who knows?
3682 ac_cv_c_bigendian=unknown
3683 fi
3684fi
3685else
3686 echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689fi
Benny Prijono0b462322008-03-12 22:44:24 +00003690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003691else
3692 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003698int
3699main ()
3700{
3701 /* Are we little or big endian? From Harbison&Steele. */
3702 union
3703 {
Benny Prijono0b462322008-03-12 22:44:24 +00003704 long l;
3705 char c[sizeof (long)];
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003706 } u;
3707 u.l = 1;
Benny Prijono0b462322008-03-12 22:44:24 +00003708 exit (u.c[sizeof (long) - 1] == 1);
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003709}
3710_ACEOF
3711rm -f conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3713 (eval $ac_link) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003714 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono0b462322008-03-12 22:44:24 +00003717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003719 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003721 (exit $ac_status); }; }; then
3722 ac_cv_c_bigendian=no
3723else
3724 echo "$as_me: program exited with status $ac_status" >&5
3725echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003729ac_cv_c_bigendian=yes
3730fi
Benny Prijono0b462322008-03-12 22:44:24 +00003731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003732fi
3733fi
Benny Prijono0b462322008-03-12 22:44:24 +00003734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003735fi
Benny Prijono0b462322008-03-12 22:44:24 +00003736echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3737echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003738case $ac_cv_c_bigendian in
3739 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003740
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003741cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003742#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003743_ACEOF
3744 ;;
3745 no)
3746 ;;
3747 *)
3748 { { echo "$as_me:$LINENO: error: unknown endianness
3749presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3750echo "$as_me: error: unknown endianness
3751presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3752 { (exit 1); exit 1; }; } ;;
3753esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003754
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003755
3756case $target in
3757 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003758 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003759#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003760_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003762 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003764_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003765
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003766 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003767#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003768_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769
3770 ;;
3771 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003772 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775
3776 ;;
3777 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003778 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003779#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003780_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003781
3782 ;;
3783 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003784 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003785#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003786_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003787
3788 ;;
3789 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003791#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003792_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003793
3794 ;;
3795 *)
3796 ;;
3797esac
3798
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003799
3800
3801
Benny Prijono0b462322008-03-12 22:44:24 +00003802# Check whether --enable-floating-point or --disable-floating-point was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003803if test "${enable_floating_point+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00003804 enableval="$enable_floating_point"
3805 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003806 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003807#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003808_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003809
Benny Prijono0b462322008-03-12 22:44:24 +00003810 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
3811echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003812 fi
3813else
3814
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003815 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003816#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003817_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003818
Benny Prijono0b462322008-03-12 22:44:24 +00003819 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
3820echo "${ECHO_T}Checking if floating point is disabled... no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003821
Benny Prijono0b462322008-03-12 22:44:24 +00003822echo "$as_me:$LINENO: checking for fmod in -lm" >&5
3823echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003824if test "${ac_cv_lib_m_fmod+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827 ac_check_lib_save_LIBS=$LIBS
3828LIBS="-lm $LIBS"
3829cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003830/* confdefs.h. */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003835
Benny Prijono0b462322008-03-12 22:44:24 +00003836/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003837#ifdef __cplusplus
3838extern "C"
3839#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003840/* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003842char fmod ();
3843int
3844main ()
3845{
Benny Prijono0b462322008-03-12 22:44:24 +00003846fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003847 ;
3848 return 0;
3849}
3850_ACEOF
3851rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003854 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003859 (exit $ac_status); } &&
3860 { ac_try='test -z "$ac_c_werror_flag"
3861 || test ! -s conftest.err'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; } &&
3867 { ac_try='test -s conftest$ac_exeext'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003873 ac_cv_lib_m_fmod=yes
3874else
3875 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003876sed 's/^/| /' conftest.$ac_ext >&5
3877
Benny Prijono0b462322008-03-12 22:44:24 +00003878ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003879fi
Benny Prijono0b462322008-03-12 22:44:24 +00003880rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003881 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003882LIBS=$ac_check_lib_save_LIBS
3883fi
Benny Prijono0b462322008-03-12 22:44:24 +00003884echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
3885echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003886if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003887 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003888#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003889_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003890
3891 LIBS="-lm $LIBS"
3892
3893fi
3894
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003895
Benny Prijono0b462322008-03-12 22:44:24 +00003896fi;
3897
3898
3899ac_ext=c
3900ac_cpp='$CPP $CPPFLAGS'
3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3905echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3906# On Suns, sometimes $CPP names a directory.
3907if test -n "$CPP" && test -d "$CPP"; then
3908 CPP=
3909fi
3910if test -z "$CPP"; then
3911 if test "${ac_cv_prog_CPP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 # Double quotes because CPP needs to be expanded
3915 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3916 do
3917 ac_preproc_ok=false
3918for ac_c_preproc_warn_flag in '' yes
3919do
3920 # Use a header file that comes with gcc, so configuring glibc
3921 # with a fresh cross-compiler works.
3922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3923 # <limits.h> exists even on freestanding compilers.
3924 # On the NeXT, cc -E runs the code through the compiler's parser,
3925 # not just through cpp. "Syntax error" is here to catch this case.
3926 cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
3931/* end confdefs.h. */
3932#ifdef __STDC__
3933# include <limits.h>
3934#else
3935# include <assert.h>
3936#endif
3937 Syntax error
3938_ACEOF
3939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } >/dev/null; then
3947 if test -s conftest.err; then
3948 ac_cpp_err=$ac_c_preproc_warn_flag
3949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3950 else
3951 ac_cpp_err=
3952 fi
3953else
3954 ac_cpp_err=yes
3955fi
3956if test -z "$ac_cpp_err"; then
3957 :
3958else
3959 echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962 # Broken: fails on valid input.
3963continue
3964fi
3965rm -f conftest.err conftest.$ac_ext
3966
3967 # OK, works on sane cases. Now check whether non-existent headers
3968 # can be detected and how.
3969 cat >conftest.$ac_ext <<_ACEOF
3970/* confdefs.h. */
3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
3974/* end confdefs.h. */
3975#include <ac_nonexistent.h>
3976_ACEOF
3977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } >/dev/null; then
3985 if test -s conftest.err; then
3986 ac_cpp_err=$ac_c_preproc_warn_flag
3987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3988 else
3989 ac_cpp_err=
3990 fi
3991else
3992 ac_cpp_err=yes
3993fi
3994if test -z "$ac_cpp_err"; then
3995 # Broken: success on invalid input.
3996continue
3997else
3998 echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 # Passes both tests.
4002ac_preproc_ok=:
4003break
4004fi
4005rm -f conftest.err conftest.$ac_ext
4006
4007done
4008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009rm -f conftest.err conftest.$ac_ext
4010if $ac_preproc_ok; then
4011 break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004012fi
4013
Benny Prijono0b462322008-03-12 22:44:24 +00004014 done
4015 ac_cv_prog_CPP=$CPP
4016
4017fi
4018 CPP=$ac_cv_prog_CPP
4019else
4020 ac_cv_prog_CPP=$CPP
4021fi
4022echo "$as_me:$LINENO: result: $CPP" >&5
4023echo "${ECHO_T}$CPP" >&6
4024ac_preproc_ok=false
4025for ac_c_preproc_warn_flag in '' yes
4026do
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#ifdef __STDC__
4040# include <limits.h>
4041#else
4042# include <assert.h>
4043#endif
4044 Syntax error
4045_ACEOF
4046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } >/dev/null; then
4054 if test -s conftest.err; then
4055 ac_cpp_err=$ac_c_preproc_warn_flag
4056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057 else
4058 ac_cpp_err=
4059 fi
4060else
4061 ac_cpp_err=yes
4062fi
4063if test -z "$ac_cpp_err"; then
4064 :
4065else
4066 echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 # Broken: fails on valid input.
4070continue
4071fi
4072rm -f conftest.err conftest.$ac_ext
4073
4074 # OK, works on sane cases. Now check whether non-existent headers
4075 # can be detected and how.
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095 else
4096 ac_cpp_err=
4097 fi
4098else
4099 ac_cpp_err=yes
4100fi
4101if test -z "$ac_cpp_err"; then
4102 # Broken: success on invalid input.
4103continue
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 # Passes both tests.
4109ac_preproc_ok=:
4110break
4111fi
4112rm -f conftest.err conftest.$ac_ext
4113
4114done
4115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116rm -f conftest.err conftest.$ac_ext
4117if $ac_preproc_ok; then
4118 :
4119else
4120 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4121See \`config.log' for more details." >&5
4122echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4123See \`config.log' for more details." >&2;}
4124 { (exit 1); exit 1; }; }
4125fi
4126
4127ac_ext=c
4128ac_cpp='$CPP $CPPFLAGS'
4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132
4133
4134echo "$as_me:$LINENO: checking for egrep" >&5
4135echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4136if test "${ac_cv_prog_egrep+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4140 then ac_cv_prog_egrep='grep -E'
4141 else ac_cv_prog_egrep='egrep'
4142 fi
4143fi
4144echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4145echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4146 EGREP=$ac_cv_prog_egrep
4147
4148
4149echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4150echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4151if test "${ac_cv_header_stdc+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
4154 cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
4160#include <stdlib.h>
4161#include <stdarg.h>
4162#include <string.h>
4163#include <float.h>
4164
4165int
4166main ()
4167{
4168
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext
4174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_c_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_header_stdc=yes
4196else
4197 echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200ac_cv_header_stdc=no
4201fi
4202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203
4204if test $ac_cv_header_stdc = yes; then
4205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4206 cat >conftest.$ac_ext <<_ACEOF
4207/* confdefs.h. */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
4211/* end confdefs.h. */
4212#include <string.h>
4213
4214_ACEOF
4215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "memchr" >/dev/null 2>&1; then
4217 :
4218else
4219 ac_cv_header_stdc=no
4220fi
4221rm -f conftest*
4222
4223fi
4224
4225if test $ac_cv_header_stdc = yes; then
4226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4227 cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
4233#include <stdlib.h>
4234
4235_ACEOF
4236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "free" >/dev/null 2>&1; then
4238 :
4239else
4240 ac_cv_header_stdc=no
4241fi
4242rm -f conftest*
4243
4244fi
4245
4246if test $ac_cv_header_stdc = yes; then
4247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248 if test "$cross_compiling" = yes; then
4249 :
4250else
4251 cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257#include <ctype.h>
4258#if ((' ' & 0x0FF) == 0x020)
4259# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4261#else
4262# define ISLOWER(c) \
4263 (('a' <= (c) && (c) <= 'i') \
4264 || ('j' <= (c) && (c) <= 'r') \
4265 || ('s' <= (c) && (c) <= 'z'))
4266# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4267#endif
4268
4269#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4270int
4271main ()
4272{
4273 int i;
4274 for (i = 0; i < 256; i++)
4275 if (XOR (islower (i), ISLOWER (i))
4276 || toupper (i) != TOUPPER (i))
4277 exit(2);
4278 exit (0);
4279}
4280_ACEOF
4281rm -f conftest$ac_exeext
4282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 :
4293else
4294 echo "$as_me: program exited with status $ac_status" >&5
4295echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298( exit $ac_status )
4299ac_cv_header_stdc=no
4300fi
4301rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302fi
4303fi
4304fi
4305echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306echo "${ECHO_T}$ac_cv_header_stdc" >&6
4307if test $ac_cv_header_stdc = yes; then
4308
4309cat >>confdefs.h <<\_ACEOF
4310#define STDC_HEADERS 1
4311_ACEOF
4312
4313fi
4314
4315# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
4327do
4328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329echo "$as_me:$LINENO: checking for $ac_header" >&5
4330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4331if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340$ac_includes_default
4341
4342#include <$ac_header>
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 eval "$as_ac_Header=yes"
4367else
4368 echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371eval "$as_ac_Header=no"
4372fi
4373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374fi
4375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4377if test `eval echo '${'$as_ac_Header'}'` = yes; then
4378 cat >>confdefs.h <<_ACEOF
4379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4380_ACEOF
4381
4382fi
4383
4384done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004385
4386
4387if test "${ac_cv_header_arpa_inet_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004388 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4389echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004390if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392fi
Benny Prijono0b462322008-03-12 22:44:24 +00004393echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4394echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004395else
4396 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004397echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4398echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004399cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
4405$ac_includes_default
4406#include <arpa/inet.h>
4407_ACEOF
4408rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004416 (exit $ac_status); } &&
4417 { ac_try='test -z "$ac_c_werror_flag"
4418 || test ! -s conftest.err'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004430 ac_header_compiler=yes
4431else
4432 echo "$as_me: failed program was:" >&5
4433sed 's/^/| /' conftest.$ac_ext >&5
4434
Benny Prijono0b462322008-03-12 22:44:24 +00004435ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004436fi
Benny Prijono0b462322008-03-12 22:44:24 +00004437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4439echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004440
4441# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004442echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4443echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004444cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450#include <arpa/inet.h>
4451_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004459 (exit $ac_status); } >/dev/null; then
4460 if test -s conftest.err; then
4461 ac_cpp_err=$ac_c_preproc_warn_flag
4462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4463 else
4464 ac_cpp_err=
4465 fi
4466else
4467 ac_cpp_err=yes
4468fi
4469if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004470 ac_header_preproc=yes
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 ac_header_preproc=no
4476fi
4477rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004480
4481# So? What about this header?
4482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4483 yes:no: )
4484 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4485echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4487echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4488 ac_header_preproc=yes
4489 ;;
4490 no:yes:* )
4491 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4492echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4494echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4496echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4498echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4500echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4502echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004503 (
4504 cat <<\_ASBOX
4505## ------------------------------------ ##
4506## Report this to the pjproject lists. ##
4507## ------------------------------------ ##
4508_ASBOX
4509 ) |
4510 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004511 ;;
4512esac
Benny Prijono0b462322008-03-12 22:44:24 +00004513echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4514echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004515if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004517else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004518 ac_cv_header_arpa_inet_h=$ac_header_preproc
4519fi
Benny Prijono0b462322008-03-12 22:44:24 +00004520echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4521echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004522
4523fi
4524if test $ac_cv_header_arpa_inet_h = yes; then
4525 cat >>confdefs.h <<\_ACEOF
4526#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004527_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004528
4529fi
4530
4531
4532if test "${ac_cv_header_assert_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004533 echo "$as_me:$LINENO: checking for assert.h" >&5
4534echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004535if test "${ac_cv_header_assert_h+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537fi
Benny Prijono0b462322008-03-12 22:44:24 +00004538echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4539echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004540else
4541 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004542echo "$as_me:$LINENO: checking assert.h usability" >&5
4543echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004544cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */
4546_ACEOF
4547cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */
4550$ac_includes_default
4551#include <assert.h>
4552_ACEOF
4553rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004556 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004557 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004558 rm -f conftest.er1
4559 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag"
4563 || test ! -s conftest.err'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004575 ac_header_compiler=yes
4576else
4577 echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
Benny Prijono0b462322008-03-12 22:44:24 +00004580ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004581fi
Benny Prijono0b462322008-03-12 22:44:24 +00004582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4584echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004585
4586# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004587echo "$as_me:$LINENO: checking assert.h presence" >&5
4588echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004589cat >conftest.$ac_ext <<_ACEOF
4590/* confdefs.h. */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h. */
4595#include <assert.h>
4596_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004604 (exit $ac_status); } >/dev/null; then
4605 if test -s conftest.err; then
4606 ac_cpp_err=$ac_c_preproc_warn_flag
4607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4608 else
4609 ac_cpp_err=
4610 fi
4611else
4612 ac_cpp_err=yes
4613fi
4614if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004615 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004616else
4617 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004621fi
4622rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4624echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004625
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004626# So? What about this header?
4627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4628 yes:no: )
4629 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4630echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4631 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4632echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4633 ac_header_preproc=yes
4634 ;;
4635 no:yes:* )
4636 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4637echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4638 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4639echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4641echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4643echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4645echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4647echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004648 (
4649 cat <<\_ASBOX
4650## ------------------------------------ ##
4651## Report this to the pjproject lists. ##
4652## ------------------------------------ ##
4653_ASBOX
4654 ) |
4655 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004656 ;;
4657esac
Benny Prijono0b462322008-03-12 22:44:24 +00004658echo "$as_me:$LINENO: checking for assert.h" >&5
4659echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004660if test "${ac_cv_header_assert_h+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004662else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004663 ac_cv_header_assert_h=$ac_header_preproc
4664fi
Benny Prijono0b462322008-03-12 22:44:24 +00004665echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4666echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004667
4668fi
4669if test $ac_cv_header_assert_h = yes; then
4670 cat >>confdefs.h <<\_ACEOF
4671#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004672_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004673
4674fi
4675
4676
4677if test "${ac_cv_header_ctype_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004678 echo "$as_me:$LINENO: checking for ctype.h" >&5
4679echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004680if test "${ac_cv_header_ctype_h+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682fi
Benny Prijono0b462322008-03-12 22:44:24 +00004683echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4684echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004685else
4686 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004687echo "$as_me:$LINENO: checking ctype.h usability" >&5
4688echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004689cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h. */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h. */
4695$ac_includes_default
4696#include <ctype.h>
4697_ACEOF
4698rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004701 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004702 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004703 rm -f conftest.er1
4704 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004720 ac_header_compiler=yes
4721else
4722 echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
Benny Prijono0b462322008-03-12 22:44:24 +00004725ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004726fi
Benny Prijono0b462322008-03-12 22:44:24 +00004727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4728echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4729echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004730
4731# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004732echo "$as_me:$LINENO: checking ctype.h presence" >&5
4733echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004734cat >conftest.$ac_ext <<_ACEOF
4735/* confdefs.h. */
4736_ACEOF
4737cat confdefs.h >>conftest.$ac_ext
4738cat >>conftest.$ac_ext <<_ACEOF
4739/* end confdefs.h. */
4740#include <ctype.h>
4741_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004749 (exit $ac_status); } >/dev/null; then
4750 if test -s conftest.err; then
4751 ac_cpp_err=$ac_c_preproc_warn_flag
4752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4753 else
4754 ac_cpp_err=
4755 fi
4756else
4757 ac_cpp_err=yes
4758fi
4759if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004760 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004761else
4762 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004766fi
4767rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004768echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4769echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004770
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004771# So? What about this header?
4772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4773 yes:no: )
4774 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4775echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4776 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4777echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4778 ac_header_preproc=yes
4779 ;;
4780 no:yes:* )
4781 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4782echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4784echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4786echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4788echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4789 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4790echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4791 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4792echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004793 (
4794 cat <<\_ASBOX
4795## ------------------------------------ ##
4796## Report this to the pjproject lists. ##
4797## ------------------------------------ ##
4798_ASBOX
4799 ) |
4800 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004801 ;;
4802esac
Benny Prijono0b462322008-03-12 22:44:24 +00004803echo "$as_me:$LINENO: checking for ctype.h" >&5
4804echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004805if test "${ac_cv_header_ctype_h+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004807else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004808 ac_cv_header_ctype_h=$ac_header_preproc
4809fi
Benny Prijono0b462322008-03-12 22:44:24 +00004810echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4811echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004812
4813fi
4814if test $ac_cv_header_ctype_h = yes; then
4815 cat >>confdefs.h <<\_ACEOF
4816#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004817_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004818
4819fi
4820
4821
4822
4823case $target in
4824 *mingw* | *cygw* | *win32* | *w32* )
4825 cat >>confdefs.h <<\_ACEOF
4826#define PJ_HAS_ERRNO_H 0
4827_ACEOF
4828
4829 ;;
4830 *)
4831 if test "${ac_cv_header_errno_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004832 echo "$as_me:$LINENO: checking for errno.h" >&5
4833echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004834if test "${ac_cv_header_errno_h+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836fi
Benny Prijono0b462322008-03-12 22:44:24 +00004837echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4838echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004839else
4840 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004841echo "$as_me:$LINENO: checking errno.h usability" >&5
4842echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004843cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
4849$ac_includes_default
4850#include <errno.h>
4851_ACEOF
4852rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004855 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004856 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004857 rm -f conftest.er1
4858 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004874 ac_header_compiler=yes
4875else
4876 echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
Benny Prijono0b462322008-03-12 22:44:24 +00004879ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004880fi
Benny Prijono0b462322008-03-12 22:44:24 +00004881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4883echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004884
4885# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004886echo "$as_me:$LINENO: checking errno.h presence" >&5
4887echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004888cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h. */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h. */
4894#include <errno.h>
4895_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004903 (exit $ac_status); } >/dev/null; then
4904 if test -s conftest.err; then
4905 ac_cpp_err=$ac_c_preproc_warn_flag
4906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4907 else
4908 ac_cpp_err=
4909 fi
4910else
4911 ac_cpp_err=yes
4912fi
4913if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004914 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004915else
4916 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004917sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004920fi
4921rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004922echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4923echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004924
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004925# So? What about this header?
4926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4927 yes:no: )
4928 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4929echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4930 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4931echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4932 ac_header_preproc=yes
4933 ;;
4934 no:yes:* )
4935 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4936echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4937 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4938echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4940echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4942echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4944echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4946echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004947 (
4948 cat <<\_ASBOX
4949## ------------------------------------ ##
4950## Report this to the pjproject lists. ##
4951## ------------------------------------ ##
4952_ASBOX
4953 ) |
4954 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004955 ;;
4956esac
Benny Prijono0b462322008-03-12 22:44:24 +00004957echo "$as_me:$LINENO: checking for errno.h" >&5
4958echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004959if test "${ac_cv_header_errno_h+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004961else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004962 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004963fi
Benny Prijono0b462322008-03-12 22:44:24 +00004964echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4965echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004966
4967fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004968if test $ac_cv_header_errno_h = yes; then
4969 cat >>confdefs.h <<\_ACEOF
4970#define PJ_HAS_ERRNO_H 1
4971_ACEOF
4972
4973fi
4974
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004975
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004976 ;;
4977esac
4978
Benny Prijono1d481ab2008-01-24 15:27:30 +00004979if test "${ac_cv_header_fcntl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004980 echo "$as_me:$LINENO: checking for fcntl.h" >&5
4981echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004982if test "${ac_cv_header_fcntl_h+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984fi
Benny Prijono0b462322008-03-12 22:44:24 +00004985echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
4986echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004987else
4988 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004989echo "$as_me:$LINENO: checking fcntl.h usability" >&5
4990echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004991cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h. */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h. */
4997$ac_includes_default
4998#include <fcntl.h>
4999_ACEOF
5000rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005022 ac_header_compiler=yes
5023else
5024 echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
Benny Prijono0b462322008-03-12 22:44:24 +00005027ac_header_compiler=no
Benny Prijono1d481ab2008-01-24 15:27:30 +00005028fi
Benny Prijono0b462322008-03-12 22:44:24 +00005029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5031echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005032
5033# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005034echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5035echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005036cat >conftest.$ac_ext <<_ACEOF
5037/* confdefs.h. */
5038_ACEOF
5039cat confdefs.h >>conftest.$ac_ext
5040cat >>conftest.$ac_ext <<_ACEOF
5041/* end confdefs.h. */
5042#include <fcntl.h>
5043_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005051 (exit $ac_status); } >/dev/null; then
5052 if test -s conftest.err; then
5053 ac_cpp_err=$ac_c_preproc_warn_flag
5054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5055 else
5056 ac_cpp_err=
5057 fi
5058else
5059 ac_cpp_err=yes
5060fi
5061if test -z "$ac_cpp_err"; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005062 ac_header_preproc=yes
5063else
5064 echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ac_header_preproc=no
5068fi
Benny Prijono1d481ab2008-01-24 15:27:30 +00005069rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005070echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5071echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005072
5073# So? What about this header?
5074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5075 yes:no: )
5076 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5077echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5078 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5079echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5080 ac_header_preproc=yes
5081 ;;
5082 no:yes:* )
5083 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5084echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5086echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5088echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5090echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5092echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5094echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005095 (
5096 cat <<\_ASBOX
5097## ------------------------------------ ##
5098## Report this to the pjproject lists. ##
5099## ------------------------------------ ##
5100_ASBOX
5101 ) |
5102 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d481ab2008-01-24 15:27:30 +00005103 ;;
5104esac
Benny Prijono0b462322008-03-12 22:44:24 +00005105echo "$as_me:$LINENO: checking for fcntl.h" >&5
5106echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005107if test "${ac_cv_header_fcntl_h+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 ac_cv_header_fcntl_h=$ac_header_preproc
5111fi
Benny Prijono0b462322008-03-12 22:44:24 +00005112echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5113echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005114
5115fi
5116if test $ac_cv_header_fcntl_h = yes; then
5117 cat >>confdefs.h <<\_ACEOF
5118#define PJ_HAS_FCNTL_H 1
5119_ACEOF
5120
5121fi
5122
5123
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005124if test "${ac_cv_header_linux_socket_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005125 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5126echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005127if test "${ac_cv_header_linux_socket_h+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129fi
Benny Prijono0b462322008-03-12 22:44:24 +00005130echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5131echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005132else
5133 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005134echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5135echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005136cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142$ac_includes_default
5143#include <linux/socket.h>
5144_ACEOF
5145rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005148 ac_status=$?
5149 grep -v '^ *+' conftest.er1 >conftest.err
5150 rm -f conftest.er1
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005153 (exit $ac_status); } &&
5154 { ac_try='test -z "$ac_c_werror_flag"
5155 || test ! -s conftest.err'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; } &&
5161 { ac_try='test -s conftest.$ac_objext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005167 ac_header_compiler=yes
5168else
5169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
Benny Prijono0b462322008-03-12 22:44:24 +00005172ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005173fi
Benny Prijono0b462322008-03-12 22:44:24 +00005174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5176echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005177
5178# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005179echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5180echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005181cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187#include <linux/socket.h>
5188_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005196 (exit $ac_status); } >/dev/null; then
5197 if test -s conftest.err; then
5198 ac_cpp_err=$ac_c_preproc_warn_flag
5199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5200 else
5201 ac_cpp_err=
5202 fi
5203else
5204 ac_cpp_err=yes
5205fi
5206if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005207 ac_header_preproc=yes
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212 ac_header_preproc=no
5213fi
5214rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5216echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005217
5218# So? What about this header?
5219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5220 yes:no: )
5221 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5222echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5224echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5225 ac_header_preproc=yes
5226 ;;
5227 no:yes:* )
5228 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5229echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5231echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5233echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5235echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5237echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5239echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005240 (
5241 cat <<\_ASBOX
5242## ------------------------------------ ##
5243## Report this to the pjproject lists. ##
5244## ------------------------------------ ##
5245_ASBOX
5246 ) |
5247 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005248 ;;
5249esac
Benny Prijono0b462322008-03-12 22:44:24 +00005250echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5251echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005252if test "${ac_cv_header_linux_socket_h+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005254else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005255 ac_cv_header_linux_socket_h=$ac_header_preproc
5256fi
Benny Prijono0b462322008-03-12 22:44:24 +00005257echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5258echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005259
5260fi
5261if test $ac_cv_header_linux_socket_h = yes; then
5262 cat >>confdefs.h <<\_ACEOF
5263#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005264_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005265
5266fi
5267
5268
5269if test "${ac_cv_header_malloc_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005270 echo "$as_me:$LINENO: checking for malloc.h" >&5
5271echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005272if test "${ac_cv_header_malloc_h+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274fi
Benny Prijono0b462322008-03-12 22:44:24 +00005275echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5276echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005277else
5278 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005279echo "$as_me:$LINENO: checking malloc.h usability" >&5
5280echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005281cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h. */
5287$ac_includes_default
5288#include <malloc.h>
5289_ACEOF
5290rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005293 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005294 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005295 rm -f conftest.er1
5296 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005312 ac_header_compiler=yes
5313else
5314 echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
Benny Prijono0b462322008-03-12 22:44:24 +00005317ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005318fi
Benny Prijono0b462322008-03-12 22:44:24 +00005319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5321echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005322
5323# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005324echo "$as_me:$LINENO: checking malloc.h presence" >&5
5325echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005326cat >conftest.$ac_ext <<_ACEOF
5327/* confdefs.h. */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h. */
5332#include <malloc.h>
5333_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005341 (exit $ac_status); } >/dev/null; then
5342 if test -s conftest.err; then
5343 ac_cpp_err=$ac_c_preproc_warn_flag
5344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5345 else
5346 ac_cpp_err=
5347 fi
5348else
5349 ac_cpp_err=yes
5350fi
5351if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005352 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005353else
5354 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005358fi
5359rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5361echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005362
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005363# So? What about this header?
5364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5365 yes:no: )
5366 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5367echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5369echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5370 ac_header_preproc=yes
5371 ;;
5372 no:yes:* )
5373 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5374echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5376echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5378echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5380echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5381 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5382echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5384echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005385 (
5386 cat <<\_ASBOX
5387## ------------------------------------ ##
5388## Report this to the pjproject lists. ##
5389## ------------------------------------ ##
5390_ASBOX
5391 ) |
5392 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005393 ;;
5394esac
Benny Prijono0b462322008-03-12 22:44:24 +00005395echo "$as_me:$LINENO: checking for malloc.h" >&5
5396echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005397if test "${ac_cv_header_malloc_h+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005399else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005400 ac_cv_header_malloc_h=$ac_header_preproc
5401fi
Benny Prijono0b462322008-03-12 22:44:24 +00005402echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5403echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005404
5405fi
5406if test $ac_cv_header_malloc_h = yes; then
5407 cat >>confdefs.h <<\_ACEOF
5408#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005409_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005410
5411fi
5412
5413
5414if test "${ac_cv_header_netdb_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005415 echo "$as_me:$LINENO: checking for netdb.h" >&5
5416echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005417if test "${ac_cv_header_netdb_h+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419fi
Benny Prijono0b462322008-03-12 22:44:24 +00005420echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5421echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005422else
5423 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005424echo "$as_me:$LINENO: checking netdb.h usability" >&5
5425echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005426cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
5432$ac_includes_default
5433#include <netdb.h>
5434_ACEOF
5435rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005438 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005439 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005440 rm -f conftest.er1
5441 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005443 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_c_werror_flag"
5445 || test ! -s conftest.err'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; } &&
5451 { ac_try='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005457 ac_header_compiler=yes
5458else
5459 echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
Benny Prijono0b462322008-03-12 22:44:24 +00005462ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005463fi
Benny Prijono0b462322008-03-12 22:44:24 +00005464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005467
5468# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005469echo "$as_me:$LINENO: checking netdb.h presence" >&5
5470echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005471cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h. */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h. */
5477#include <netdb.h>
5478_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005486 (exit $ac_status); } >/dev/null; then
5487 if test -s conftest.err; then
5488 ac_cpp_err=$ac_c_preproc_warn_flag
5489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5490 else
5491 ac_cpp_err=
5492 fi
5493else
5494 ac_cpp_err=yes
5495fi
5496if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005497 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005498else
5499 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005503fi
5504rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5506echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005507
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005508# So? What about this header?
5509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5510 yes:no: )
5511 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5512echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5514echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5515 ac_header_preproc=yes
5516 ;;
5517 no:yes:* )
5518 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5519echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5521echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5523echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5525echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5527echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5529echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005530 (
5531 cat <<\_ASBOX
5532## ------------------------------------ ##
5533## Report this to the pjproject lists. ##
5534## ------------------------------------ ##
5535_ASBOX
5536 ) |
5537 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005538 ;;
5539esac
Benny Prijono0b462322008-03-12 22:44:24 +00005540echo "$as_me:$LINENO: checking for netdb.h" >&5
5541echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005542if test "${ac_cv_header_netdb_h+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005544else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005545 ac_cv_header_netdb_h=$ac_header_preproc
5546fi
Benny Prijono0b462322008-03-12 22:44:24 +00005547echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5548echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005549
5550fi
5551if test $ac_cv_header_netdb_h = yes; then
5552 cat >>confdefs.h <<\_ACEOF
5553#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005554_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005555
5556fi
5557
5558
5559if test "${ac_cv_header_netinet_in_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005560 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5561echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005562if test "${ac_cv_header_netinet_in_h+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564fi
Benny Prijono0b462322008-03-12 22:44:24 +00005565echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5566echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005567else
5568 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005569echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5570echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005571cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h. */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
5576/* end confdefs.h. */
5577$ac_includes_default
5578#include <netinet/in.h>
5579_ACEOF
5580rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005583 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005584 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005585 rm -f conftest.er1
5586 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005588 (exit $ac_status); } &&
5589 { ac_try='test -z "$ac_c_werror_flag"
5590 || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005602 ac_header_compiler=yes
5603else
5604 echo "$as_me: failed program was:" >&5
5605sed 's/^/| /' conftest.$ac_ext >&5
5606
Benny Prijono0b462322008-03-12 22:44:24 +00005607ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005608fi
Benny Prijono0b462322008-03-12 22:44:24 +00005609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5611echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005612
5613# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005614echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5615echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005616cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622#include <netinet/in.h>
5623_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005631 (exit $ac_status); } >/dev/null; then
5632 if test -s conftest.err; then
5633 ac_cpp_err=$ac_c_preproc_warn_flag
5634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5635 else
5636 ac_cpp_err=
5637 fi
5638else
5639 ac_cpp_err=yes
5640fi
5641if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005642 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005643else
5644 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005645sed 's/^/| /' conftest.$ac_ext >&5
5646
5647 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005648fi
5649rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005650echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5651echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005652
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005653# So? What about this header?
5654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5655 yes:no: )
5656 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5657echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5659echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5660 ac_header_preproc=yes
5661 ;;
5662 no:yes:* )
5663 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5664echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5666echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5668echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5670echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5672echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5674echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005675 (
5676 cat <<\_ASBOX
5677## ------------------------------------ ##
5678## Report this to the pjproject lists. ##
5679## ------------------------------------ ##
5680_ASBOX
5681 ) |
5682 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005683 ;;
5684esac
Benny Prijono0b462322008-03-12 22:44:24 +00005685echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5686echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005687if test "${ac_cv_header_netinet_in_h+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005689else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005690 ac_cv_header_netinet_in_h=$ac_header_preproc
5691fi
Benny Prijono0b462322008-03-12 22:44:24 +00005692echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5693echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005694
5695fi
5696if test $ac_cv_header_netinet_in_h = yes; then
5697 cat >>confdefs.h <<\_ACEOF
5698#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005699_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005700
5701fi
5702
5703
Benny Prijonof63a2552007-02-01 00:36:52 +00005704if test "${ac_cv_header_netinet_ip_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005705 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5706echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005707if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709fi
Benny Prijono0b462322008-03-12 22:44:24 +00005710echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5711echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005712else
5713 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005714echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5715echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005716cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h. */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
5722$ac_includes_default
5723#include <netinet/ip.h>
5724_ACEOF
5725rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00005728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005733 (exit $ac_status); } &&
5734 { ac_try='test -z "$ac_c_werror_flag"
5735 || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
Benny Prijonof63a2552007-02-01 00:36:52 +00005747 ac_header_compiler=yes
5748else
5749 echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
Benny Prijono0b462322008-03-12 22:44:24 +00005752ac_header_compiler=no
Benny Prijonof63a2552007-02-01 00:36:52 +00005753fi
Benny Prijono0b462322008-03-12 22:44:24 +00005754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5755echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5756echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005757
5758# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005759echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5760echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005761cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h. */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h. */
5767#include <netinet/ip.h>
5768_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00005771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005776 (exit $ac_status); } >/dev/null; then
5777 if test -s conftest.err; then
5778 ac_cpp_err=$ac_c_preproc_warn_flag
5779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5780 else
5781 ac_cpp_err=
5782 fi
5783else
5784 ac_cpp_err=yes
5785fi
5786if test -z "$ac_cpp_err"; then
Benny Prijonof63a2552007-02-01 00:36:52 +00005787 ac_header_preproc=yes
5788else
5789 echo "$as_me: failed program was:" >&5
5790sed 's/^/| /' conftest.$ac_ext >&5
5791
5792 ac_header_preproc=no
5793fi
5794rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005795echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5796echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005797
5798# So? What about this header?
5799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5800 yes:no: )
5801 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5802echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5804echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5805 ac_header_preproc=yes
5806 ;;
5807 no:yes:* )
5808 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5809echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5810 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5811echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5812 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5813echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5815echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5817echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5818 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5819echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005820 (
5821 cat <<\_ASBOX
5822## ------------------------------------ ##
5823## Report this to the pjproject lists. ##
5824## ------------------------------------ ##
5825_ASBOX
5826 ) |
5827 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijonof63a2552007-02-01 00:36:52 +00005828 ;;
5829esac
Benny Prijono0b462322008-03-12 22:44:24 +00005830echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5831echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005832if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 ac_cv_header_netinet_ip_h=$ac_header_preproc
5836fi
Benny Prijono0b462322008-03-12 22:44:24 +00005837echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5838echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005839
5840fi
5841if test $ac_cv_header_netinet_ip_h = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5843#define PJ_HAS_NETINET_IP_H 1
5844_ACEOF
5845
5846fi
5847
5848
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005849if test "${ac_cv_header_net_if_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005850 echo "$as_me:$LINENO: checking for net/if.h" >&5
5851echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005852if test "${ac_cv_header_net_if_h+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854fi
Benny Prijono0b462322008-03-12 22:44:24 +00005855echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
5856echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005857else
5858 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005859echo "$as_me:$LINENO: checking net/if.h usability" >&5
5860echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&6
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005861cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h. */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h. */
5867$ac_includes_default
5868#include <net/if.h>
5869_ACEOF
5870rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872 (eval $ac_compile) 2>conftest.er1
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005878 (exit $ac_status); } &&
5879 { ac_try='test -z "$ac_c_werror_flag"
5880 || test ! -s conftest.err'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest.$ac_objext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 (eval $ac_try) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005892 ac_header_compiler=yes
5893else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
Benny Prijono0b462322008-03-12 22:44:24 +00005897ac_header_compiler=no
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005898fi
Benny Prijono0b462322008-03-12 22:44:24 +00005899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5901echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005902
5903# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005904echo "$as_me:$LINENO: checking net/if.h presence" >&5
5905echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&6
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005906cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912#include <net/if.h>
5913_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005921 (exit $ac_status); } >/dev/null; then
5922 if test -s conftest.err; then
5923 ac_cpp_err=$ac_c_preproc_warn_flag
5924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5925 else
5926 ac_cpp_err=
5927 fi
5928else
5929 ac_cpp_err=yes
5930fi
5931if test -z "$ac_cpp_err"; then
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005932 ac_header_preproc=yes
5933else
5934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_header_preproc=no
5938fi
5939rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5941echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005942
5943# So? What about this header?
5944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5945 yes:no: )
5946 { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&5
5947echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&5
5949echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;}
5950 ac_header_preproc=yes
5951 ;;
5952 no:yes:* )
5953 { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&5
5954echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: net/if.h: check for missing prerequisite headers?" >&5
5956echo "$as_me: WARNING: net/if.h: check for missing prerequisite headers?" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&5
5958echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&5
5960echo "$as_me: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&2;}
5961 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&5
5962echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;}
5963 { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&5
5964echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005965 (
5966 cat <<\_ASBOX
5967## ------------------------------------ ##
5968## Report this to the pjproject lists. ##
5969## ------------------------------------ ##
5970_ASBOX
5971 ) |
5972 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005973 ;;
5974esac
Benny Prijono0b462322008-03-12 22:44:24 +00005975echo "$as_me:$LINENO: checking for net/if.h" >&5
5976echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005977if test "${ac_cv_header_net_if_h+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979else
5980 ac_cv_header_net_if_h=$ac_header_preproc
5981fi
Benny Prijono0b462322008-03-12 22:44:24 +00005982echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
5983echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005984
5985fi
5986if test $ac_cv_header_net_if_h = yes; then
5987 cat >>confdefs.h <<\_ACEOF
5988#define PJ_HAS_NET_IF_H 1
5989_ACEOF
5990
5991fi
5992
5993
Benny Prijono1d65f702007-12-03 04:03:17 +00005994if test "${ac_cv_header_ifaddrs_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005995 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5996echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005997if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999fi
Benny Prijono0b462322008-03-12 22:44:24 +00006000echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6001echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006002else
6003 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006004echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6005echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006006cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h. */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
6011/* end confdefs.h. */
6012$ac_includes_default
6013#include <ifaddrs.h>
6014_ACEOF
6015rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6017 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00006018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006023 (exit $ac_status); } &&
6024 { ac_try='test -z "$ac_c_werror_flag"
6025 || test ! -s conftest.err'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 (eval $ac_try) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006037 ac_header_compiler=yes
6038else
6039 echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
6041
Benny Prijono0b462322008-03-12 22:44:24 +00006042ac_header_compiler=no
Benny Prijono1d65f702007-12-03 04:03:17 +00006043fi
Benny Prijono0b462322008-03-12 22:44:24 +00006044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6046echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006047
6048# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006049echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6050echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006051cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h. */
6057#include <ifaddrs.h>
6058_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00006061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006066 (exit $ac_status); } >/dev/null; then
6067 if test -s conftest.err; then
6068 ac_cpp_err=$ac_c_preproc_warn_flag
6069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6070 else
6071 ac_cpp_err=
6072 fi
6073else
6074 ac_cpp_err=yes
6075fi
6076if test -z "$ac_cpp_err"; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006077 ac_header_preproc=yes
6078else
6079 echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_header_preproc=no
6083fi
6084rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6086echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006087
6088# So? What about this header?
6089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6090 yes:no: )
6091 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6092echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6094echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6095 ac_header_preproc=yes
6096 ;;
6097 no:yes:* )
6098 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6099echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6101echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6103echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6105echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6107echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6108 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6109echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006110 (
6111 cat <<\_ASBOX
6112## ------------------------------------ ##
6113## Report this to the pjproject lists. ##
6114## ------------------------------------ ##
6115_ASBOX
6116 ) |
6117 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d65f702007-12-03 04:03:17 +00006118 ;;
6119esac
Benny Prijono0b462322008-03-12 22:44:24 +00006120echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6121echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006122if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125 ac_cv_header_ifaddrs_h=$ac_header_preproc
6126fi
Benny Prijono0b462322008-03-12 22:44:24 +00006127echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6128echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006129
6130fi
6131if test $ac_cv_header_ifaddrs_h = yes; then
6132 cat >>confdefs.h <<\_ACEOF
6133#define PJ_HAS_IFADDRS_H 1
6134_ACEOF
6135
6136fi
6137
6138
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006139if test "${ac_cv_header_semaphore_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006140 echo "$as_me:$LINENO: checking for semaphore.h" >&5
6141echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006142if test "${ac_cv_header_semaphore_h+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144fi
Benny Prijono0b462322008-03-12 22:44:24 +00006145echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6146echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006147else
6148 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006149echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6150echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006151cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157$ac_includes_default
6158#include <semaphore.h>
6159_ACEOF
6160rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006182 ac_header_compiler=yes
6183else
6184 echo "$as_me: failed program was:" >&5
6185sed 's/^/| /' conftest.$ac_ext >&5
6186
Benny Prijono0b462322008-03-12 22:44:24 +00006187ac_header_compiler=no
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006188fi
Benny Prijono0b462322008-03-12 22:44:24 +00006189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6191echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006192
6193# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006194echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6195echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006196cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h. */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h. */
6202#include <semaphore.h>
6203_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006211 (exit $ac_status); } >/dev/null; then
6212 if test -s conftest.err; then
6213 ac_cpp_err=$ac_c_preproc_warn_flag
6214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6215 else
6216 ac_cpp_err=
6217 fi
6218else
6219 ac_cpp_err=yes
6220fi
6221if test -z "$ac_cpp_err"; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006222 ac_header_preproc=yes
6223else
6224 echo "$as_me: failed program was:" >&5
6225sed 's/^/| /' conftest.$ac_ext >&5
6226
6227 ac_header_preproc=no
6228fi
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006229rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6231echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006232
6233# So? What about this header?
6234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6235 yes:no: )
6236 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6237echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6239echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6240 ac_header_preproc=yes
6241 ;;
6242 no:yes:* )
6243 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6244echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6246echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6248echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6250echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6252echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6254echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006255 (
6256 cat <<\_ASBOX
6257## ------------------------------------ ##
6258## Report this to the pjproject lists. ##
6259## ------------------------------------ ##
6260_ASBOX
6261 ) |
6262 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006263 ;;
6264esac
Benny Prijono0b462322008-03-12 22:44:24 +00006265echo "$as_me:$LINENO: checking for semaphore.h" >&5
6266echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006267if test "${ac_cv_header_semaphore_h+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270 ac_cv_header_semaphore_h=$ac_header_preproc
6271fi
Benny Prijono0b462322008-03-12 22:44:24 +00006272echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6273echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006274
6275fi
6276if test $ac_cv_header_semaphore_h = yes; then
6277 cat >>confdefs.h <<\_ACEOF
6278#define PJ_HAS_SEMAPHORE_H 1
6279_ACEOF
6280
6281fi
6282
6283
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006284if test "${ac_cv_header_setjmp_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006285 echo "$as_me:$LINENO: checking for setjmp.h" >&5
6286echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006287if test "${ac_cv_header_setjmp_h+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289fi
Benny Prijono0b462322008-03-12 22:44:24 +00006290echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6291echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006292else
6293 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006294echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6295echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006296cat >conftest.$ac_ext <<_ACEOF
6297/* confdefs.h. */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h. */
6302$ac_includes_default
6303#include <setjmp.h>
6304_ACEOF
6305rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006308 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006309 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006310 rm -f conftest.er1
6311 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006327 ac_header_compiler=yes
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
Benny Prijono0b462322008-03-12 22:44:24 +00006332ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006333fi
Benny Prijono0b462322008-03-12 22:44:24 +00006334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006337
6338# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006339echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6340echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006341cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h. */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h. */
6347#include <setjmp.h>
6348_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006356 (exit $ac_status); } >/dev/null; then
6357 if test -s conftest.err; then
6358 ac_cpp_err=$ac_c_preproc_warn_flag
6359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6360 else
6361 ac_cpp_err=
6362 fi
6363else
6364 ac_cpp_err=yes
6365fi
6366if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006367 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006368else
6369 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006373fi
6374rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006377
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006378# So? What about this header?
6379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 yes:no: )
6381 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6382echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6384echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6386 ;;
6387 no:yes:* )
6388 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6389echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6391echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6393echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6395echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6397echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6399echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006400 (
6401 cat <<\_ASBOX
6402## ------------------------------------ ##
6403## Report this to the pjproject lists. ##
6404## ------------------------------------ ##
6405_ASBOX
6406 ) |
6407 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006408 ;;
6409esac
Benny Prijono0b462322008-03-12 22:44:24 +00006410echo "$as_me:$LINENO: checking for setjmp.h" >&5
6411echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006412if test "${ac_cv_header_setjmp_h+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006414else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006415 ac_cv_header_setjmp_h=$ac_header_preproc
6416fi
Benny Prijono0b462322008-03-12 22:44:24 +00006417echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6418echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006419
6420fi
6421if test $ac_cv_header_setjmp_h = yes; then
6422 cat >>confdefs.h <<\_ACEOF
6423#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006424_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006425
6426fi
6427
6428
6429if test "${ac_cv_header_stdarg_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006430 echo "$as_me:$LINENO: checking for stdarg.h" >&5
6431echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006432if test "${ac_cv_header_stdarg_h+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434fi
Benny Prijono0b462322008-03-12 22:44:24 +00006435echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6436echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006437else
6438 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006439echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6440echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006441cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h. */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h. */
6447$ac_includes_default
6448#include <stdarg.h>
6449_ACEOF
6450rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006453 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006454 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006455 rm -f conftest.er1
6456 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006458 (exit $ac_status); } &&
6459 { ac_try='test -z "$ac_c_werror_flag"
6460 || test ! -s conftest.err'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest.$ac_objext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006472 ac_header_compiler=yes
6473else
6474 echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
Benny Prijono0b462322008-03-12 22:44:24 +00006477ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006478fi
Benny Prijono0b462322008-03-12 22:44:24 +00006479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6481echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006482
6483# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006484echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6485echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006486cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
6491/* end confdefs.h. */
6492#include <stdarg.h>
6493_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006501 (exit $ac_status); } >/dev/null; then
6502 if test -s conftest.err; then
6503 ac_cpp_err=$ac_c_preproc_warn_flag
6504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6505 else
6506 ac_cpp_err=
6507 fi
6508else
6509 ac_cpp_err=yes
6510fi
6511if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006512 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006513else
6514 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006518fi
6519rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6521echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006522
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006523# So? What about this header?
6524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6525 yes:no: )
6526 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6527echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6528 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6529echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6530 ac_header_preproc=yes
6531 ;;
6532 no:yes:* )
6533 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6534echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6536echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6538echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6540echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6542echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6543 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6544echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006545 (
6546 cat <<\_ASBOX
6547## ------------------------------------ ##
6548## Report this to the pjproject lists. ##
6549## ------------------------------------ ##
6550_ASBOX
6551 ) |
6552 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006553 ;;
6554esac
Benny Prijono0b462322008-03-12 22:44:24 +00006555echo "$as_me:$LINENO: checking for stdarg.h" >&5
6556echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006557if test "${ac_cv_header_stdarg_h+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006559else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006560 ac_cv_header_stdarg_h=$ac_header_preproc
6561fi
Benny Prijono0b462322008-03-12 22:44:24 +00006562echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6563echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006564
6565fi
6566if test $ac_cv_header_stdarg_h = yes; then
6567 cat >>confdefs.h <<\_ACEOF
6568#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006569_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006570
6571fi
6572
6573
6574if test "${ac_cv_header_stddef_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006575 echo "$as_me:$LINENO: checking for stddef.h" >&5
6576echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006577if test "${ac_cv_header_stddef_h+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579fi
Benny Prijono0b462322008-03-12 22:44:24 +00006580echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6581echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006582else
6583 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006584echo "$as_me:$LINENO: checking stddef.h usability" >&5
6585echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006586cat >conftest.$ac_ext <<_ACEOF
6587/* confdefs.h. */
6588_ACEOF
6589cat confdefs.h >>conftest.$ac_ext
6590cat >>conftest.$ac_ext <<_ACEOF
6591/* end confdefs.h. */
6592$ac_includes_default
6593#include <stddef.h>
6594_ACEOF
6595rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6597 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006598 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006599 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006600 rm -f conftest.er1
6601 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006617 ac_header_compiler=yes
6618else
6619 echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
Benny Prijono0b462322008-03-12 22:44:24 +00006622ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006623fi
Benny Prijono0b462322008-03-12 22:44:24 +00006624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6626echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006627
6628# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006629echo "$as_me:$LINENO: checking stddef.h presence" >&5
6630echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006631cat >conftest.$ac_ext <<_ACEOF
6632/* confdefs.h. */
6633_ACEOF
6634cat confdefs.h >>conftest.$ac_ext
6635cat >>conftest.$ac_ext <<_ACEOF
6636/* end confdefs.h. */
6637#include <stddef.h>
6638_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006646 (exit $ac_status); } >/dev/null; then
6647 if test -s conftest.err; then
6648 ac_cpp_err=$ac_c_preproc_warn_flag
6649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6650 else
6651 ac_cpp_err=
6652 fi
6653else
6654 ac_cpp_err=yes
6655fi
6656if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006657 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006658else
6659 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006663fi
6664rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6666echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006667
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006668# So? What about this header?
6669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6670 yes:no: )
6671 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6672echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6674echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6675 ac_header_preproc=yes
6676 ;;
6677 no:yes:* )
6678 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6679echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6681echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6683echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6685echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6687echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6688 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6689echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006690 (
6691 cat <<\_ASBOX
6692## ------------------------------------ ##
6693## Report this to the pjproject lists. ##
6694## ------------------------------------ ##
6695_ASBOX
6696 ) |
6697 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006698 ;;
6699esac
Benny Prijono0b462322008-03-12 22:44:24 +00006700echo "$as_me:$LINENO: checking for stddef.h" >&5
6701echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006702if test "${ac_cv_header_stddef_h+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006704else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006705 ac_cv_header_stddef_h=$ac_header_preproc
6706fi
Benny Prijono0b462322008-03-12 22:44:24 +00006707echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6708echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006709
6710fi
6711if test $ac_cv_header_stddef_h = yes; then
6712 cat >>confdefs.h <<\_ACEOF
6713#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006714_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006715
6716fi
6717
6718
6719if test "${ac_cv_header_stdio_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006720 echo "$as_me:$LINENO: checking for stdio.h" >&5
6721echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006722if test "${ac_cv_header_stdio_h+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724fi
Benny Prijono0b462322008-03-12 22:44:24 +00006725echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6726echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006727else
6728 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006729echo "$as_me:$LINENO: checking stdio.h usability" >&5
6730echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006731cat >conftest.$ac_ext <<_ACEOF
6732/* confdefs.h. */
6733_ACEOF
6734cat confdefs.h >>conftest.$ac_ext
6735cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h. */
6737$ac_includes_default
6738#include <stdio.h>
6739_ACEOF
6740rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006743 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006744 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006745 rm -f conftest.er1
6746 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag"
6750 || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest.$ac_objext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006762 ac_header_compiler=yes
6763else
6764 echo "$as_me: failed program was:" >&5
6765sed 's/^/| /' conftest.$ac_ext >&5
6766
Benny Prijono0b462322008-03-12 22:44:24 +00006767ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006768fi
Benny Prijono0b462322008-03-12 22:44:24 +00006769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6771echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006772
6773# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006774echo "$as_me:$LINENO: checking stdio.h presence" >&5
6775echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006776cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782#include <stdio.h>
6783_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006791 (exit $ac_status); } >/dev/null; then
6792 if test -s conftest.err; then
6793 ac_cpp_err=$ac_c_preproc_warn_flag
6794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6795 else
6796 ac_cpp_err=
6797 fi
6798else
6799 ac_cpp_err=yes
6800fi
6801if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006802 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006803else
6804 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006805sed 's/^/| /' conftest.$ac_ext >&5
6806
6807 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006808fi
6809rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6811echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006812
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006813# So? What about this header?
6814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6815 yes:no: )
6816 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6817echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6819echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6820 ac_header_preproc=yes
6821 ;;
6822 no:yes:* )
6823 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6824echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6825 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6826echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6828echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6830echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6832echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6834echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006835 (
6836 cat <<\_ASBOX
6837## ------------------------------------ ##
6838## Report this to the pjproject lists. ##
6839## ------------------------------------ ##
6840_ASBOX
6841 ) |
6842 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006843 ;;
6844esac
Benny Prijono0b462322008-03-12 22:44:24 +00006845echo "$as_me:$LINENO: checking for stdio.h" >&5
6846echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006847if test "${ac_cv_header_stdio_h+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006849else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006850 ac_cv_header_stdio_h=$ac_header_preproc
6851fi
Benny Prijono0b462322008-03-12 22:44:24 +00006852echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6853echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006854
6855fi
6856if test $ac_cv_header_stdio_h = yes; then
6857 cat >>confdefs.h <<\_ACEOF
6858#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006859_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006860
6861fi
6862
6863
Benny Prijonofdafd402008-01-23 14:34:46 +00006864if test "${ac_cv_header_stdint_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006865 echo "$as_me:$LINENO: checking for stdint.h" >&5
6866echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006867if test "${ac_cv_header_stdint_h+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869fi
Benny Prijono0b462322008-03-12 22:44:24 +00006870echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6871echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006872else
6873 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006874echo "$as_me:$LINENO: checking stdint.h usability" >&5
6875echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006876cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h. */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h. */
6882$ac_includes_default
6883#include <stdint.h>
6884_ACEOF
6885rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006893 (exit $ac_status); } &&
6894 { ac_try='test -z "$ac_c_werror_flag"
6895 || test ! -s conftest.err'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; } &&
6901 { ac_try='test -s conftest.$ac_objext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006907 ac_header_compiler=yes
6908else
6909 echo "$as_me: failed program was:" >&5
6910sed 's/^/| /' conftest.$ac_ext >&5
6911
Benny Prijono0b462322008-03-12 22:44:24 +00006912ac_header_compiler=no
Benny Prijonofdafd402008-01-23 14:34:46 +00006913fi
Benny Prijono0b462322008-03-12 22:44:24 +00006914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6915echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6916echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006917
6918# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006919echo "$as_me:$LINENO: checking stdint.h presence" >&5
6920echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006921cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927#include <stdint.h>
6928_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006931 ac_status=$?
6932 grep -v '^ *+' conftest.er1 >conftest.err
6933 rm -f conftest.er1
6934 cat conftest.err >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006936 (exit $ac_status); } >/dev/null; then
6937 if test -s conftest.err; then
6938 ac_cpp_err=$ac_c_preproc_warn_flag
6939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6940 else
6941 ac_cpp_err=
6942 fi
6943else
6944 ac_cpp_err=yes
6945fi
6946if test -z "$ac_cpp_err"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006947 ac_header_preproc=yes
6948else
6949 echo "$as_me: failed program was:" >&5
6950sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 ac_header_preproc=no
6953fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006954rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006955echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6956echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006957
6958# So? What about this header?
6959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6960 yes:no: )
6961 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6962echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6963 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6964echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6965 ac_header_preproc=yes
6966 ;;
6967 no:yes:* )
6968 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6969echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
6971echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6973echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
6975echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6977echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6979echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006980 (
6981 cat <<\_ASBOX
6982## ------------------------------------ ##
6983## Report this to the pjproject lists. ##
6984## ------------------------------------ ##
6985_ASBOX
6986 ) |
6987 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijonofdafd402008-01-23 14:34:46 +00006988 ;;
6989esac
Benny Prijono0b462322008-03-12 22:44:24 +00006990echo "$as_me:$LINENO: checking for stdint.h" >&5
6991echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006992if test "${ac_cv_header_stdint_h+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995 ac_cv_header_stdint_h=$ac_header_preproc
6996fi
Benny Prijono0b462322008-03-12 22:44:24 +00006997echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6998echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006999
7000fi
7001if test $ac_cv_header_stdint_h = yes; then
7002 cat >>confdefs.h <<\_ACEOF
7003#define PJ_HAS_STDINT_H 1
7004_ACEOF
7005
7006fi
7007
7008
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007009if test "${ac_cv_header_stdlib_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007010 echo "$as_me:$LINENO: checking for stdlib.h" >&5
7011echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007012if test "${ac_cv_header_stdlib_h+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014fi
Benny Prijono0b462322008-03-12 22:44:24 +00007015echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7016echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007017else
7018 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007019echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7020echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007021cat >conftest.$ac_ext <<_ACEOF
7022/* confdefs.h. */
7023_ACEOF
7024cat confdefs.h >>conftest.$ac_ext
7025cat >>conftest.$ac_ext <<_ACEOF
7026/* end confdefs.h. */
7027$ac_includes_default
7028#include <stdlib.h>
7029_ACEOF
7030rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7032 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007033 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007034 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007035 rm -f conftest.er1
7036 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007038 (exit $ac_status); } &&
7039 { ac_try='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try='test -s conftest.$ac_objext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007052 ac_header_compiler=yes
7053else
7054 echo "$as_me: failed program was:" >&5
7055sed 's/^/| /' conftest.$ac_ext >&5
7056
Benny Prijono0b462322008-03-12 22:44:24 +00007057ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007058fi
Benny Prijono0b462322008-03-12 22:44:24 +00007059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7061echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007062
7063# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007064echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7065echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007066cat >conftest.$ac_ext <<_ACEOF
7067/* confdefs.h. */
7068_ACEOF
7069cat confdefs.h >>conftest.$ac_ext
7070cat >>conftest.$ac_ext <<_ACEOF
7071/* end confdefs.h. */
7072#include <stdlib.h>
7073_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007081 (exit $ac_status); } >/dev/null; then
7082 if test -s conftest.err; then
7083 ac_cpp_err=$ac_c_preproc_warn_flag
7084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7085 else
7086 ac_cpp_err=
7087 fi
7088else
7089 ac_cpp_err=yes
7090fi
7091if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007092 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007093else
7094 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007095sed 's/^/| /' conftest.$ac_ext >&5
7096
7097 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007098fi
7099rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7101echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007102
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007103# So? What about this header?
7104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7105 yes:no: )
7106 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7107echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7108 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7109echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7110 ac_header_preproc=yes
7111 ;;
7112 no:yes:* )
7113 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7114echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7115 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7116echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7118echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7119 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7120echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7121 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7122echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7123 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7124echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007125 (
7126 cat <<\_ASBOX
7127## ------------------------------------ ##
7128## Report this to the pjproject lists. ##
7129## ------------------------------------ ##
7130_ASBOX
7131 ) |
7132 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007133 ;;
7134esac
Benny Prijono0b462322008-03-12 22:44:24 +00007135echo "$as_me:$LINENO: checking for stdlib.h" >&5
7136echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007137if test "${ac_cv_header_stdlib_h+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007139else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007140 ac_cv_header_stdlib_h=$ac_header_preproc
7141fi
Benny Prijono0b462322008-03-12 22:44:24 +00007142echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7143echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007144
7145fi
7146if test $ac_cv_header_stdlib_h = yes; then
7147 cat >>confdefs.h <<\_ACEOF
7148#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007149_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007150
7151fi
7152
7153
7154if test "${ac_cv_header_string_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007155 echo "$as_me:$LINENO: checking for string.h" >&5
7156echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007157if test "${ac_cv_header_string_h+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159fi
Benny Prijono0b462322008-03-12 22:44:24 +00007160echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7161echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007162else
7163 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007164echo "$as_me:$LINENO: checking string.h usability" >&5
7165echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007166cat >conftest.$ac_ext <<_ACEOF
7167/* confdefs.h. */
7168_ACEOF
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h. */
7172$ac_includes_default
7173#include <string.h>
7174_ACEOF
7175rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007178 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007179 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007180 rm -f conftest.er1
7181 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007183 (exit $ac_status); } &&
7184 { ac_try='test -z "$ac_c_werror_flag"
7185 || test ! -s conftest.err'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; } &&
7191 { ac_try='test -s conftest.$ac_objext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007197 ac_header_compiler=yes
7198else
7199 echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
Benny Prijono0b462322008-03-12 22:44:24 +00007202ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007203fi
Benny Prijono0b462322008-03-12 22:44:24 +00007204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7205echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7206echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007207
7208# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007209echo "$as_me:$LINENO: checking string.h presence" >&5
7210echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007211cat >conftest.$ac_ext <<_ACEOF
7212/* confdefs.h. */
7213_ACEOF
7214cat confdefs.h >>conftest.$ac_ext
7215cat >>conftest.$ac_ext <<_ACEOF
7216/* end confdefs.h. */
7217#include <string.h>
7218_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007226 (exit $ac_status); } >/dev/null; then
7227 if test -s conftest.err; then
7228 ac_cpp_err=$ac_c_preproc_warn_flag
7229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7230 else
7231 ac_cpp_err=
7232 fi
7233else
7234 ac_cpp_err=yes
7235fi
7236if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007237 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007238else
7239 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007240sed 's/^/| /' conftest.$ac_ext >&5
7241
7242 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007243fi
7244rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007245echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7246echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007247
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007248# So? What about this header?
7249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7250 yes:no: )
7251 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7252echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7254echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7255 ac_header_preproc=yes
7256 ;;
7257 no:yes:* )
7258 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7259echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7261echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7263echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7265echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7267echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7269echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007270 (
7271 cat <<\_ASBOX
7272## ------------------------------------ ##
7273## Report this to the pjproject lists. ##
7274## ------------------------------------ ##
7275_ASBOX
7276 ) |
7277 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007278 ;;
7279esac
Benny Prijono0b462322008-03-12 22:44:24 +00007280echo "$as_me:$LINENO: checking for string.h" >&5
7281echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007282if test "${ac_cv_header_string_h+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007284else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007285 ac_cv_header_string_h=$ac_header_preproc
7286fi
Benny Prijono0b462322008-03-12 22:44:24 +00007287echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7288echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007289
7290fi
7291if test $ac_cv_header_string_h = yes; then
7292 cat >>confdefs.h <<\_ACEOF
7293#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007294_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007295
7296fi
7297
7298
7299if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007300 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7301echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007302if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304fi
Benny Prijono0b462322008-03-12 22:44:24 +00007305echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7306echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007307else
7308 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007309echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7310echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007311cat >conftest.$ac_ext <<_ACEOF
7312/* confdefs.h. */
7313_ACEOF
7314cat confdefs.h >>conftest.$ac_ext
7315cat >>conftest.$ac_ext <<_ACEOF
7316/* end confdefs.h. */
7317$ac_includes_default
7318#include <sys/ioctl.h>
7319_ACEOF
7320rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007323 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007324 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007325 rm -f conftest.er1
7326 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007328 (exit $ac_status); } &&
7329 { ac_try='test -z "$ac_c_werror_flag"
7330 || test ! -s conftest.err'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 (eval $ac_try) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; } &&
7336 { ac_try='test -s conftest.$ac_objext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007342 ac_header_compiler=yes
7343else
7344 echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
Benny Prijono0b462322008-03-12 22:44:24 +00007347ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007348fi
Benny Prijono0b462322008-03-12 22:44:24 +00007349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7351echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007352
7353# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007354echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7355echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007356cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h. */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h. */
7362#include <sys/ioctl.h>
7363_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007371 (exit $ac_status); } >/dev/null; then
7372 if test -s conftest.err; then
7373 ac_cpp_err=$ac_c_preproc_warn_flag
7374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7375 else
7376 ac_cpp_err=
7377 fi
7378else
7379 ac_cpp_err=yes
7380fi
7381if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007382 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007383else
7384 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007385sed 's/^/| /' conftest.$ac_ext >&5
7386
7387 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007388fi
7389rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7391echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007392
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007393# So? What about this header?
7394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7395 yes:no: )
7396 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7397echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7399echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7400 ac_header_preproc=yes
7401 ;;
7402 no:yes:* )
7403 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7404echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7405 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7406echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7408echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7410echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7412echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7413 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7414echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007415 (
7416 cat <<\_ASBOX
7417## ------------------------------------ ##
7418## Report this to the pjproject lists. ##
7419## ------------------------------------ ##
7420_ASBOX
7421 ) |
7422 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007423 ;;
7424esac
Benny Prijono0b462322008-03-12 22:44:24 +00007425echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7426echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007427if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007429else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007430 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7431fi
Benny Prijono0b462322008-03-12 22:44:24 +00007432echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7433echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007434
7435fi
7436if test $ac_cv_header_sys_ioctl_h = yes; then
7437 cat >>confdefs.h <<\_ACEOF
7438#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007439_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007440
7441fi
7442
7443
7444if test "${ac_cv_header_sys_select_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007445 echo "$as_me:$LINENO: checking for sys/select.h" >&5
7446echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007447if test "${ac_cv_header_sys_select_h+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449fi
Benny Prijono0b462322008-03-12 22:44:24 +00007450echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7451echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007452else
7453 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007454echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7455echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007456cat >conftest.$ac_ext <<_ACEOF
7457/* confdefs.h. */
7458_ACEOF
7459cat confdefs.h >>conftest.$ac_ext
7460cat >>conftest.$ac_ext <<_ACEOF
7461/* end confdefs.h. */
7462$ac_includes_default
7463#include <sys/select.h>
7464_ACEOF
7465rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7467 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007468 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007469 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007470 rm -f conftest.er1
7471 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007473 (exit $ac_status); } &&
7474 { ac_try='test -z "$ac_c_werror_flag"
7475 || test ! -s conftest.err'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; } &&
7481 { ac_try='test -s conftest.$ac_objext'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007487 ac_header_compiler=yes
7488else
7489 echo "$as_me: failed program was:" >&5
7490sed 's/^/| /' conftest.$ac_ext >&5
7491
Benny Prijono0b462322008-03-12 22:44:24 +00007492ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007493fi
Benny Prijono0b462322008-03-12 22:44:24 +00007494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007497
7498# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007499echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7500echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007501cat >conftest.$ac_ext <<_ACEOF
7502/* confdefs.h. */
7503_ACEOF
7504cat confdefs.h >>conftest.$ac_ext
7505cat >>conftest.$ac_ext <<_ACEOF
7506/* end confdefs.h. */
7507#include <sys/select.h>
7508_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007516 (exit $ac_status); } >/dev/null; then
7517 if test -s conftest.err; then
7518 ac_cpp_err=$ac_c_preproc_warn_flag
7519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7520 else
7521 ac_cpp_err=
7522 fi
7523else
7524 ac_cpp_err=yes
7525fi
7526if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007527 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007528else
7529 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007530sed 's/^/| /' conftest.$ac_ext >&5
7531
7532 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007533fi
7534rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7536echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007537
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007538# So? What about this header?
7539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7540 yes:no: )
7541 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7542echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7544echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7545 ac_header_preproc=yes
7546 ;;
7547 no:yes:* )
7548 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7549echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7551echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7553echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7555echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7557echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7558 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7559echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007560 (
7561 cat <<\_ASBOX
7562## ------------------------------------ ##
7563## Report this to the pjproject lists. ##
7564## ------------------------------------ ##
7565_ASBOX
7566 ) |
7567 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007568 ;;
7569esac
Benny Prijono0b462322008-03-12 22:44:24 +00007570echo "$as_me:$LINENO: checking for sys/select.h" >&5
7571echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007572if test "${ac_cv_header_sys_select_h+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007574else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007575 ac_cv_header_sys_select_h=$ac_header_preproc
7576fi
Benny Prijono0b462322008-03-12 22:44:24 +00007577echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7578echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007579
7580fi
7581if test $ac_cv_header_sys_select_h = yes; then
7582 cat >>confdefs.h <<\_ACEOF
7583#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007584_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007585
7586fi
7587
7588
7589if test "${ac_cv_header_sys_socket_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007590 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7591echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007592if test "${ac_cv_header_sys_socket_h+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594fi
Benny Prijono0b462322008-03-12 22:44:24 +00007595echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7596echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007597else
7598 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007599echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7600echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007601cat >conftest.$ac_ext <<_ACEOF
7602/* confdefs.h. */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h. */
7607$ac_includes_default
7608#include <sys/socket.h>
7609_ACEOF
7610rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7612 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007613 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007614 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007615 rm -f conftest.er1
7616 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag"
7620 || test ! -s conftest.err'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try='test -s conftest.$ac_objext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007632 ac_header_compiler=yes
7633else
7634 echo "$as_me: failed program was:" >&5
7635sed 's/^/| /' conftest.$ac_ext >&5
7636
Benny Prijono0b462322008-03-12 22:44:24 +00007637ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007638fi
Benny Prijono0b462322008-03-12 22:44:24 +00007639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7641echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007642
7643# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007644echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7645echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007646cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
7652#include <sys/socket.h>
7653_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007661 (exit $ac_status); } >/dev/null; then
7662 if test -s conftest.err; then
7663 ac_cpp_err=$ac_c_preproc_warn_flag
7664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7665 else
7666 ac_cpp_err=
7667 fi
7668else
7669 ac_cpp_err=yes
7670fi
7671if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007672 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007673else
7674 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007675sed 's/^/| /' conftest.$ac_ext >&5
7676
7677 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007678fi
7679rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7681echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007682
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007683# So? What about this header?
7684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7685 yes:no: )
7686 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7687echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7689echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7690 ac_header_preproc=yes
7691 ;;
7692 no:yes:* )
7693 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7694echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7696echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7698echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7700echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7702echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7704echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007705 (
7706 cat <<\_ASBOX
7707## ------------------------------------ ##
7708## Report this to the pjproject lists. ##
7709## ------------------------------------ ##
7710_ASBOX
7711 ) |
7712 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007713 ;;
7714esac
Benny Prijono0b462322008-03-12 22:44:24 +00007715echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7716echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007717if test "${ac_cv_header_sys_socket_h+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007719else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007720 ac_cv_header_sys_socket_h=$ac_header_preproc
7721fi
Benny Prijono0b462322008-03-12 22:44:24 +00007722echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7723echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007724
7725fi
7726if test $ac_cv_header_sys_socket_h = yes; then
7727 cat >>confdefs.h <<\_ACEOF
7728#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007729_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007730
7731fi
7732
7733
7734if test "${ac_cv_header_sys_time_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007735 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7736echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007737if test "${ac_cv_header_sys_time_h+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739fi
Benny Prijono0b462322008-03-12 22:44:24 +00007740echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7741echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007742else
7743 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007744echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7745echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007746cat >conftest.$ac_ext <<_ACEOF
7747/* confdefs.h. */
7748_ACEOF
7749cat confdefs.h >>conftest.$ac_ext
7750cat >>conftest.$ac_ext <<_ACEOF
7751/* end confdefs.h. */
7752$ac_includes_default
7753#include <sys/time.h>
7754_ACEOF
7755rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007758 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007759 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007760 rm -f conftest.er1
7761 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 (eval $ac_try) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest.$ac_objext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007777 ac_header_compiler=yes
7778else
7779 echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
Benny Prijono0b462322008-03-12 22:44:24 +00007782ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007783fi
Benny Prijono0b462322008-03-12 22:44:24 +00007784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7786echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007787
7788# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007789echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7790echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007791cat >conftest.$ac_ext <<_ACEOF
7792/* confdefs.h. */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h. */
7797#include <sys/time.h>
7798_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007806 (exit $ac_status); } >/dev/null; then
7807 if test -s conftest.err; then
7808 ac_cpp_err=$ac_c_preproc_warn_flag
7809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7810 else
7811 ac_cpp_err=
7812 fi
7813else
7814 ac_cpp_err=yes
7815fi
7816if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007817 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007818else
7819 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007820sed 's/^/| /' conftest.$ac_ext >&5
7821
7822 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007823fi
7824rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7826echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007827
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007828# So? What about this header?
7829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7830 yes:no: )
7831 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7832echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7833 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7834echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7835 ac_header_preproc=yes
7836 ;;
7837 no:yes:* )
7838 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7839echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7841echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7843echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7845echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7847echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7849echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007850 (
7851 cat <<\_ASBOX
7852## ------------------------------------ ##
7853## Report this to the pjproject lists. ##
7854## ------------------------------------ ##
7855_ASBOX
7856 ) |
7857 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007858 ;;
7859esac
Benny Prijono0b462322008-03-12 22:44:24 +00007860echo "$as_me:$LINENO: checking for sys/time.h" >&5
7861echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007862if test "${ac_cv_header_sys_time_h+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007864else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007865 ac_cv_header_sys_time_h=$ac_header_preproc
7866fi
Benny Prijono0b462322008-03-12 22:44:24 +00007867echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7868echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007869
7870fi
7871if test $ac_cv_header_sys_time_h = yes; then
7872 cat >>confdefs.h <<\_ACEOF
7873#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007874_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007875
7876fi
7877
7878
7879if test "${ac_cv_header_sys_timeb_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007880 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7881echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007882if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884fi
Benny Prijono0b462322008-03-12 22:44:24 +00007885echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7886echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007887else
7888 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007889echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7890echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007891cat >conftest.$ac_ext <<_ACEOF
7892/* confdefs.h. */
7893_ACEOF
7894cat confdefs.h >>conftest.$ac_ext
7895cat >>conftest.$ac_ext <<_ACEOF
7896/* end confdefs.h. */
7897$ac_includes_default
7898#include <sys/timeb.h>
7899_ACEOF
7900rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007903 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007904 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007905 rm -f conftest.er1
7906 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007922 ac_header_compiler=yes
7923else
7924 echo "$as_me: failed program was:" >&5
7925sed 's/^/| /' conftest.$ac_ext >&5
7926
Benny Prijono0b462322008-03-12 22:44:24 +00007927ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007928fi
Benny Prijono0b462322008-03-12 22:44:24 +00007929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7930echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7931echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007932
7933# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007934echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7935echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007936cat >conftest.$ac_ext <<_ACEOF
7937/* confdefs.h. */
7938_ACEOF
7939cat confdefs.h >>conftest.$ac_ext
7940cat >>conftest.$ac_ext <<_ACEOF
7941/* end confdefs.h. */
7942#include <sys/timeb.h>
7943_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007951 (exit $ac_status); } >/dev/null; then
7952 if test -s conftest.err; then
7953 ac_cpp_err=$ac_c_preproc_warn_flag
7954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7955 else
7956 ac_cpp_err=
7957 fi
7958else
7959 ac_cpp_err=yes
7960fi
7961if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007962 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007963else
7964 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007965sed 's/^/| /' conftest.$ac_ext >&5
7966
7967 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007968fi
7969rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007970echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7971echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007972
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007973# So? What about this header?
7974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7975 yes:no: )
7976 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7977echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7978 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7979echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7980 ac_header_preproc=yes
7981 ;;
7982 no:yes:* )
7983 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7984echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7986echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7988echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7990echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7992echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7994echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007995 (
7996 cat <<\_ASBOX
7997## ------------------------------------ ##
7998## Report this to the pjproject lists. ##
7999## ------------------------------------ ##
8000_ASBOX
8001 ) |
8002 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008003 ;;
8004esac
Benny Prijono0b462322008-03-12 22:44:24 +00008005echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8006echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008007if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008009else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008010 ac_cv_header_sys_timeb_h=$ac_header_preproc
8011fi
Benny Prijono0b462322008-03-12 22:44:24 +00008012echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8013echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008014
8015fi
8016if test $ac_cv_header_sys_timeb_h = yes; then
8017 cat >>confdefs.h <<\_ACEOF
8018#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008019_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008020
8021fi
8022
8023
8024if test "${ac_cv_header_sys_types_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008025 echo "$as_me:$LINENO: checking for sys/types.h" >&5
8026echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008027if test "${ac_cv_header_sys_types_h+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029fi
Benny Prijono0b462322008-03-12 22:44:24 +00008030echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8031echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008032else
8033 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008034echo "$as_me:$LINENO: checking sys/types.h usability" >&5
8035echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008036cat >conftest.$ac_ext <<_ACEOF
8037/* confdefs.h. */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h. */
8042$ac_includes_default
8043#include <sys/types.h>
8044_ACEOF
8045rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008048 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008049 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008050 rm -f conftest.er1
8051 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag"
8055 || test ! -s conftest.err'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest.$ac_objext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 (eval $ac_try) 2>&5
8064 ac_status=$?
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008067 ac_header_compiler=yes
8068else
8069 echo "$as_me: failed program was:" >&5
8070sed 's/^/| /' conftest.$ac_ext >&5
8071
Benny Prijono0b462322008-03-12 22:44:24 +00008072ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008073fi
Benny Prijono0b462322008-03-12 22:44:24 +00008074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8076echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008077
8078# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008079echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8080echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008081cat >conftest.$ac_ext <<_ACEOF
8082/* confdefs.h. */
8083_ACEOF
8084cat confdefs.h >>conftest.$ac_ext
8085cat >>conftest.$ac_ext <<_ACEOF
8086/* end confdefs.h. */
8087#include <sys/types.h>
8088_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008096 (exit $ac_status); } >/dev/null; then
8097 if test -s conftest.err; then
8098 ac_cpp_err=$ac_c_preproc_warn_flag
8099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8100 else
8101 ac_cpp_err=
8102 fi
8103else
8104 ac_cpp_err=yes
8105fi
8106if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008107 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008108else
8109 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008110sed 's/^/| /' conftest.$ac_ext >&5
8111
8112 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008113fi
8114rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8116echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008117
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008118# So? What about this header?
8119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8120 yes:no: )
8121 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8122echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8124echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8125 ac_header_preproc=yes
8126 ;;
8127 no:yes:* )
8128 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8129echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8131echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8133echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8135echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8137echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8138 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8139echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008140 (
8141 cat <<\_ASBOX
8142## ------------------------------------ ##
8143## Report this to the pjproject lists. ##
8144## ------------------------------------ ##
8145_ASBOX
8146 ) |
8147 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008148 ;;
8149esac
Benny Prijono0b462322008-03-12 22:44:24 +00008150echo "$as_me:$LINENO: checking for sys/types.h" >&5
8151echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008152if test "${ac_cv_header_sys_types_h+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008154else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008155 ac_cv_header_sys_types_h=$ac_header_preproc
8156fi
Benny Prijono0b462322008-03-12 22:44:24 +00008157echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8158echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008159
8160fi
8161if test $ac_cv_header_sys_types_h = yes; then
8162 cat >>confdefs.h <<\_ACEOF
8163#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008164_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008165
8166fi
8167
8168
8169if test "${ac_cv_header_time_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008170 echo "$as_me:$LINENO: checking for time.h" >&5
8171echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008172if test "${ac_cv_header_time_h+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174fi
Benny Prijono0b462322008-03-12 22:44:24 +00008175echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8176echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008177else
8178 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008179echo "$as_me:$LINENO: checking time.h usability" >&5
8180echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008181cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h. */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h. */
8187$ac_includes_default
8188#include <time.h>
8189_ACEOF
8190rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008193 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008194 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008195 rm -f conftest.er1
8196 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag"
8200 || test ! -s conftest.err'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; } &&
8206 { ac_try='test -s conftest.$ac_objext'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008212 ac_header_compiler=yes
8213else
8214 echo "$as_me: failed program was:" >&5
8215sed 's/^/| /' conftest.$ac_ext >&5
8216
Benny Prijono0b462322008-03-12 22:44:24 +00008217ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008218fi
Benny Prijono0b462322008-03-12 22:44:24 +00008219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8220echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8221echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008222
8223# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008224echo "$as_me:$LINENO: checking time.h presence" >&5
8225echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008226cat >conftest.$ac_ext <<_ACEOF
8227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
8232#include <time.h>
8233_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008241 (exit $ac_status); } >/dev/null; then
8242 if test -s conftest.err; then
8243 ac_cpp_err=$ac_c_preproc_warn_flag
8244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8245 else
8246 ac_cpp_err=
8247 fi
8248else
8249 ac_cpp_err=yes
8250fi
8251if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008252 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008253else
8254 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008255sed 's/^/| /' conftest.$ac_ext >&5
8256
8257 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008258fi
8259rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8261echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008262
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008263# So? What about this header?
8264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8265 yes:no: )
8266 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8267echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
8269echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
8270 ac_header_preproc=yes
8271 ;;
8272 no:yes:* )
8273 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
8274echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
8276echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
8278echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
8280echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
8282echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
8284echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008285 (
8286 cat <<\_ASBOX
8287## ------------------------------------ ##
8288## Report this to the pjproject lists. ##
8289## ------------------------------------ ##
8290_ASBOX
8291 ) |
8292 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008293 ;;
8294esac
Benny Prijono0b462322008-03-12 22:44:24 +00008295echo "$as_me:$LINENO: checking for time.h" >&5
8296echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008297if test "${ac_cv_header_time_h+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008299else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008300 ac_cv_header_time_h=$ac_header_preproc
8301fi
Benny Prijono0b462322008-03-12 22:44:24 +00008302echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8303echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008304
8305fi
8306if test $ac_cv_header_time_h = yes; then
8307 cat >>confdefs.h <<\_ACEOF
8308#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008309_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008310
8311fi
8312
8313
8314if test "${ac_cv_header_unistd_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008315 echo "$as_me:$LINENO: checking for unistd.h" >&5
8316echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008317if test "${ac_cv_header_unistd_h+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319fi
Benny Prijono0b462322008-03-12 22:44:24 +00008320echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8321echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008322else
8323 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008324echo "$as_me:$LINENO: checking unistd.h usability" >&5
8325echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008326cat >conftest.$ac_ext <<_ACEOF
8327/* confdefs.h. */
8328_ACEOF
8329cat confdefs.h >>conftest.$ac_ext
8330cat >>conftest.$ac_ext <<_ACEOF
8331/* end confdefs.h. */
8332$ac_includes_default
8333#include <unistd.h>
8334_ACEOF
8335rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8337 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008338 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008339 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008340 rm -f conftest.er1
8341 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008343 (exit $ac_status); } &&
8344 { ac_try='test -z "$ac_c_werror_flag"
8345 || test ! -s conftest.err'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; } &&
8351 { ac_try='test -s conftest.$ac_objext'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008357 ac_header_compiler=yes
8358else
8359 echo "$as_me: failed program was:" >&5
8360sed 's/^/| /' conftest.$ac_ext >&5
8361
Benny Prijono0b462322008-03-12 22:44:24 +00008362ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008363fi
Benny Prijono0b462322008-03-12 22:44:24 +00008364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8365echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8366echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008367
8368# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008369echo "$as_me:$LINENO: checking unistd.h presence" >&5
8370echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008371cat >conftest.$ac_ext <<_ACEOF
8372/* confdefs.h. */
8373_ACEOF
8374cat confdefs.h >>conftest.$ac_ext
8375cat >>conftest.$ac_ext <<_ACEOF
8376/* end confdefs.h. */
8377#include <unistd.h>
8378_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008381 ac_status=$?
8382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008386 (exit $ac_status); } >/dev/null; then
8387 if test -s conftest.err; then
8388 ac_cpp_err=$ac_c_preproc_warn_flag
8389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8390 else
8391 ac_cpp_err=
8392 fi
8393else
8394 ac_cpp_err=yes
8395fi
8396if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008397 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008398else
8399 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008400sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008403fi
8404rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008405echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8406echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008407
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008408# So? What about this header?
8409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8410 yes:no: )
8411 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8412echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8414echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8415 ac_header_preproc=yes
8416 ;;
8417 no:yes:* )
8418 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8419echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8421echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8423echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8425echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8427echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8429echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008430 (
8431 cat <<\_ASBOX
8432## ------------------------------------ ##
8433## Report this to the pjproject lists. ##
8434## ------------------------------------ ##
8435_ASBOX
8436 ) |
8437 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008438 ;;
8439esac
Benny Prijono0b462322008-03-12 22:44:24 +00008440echo "$as_me:$LINENO: checking for unistd.h" >&5
8441echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008442if test "${ac_cv_header_unistd_h+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008444else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008445 ac_cv_header_unistd_h=$ac_header_preproc
8446fi
Benny Prijono0b462322008-03-12 22:44:24 +00008447echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8448echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008449
8450fi
8451if test $ac_cv_header_unistd_h = yes; then
8452 cat >>confdefs.h <<\_ACEOF
8453#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008454_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008455
8456fi
8457
8458
8459if test "${ac_cv_header_mswsock_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008460 echo "$as_me:$LINENO: checking for mswsock.h" >&5
8461echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008462if test "${ac_cv_header_mswsock_h+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464fi
Benny Prijono0b462322008-03-12 22:44:24 +00008465echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8466echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008467else
8468 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008469echo "$as_me:$LINENO: checking mswsock.h usability" >&5
8470echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008471cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h. */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h. */
8477$ac_includes_default
8478#include <mswsock.h>
8479_ACEOF
8480rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8482 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008483 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008484 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008485 rm -f conftest.er1
8486 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest.$ac_objext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008502 ac_header_compiler=yes
8503else
8504 echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
Benny Prijono0b462322008-03-12 22:44:24 +00008507ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008508fi
Benny Prijono0b462322008-03-12 22:44:24 +00008509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8511echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008512
8513# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008514echo "$as_me:$LINENO: checking mswsock.h presence" >&5
8515echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008516cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h. */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h. */
8522#include <mswsock.h>
8523_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008531 (exit $ac_status); } >/dev/null; then
8532 if test -s conftest.err; then
8533 ac_cpp_err=$ac_c_preproc_warn_flag
8534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8535 else
8536 ac_cpp_err=
8537 fi
8538else
8539 ac_cpp_err=yes
8540fi
8541if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008542 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008543else
8544 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008545sed 's/^/| /' conftest.$ac_ext >&5
8546
8547 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008548fi
8549rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8551echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008552
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008553# So? What about this header?
8554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8555 yes:no: )
8556 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8557echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
8559echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
8560 ac_header_preproc=yes
8561 ;;
8562 no:yes:* )
8563 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
8564echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
8566echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
8568echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
8570echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
8572echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
8574echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008575 (
8576 cat <<\_ASBOX
8577## ------------------------------------ ##
8578## Report this to the pjproject lists. ##
8579## ------------------------------------ ##
8580_ASBOX
8581 ) |
8582 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008583 ;;
8584esac
Benny Prijono0b462322008-03-12 22:44:24 +00008585echo "$as_me:$LINENO: checking for mswsock.h" >&5
8586echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008587if test "${ac_cv_header_mswsock_h+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008589else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008590 ac_cv_header_mswsock_h=$ac_header_preproc
8591fi
Benny Prijono0b462322008-03-12 22:44:24 +00008592echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8593echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008594
8595fi
8596if test $ac_cv_header_mswsock_h = yes; then
8597 cat >>confdefs.h <<\_ACEOF
8598#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008599_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008600
8601fi
8602
8603
8604if test "${ac_cv_header_winsock_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008605 echo "$as_me:$LINENO: checking for winsock.h" >&5
8606echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008607if test "${ac_cv_header_winsock_h+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609fi
Benny Prijono0b462322008-03-12 22:44:24 +00008610echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8611echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008612else
8613 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008614echo "$as_me:$LINENO: checking winsock.h usability" >&5
8615echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008616cat >conftest.$ac_ext <<_ACEOF
8617/* confdefs.h. */
8618_ACEOF
8619cat confdefs.h >>conftest.$ac_ext
8620cat >>conftest.$ac_ext <<_ACEOF
8621/* end confdefs.h. */
8622$ac_includes_default
8623#include <winsock.h>
8624_ACEOF
8625rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8627 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008628 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008629 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008630 rm -f conftest.er1
8631 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag"
8635 || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest.$ac_objext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008647 ac_header_compiler=yes
8648else
8649 echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
Benny Prijono0b462322008-03-12 22:44:24 +00008652ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008653fi
Benny Prijono0b462322008-03-12 22:44:24 +00008654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8655echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8656echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008657
8658# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008659echo "$as_me:$LINENO: checking winsock.h presence" >&5
8660echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008661cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h. */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h. */
8667#include <winsock.h>
8668_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008669if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008671 ac_status=$?
8672 grep -v '^ *+' conftest.er1 >conftest.err
8673 rm -f conftest.er1
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008676 (exit $ac_status); } >/dev/null; then
8677 if test -s conftest.err; then
8678 ac_cpp_err=$ac_c_preproc_warn_flag
8679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8680 else
8681 ac_cpp_err=
8682 fi
8683else
8684 ac_cpp_err=yes
8685fi
8686if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008687 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008688else
8689 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008693fi
8694rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008695echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8696echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008697
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008698# So? What about this header?
8699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8700 yes:no: )
8701 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8702echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8704echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8705 ac_header_preproc=yes
8706 ;;
8707 no:yes:* )
8708 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8709echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8711echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8713echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8715echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8717echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8719echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008720 (
8721 cat <<\_ASBOX
8722## ------------------------------------ ##
8723## Report this to the pjproject lists. ##
8724## ------------------------------------ ##
8725_ASBOX
8726 ) |
8727 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008728 ;;
8729esac
Benny Prijono0b462322008-03-12 22:44:24 +00008730echo "$as_me:$LINENO: checking for winsock.h" >&5
8731echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008732if test "${ac_cv_header_winsock_h+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008734else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008735 ac_cv_header_winsock_h=$ac_header_preproc
8736fi
Benny Prijono0b462322008-03-12 22:44:24 +00008737echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8738echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008739
8740fi
8741if test $ac_cv_header_winsock_h = yes; then
8742 cat >>confdefs.h <<\_ACEOF
8743#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008744_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008745
8746fi
8747
8748
8749if test "${ac_cv_header_winsock2_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008750 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8751echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008752if test "${ac_cv_header_winsock2_h+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754fi
Benny Prijono0b462322008-03-12 22:44:24 +00008755echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8756echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008757else
8758 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008759echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8760echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008761cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h. */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h. */
8767$ac_includes_default
8768#include <winsock2.h>
8769_ACEOF
8770rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8772 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008773 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008774 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008775 rm -f conftest.er1
8776 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008778 (exit $ac_status); } &&
8779 { ac_try='test -z "$ac_c_werror_flag"
8780 || test ! -s conftest.err'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest.$ac_objext'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 (eval $ac_try) 2>&5
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008792 ac_header_compiler=yes
8793else
8794 echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
Benny Prijono0b462322008-03-12 22:44:24 +00008797ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008798fi
Benny Prijono0b462322008-03-12 22:44:24 +00008799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8800echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8801echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008802
8803# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008804echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8805echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008806cat >conftest.$ac_ext <<_ACEOF
8807/* confdefs.h. */
8808_ACEOF
8809cat confdefs.h >>conftest.$ac_ext
8810cat >>conftest.$ac_ext <<_ACEOF
8811/* end confdefs.h. */
8812#include <winsock2.h>
8813_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008821 (exit $ac_status); } >/dev/null; then
8822 if test -s conftest.err; then
8823 ac_cpp_err=$ac_c_preproc_warn_flag
8824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8825 else
8826 ac_cpp_err=
8827 fi
8828else
8829 ac_cpp_err=yes
8830fi
8831if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008832 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008833else
8834 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008835sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008838fi
8839rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008840echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8841echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008842
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008843# So? What about this header?
8844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8845 yes:no: )
8846 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8847echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8849echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8850 ac_header_preproc=yes
8851 ;;
8852 no:yes:* )
8853 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8854echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8856echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8857 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8858echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8860echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8861 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8862echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8863 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8864echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008865 (
8866 cat <<\_ASBOX
8867## ------------------------------------ ##
8868## Report this to the pjproject lists. ##
8869## ------------------------------------ ##
8870_ASBOX
8871 ) |
8872 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008873 ;;
8874esac
Benny Prijono0b462322008-03-12 22:44:24 +00008875echo "$as_me:$LINENO: checking for winsock2.h" >&5
8876echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008877if test "${ac_cv_header_winsock2_h+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008879else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008880 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008881fi
Benny Prijono0b462322008-03-12 22:44:24 +00008882echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8883echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008884
8885fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008886if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008887 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008888#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008889_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008890
8891fi
8892
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008893
Benny Prijono4e48b512007-05-16 13:41:00 +00008894if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008895 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8896echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008897if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899fi
Benny Prijono0b462322008-03-12 22:44:24 +00008900echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8901echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008902else
8903 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008904echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8905echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008906cat >conftest.$ac_ext <<_ACEOF
8907/* confdefs.h. */
8908_ACEOF
8909cat confdefs.h >>conftest.$ac_ext
8910cat >>conftest.$ac_ext <<_ACEOF
8911/* end confdefs.h. */
8912$ac_includes_default
8913#include <uuid/uuid.h>
8914_ACEOF
8915rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8917 (eval $ac_compile) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008923 (exit $ac_status); } &&
8924 { ac_try='test -z "$ac_c_werror_flag"
8925 || test ! -s conftest.err'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest.$ac_objext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 (eval $ac_try) 2>&5
8934 ac_status=$?
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008937 ac_header_compiler=yes
8938else
8939 echo "$as_me: failed program was:" >&5
8940sed 's/^/| /' conftest.$ac_ext >&5
8941
Benny Prijono0b462322008-03-12 22:44:24 +00008942ac_header_compiler=no
Benny Prijono4e48b512007-05-16 13:41:00 +00008943fi
Benny Prijono0b462322008-03-12 22:44:24 +00008944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8945echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008947
8948# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008949echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8950echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008951cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h. */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */
8957#include <uuid/uuid.h>
8958_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008966 (exit $ac_status); } >/dev/null; then
8967 if test -s conftest.err; then
8968 ac_cpp_err=$ac_c_preproc_warn_flag
8969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8970 else
8971 ac_cpp_err=
8972 fi
8973else
8974 ac_cpp_err=yes
8975fi
8976if test -z "$ac_cpp_err"; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008977 ac_header_preproc=yes
8978else
8979 echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 ac_header_preproc=no
8983fi
8984rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008985echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8986echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008987
8988# So? What about this header?
8989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8990 yes:no: )
8991 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8992echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8994echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8995 ac_header_preproc=yes
8996 ;;
8997 no:yes:* )
8998 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8999echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
9001echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
9003echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
9005echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
9007echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
9009echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009010 (
9011 cat <<\_ASBOX
9012## ------------------------------------ ##
9013## Report this to the pjproject lists. ##
9014## ------------------------------------ ##
9015_ASBOX
9016 ) |
9017 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono4e48b512007-05-16 13:41:00 +00009018 ;;
9019esac
Benny Prijono0b462322008-03-12 22:44:24 +00009020echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9021echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00009022if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024else
9025 ac_cv_header_uuid_uuid_h=$ac_header_preproc
9026fi
Benny Prijono0b462322008-03-12 22:44:24 +00009027echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9028echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00009029
9030fi
9031if test $ac_cv_header_uuid_uuid_h = yes; then
9032 ac_has_uuid_h=1
9033fi
9034
9035
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009036
Benny Prijono0b462322008-03-12 22:44:24 +00009037echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
9038echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009039cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009040#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009041_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009042
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009043
Benny Prijono0b462322008-03-12 22:44:24 +00009044echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
9045echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009046cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009047#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009048_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009049
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009050
Benny Prijono0b462322008-03-12 22:44:24 +00009051echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
9052echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009053cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009054#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009055_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009056
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009057
Benny Prijono0b462322008-03-12 22:44:24 +00009058echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
9059echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009060cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009061#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009062_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009063
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009064
Benny Prijono0b462322008-03-12 22:44:24 +00009065echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
9066echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009067cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009068#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009069_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009070
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009071
Benny Prijono0b462322008-03-12 22:44:24 +00009072echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
9073echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009074cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009075#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009076_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009077
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009078
Benny Prijono0b462322008-03-12 22:44:24 +00009079echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
9080echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009081cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009082/* confdefs.h. */
9083_ACEOF
9084cat confdefs.h >>conftest.$ac_ext
9085cat >>conftest.$ac_ext <<_ACEOF
9086/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009087#include <sys/types.h>
9088 #include <sys/socket.h>
9089 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009090int
9091main ()
9092{
9093inet_aton(0, 0);
9094 ;
9095 return 0;
9096}
9097_ACEOF
9098rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009101 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag"
9108 || test ! -s conftest.err'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 (eval $ac_try) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009120 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009121#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009122_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009123
Benny Prijono0b462322008-03-12 22:44:24 +00009124 echo "$as_me:$LINENO: result: yes" >&5
9125echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009126else
9127 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009128sed 's/^/| /' conftest.$ac_ext >&5
9129
Benny Prijono0b462322008-03-12 22:44:24 +00009130echo "$as_me:$LINENO: result: no" >&5
9131echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009132fi
Benny Prijono0b462322008-03-12 22:44:24 +00009133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009134
Benny Prijono0b462322008-03-12 22:44:24 +00009135echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
9136echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009137cat >conftest.$ac_ext <<_ACEOF
9138/* confdefs.h. */
9139_ACEOF
9140cat confdefs.h >>conftest.$ac_ext
9141cat >>conftest.$ac_ext <<_ACEOF
9142/* end confdefs.h. */
9143#include <sys/types.h>
9144 #include <sys/socket.h>
9145 #include <arpa/inet.h>
9146int
9147main ()
9148{
9149inet_pton(0, 0, 0);
9150 ;
9151 return 0;
9152}
9153_ACEOF
9154rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009176 cat >>confdefs.h <<\_ACEOF
9177#define PJ_SOCK_HAS_INET_PTON 1
9178_ACEOF
9179
Benny Prijono0b462322008-03-12 22:44:24 +00009180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009182else
9183 echo "$as_me: failed program was:" >&5
9184sed 's/^/| /' conftest.$ac_ext >&5
9185
Benny Prijono0b462322008-03-12 22:44:24 +00009186echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009188fi
Benny Prijono0b462322008-03-12 22:44:24 +00009189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009190
Benny Prijono0b462322008-03-12 22:44:24 +00009191echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9192echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009193cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
9199#include <sys/types.h>
9200 #include <sys/socket.h>
9201 #include <arpa/inet.h>
9202int
9203main ()
9204{
9205inet_ntop(0, 0, 0, 0);
9206 ;
9207 return 0;
9208}
9209_ACEOF
9210rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009218 (exit $ac_status); } &&
9219 { ac_try='test -z "$ac_c_werror_flag"
9220 || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009232 cat >>confdefs.h <<\_ACEOF
9233#define PJ_SOCK_HAS_INET_NTOP 1
9234_ACEOF
9235
Benny Prijono0b462322008-03-12 22:44:24 +00009236 echo "$as_me:$LINENO: result: yes" >&5
9237echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009238else
9239 echo "$as_me: failed program was:" >&5
9240sed 's/^/| /' conftest.$ac_ext >&5
9241
Benny Prijono0b462322008-03-12 22:44:24 +00009242echo "$as_me:$LINENO: result: no" >&5
9243echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009244fi
Benny Prijono0b462322008-03-12 22:44:24 +00009245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009246
Benny Prijono0b462322008-03-12 22:44:24 +00009247echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
9248echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009249cat >conftest.$ac_ext <<_ACEOF
9250/* confdefs.h. */
9251_ACEOF
9252cat confdefs.h >>conftest.$ac_ext
9253cat >>conftest.$ac_ext <<_ACEOF
9254/* end confdefs.h. */
9255#include <sys/types.h>
9256 #include <sys/socket.h>
9257 #include <netdb.h>
9258int
9259main ()
9260{
9261getaddrinfo(0, 0, 0, 0);
9262 ;
9263 return 0;
9264}
9265_ACEOF
9266rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest.$ac_objext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009288 cat >>confdefs.h <<\_ACEOF
9289#define PJ_SOCK_HAS_GETADDRINFO 1
9290_ACEOF
9291
Benny Prijono0b462322008-03-12 22:44:24 +00009292 echo "$as_me:$LINENO: result: yes" >&5
9293echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009294else
9295 echo "$as_me: failed program was:" >&5
9296sed 's/^/| /' conftest.$ac_ext >&5
9297
Benny Prijono0b462322008-03-12 22:44:24 +00009298echo "$as_me:$LINENO: result: no" >&5
9299echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009300fi
Benny Prijono0b462322008-03-12 22:44:24 +00009301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009302
Benny Prijono0b462322008-03-12 22:44:24 +00009303echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
9304echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009305cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009306/* confdefs.h. */
9307_ACEOF
9308cat confdefs.h >>conftest.$ac_ext
9309cat >>conftest.$ac_ext <<_ACEOF
9310/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009311#include <sys/types.h>
9312 #include <sys/socket.h>
9313 #include <netinet/in.h>
9314 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009315int
9316main ()
9317{
9318struct sockaddr_in a; a.sin_len=0;
9319 ;
9320 return 0;
9321}
9322_ACEOF
9323rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009326 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009327 grep -v '^ *+' conftest.er1 >conftest.err
9328 rm -f conftest.er1
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009331 (exit $ac_status); } &&
9332 { ac_try='test -z "$ac_c_werror_flag"
9333 || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest.$ac_objext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009345 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009346#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009347_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009348
Benny Prijono0b462322008-03-12 22:44:24 +00009349 echo "$as_me:$LINENO: result: yes" >&5
9350echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009351else
9352 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009353sed 's/^/| /' conftest.$ac_ext >&5
9354
Benny Prijono0b462322008-03-12 22:44:24 +00009355echo "$as_me:$LINENO: result: no" >&5
9356echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009357fi
Benny Prijono0b462322008-03-12 22:44:24 +00009358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009359
Benny Prijono0b462322008-03-12 22:44:24 +00009360echo "$as_me:$LINENO: checking if socklen_t is available" >&5
9361echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009362cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009363/* confdefs.h. */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00009368#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00009369int
9370main ()
9371{
9372socklen_t xxx = 0;
9373 ;
9374 return 0;
9375}
9376_ACEOF
9377rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00009380 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009381 grep -v '^ *+' conftest.er1 >conftest.err
9382 rm -f conftest.er1
9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_c_werror_flag"
9387 || test ! -s conftest.err'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 (eval $ac_try) 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; } &&
9393 { ac_try='test -s conftest.$ac_objext'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009399 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009400#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009401_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009402
Benny Prijono0b462322008-03-12 22:44:24 +00009403 echo "$as_me:$LINENO: result: yes" >&5
9404echo "${ECHO_T}yes" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009405else
9406 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009407sed 's/^/| /' conftest.$ac_ext >&5
9408
Benny Prijono0b462322008-03-12 22:44:24 +00009409echo "$as_me:$LINENO: result: no" >&5
9410echo "${ECHO_T}no" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009411fi
Benny Prijono0b462322008-03-12 22:44:24 +00009412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00009413
Benny Prijono0b462322008-03-12 22:44:24 +00009414echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
9415echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009416case $target in
9417 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009418 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009419#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009420_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009421
Benny Prijono0b462322008-03-12 22:44:24 +00009422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009424 ;;
9425 *)
9426 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009427/* confdefs.h. */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009432#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009433 #include <sys/socket.h>
9434 #include <netinet/in.h>
9435 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009436int
9437main ()
9438{
9439int i=SO_ERROR;
9440 ;
9441 return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009447 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009466 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009467#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009468_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009469
Benny Prijono0b462322008-03-12 22:44:24 +00009470 echo "$as_me:$LINENO: result: yes" >&5
9471echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009472else
9473 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009474sed 's/^/| /' conftest.$ac_ext >&5
9475
Benny Prijono0b462322008-03-12 22:44:24 +00009476echo "$as_me:$LINENO: result: no" >&5
9477echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009478fi
Benny Prijono0b462322008-03-12 22:44:24 +00009479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009480 ;;
9481esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009482
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009483
Benny Prijono0b462322008-03-12 22:44:24 +00009484echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
9485echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009486cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009487/* confdefs.h. */
9488_ACEOF
9489cat confdefs.h >>conftest.$ac_ext
9490cat >>conftest.$ac_ext <<_ACEOF
9491/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009492#include <pthread.h>
9493int
9494main ()
9495{
9496pthread_rwlock_t *x;
9497 ;
9498 return 0;
9499}
9500_ACEOF
9501rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9503 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009504 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009509 (exit $ac_status); } &&
9510 { ac_try='test -z "$ac_c_werror_flag"
9511 || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try='test -s conftest.$ac_objext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009523 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009524#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009525_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009526
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009527 ac_rwmutex="yes"
Benny Prijono0b462322008-03-12 22:44:24 +00009528 echo "$as_me:$LINENO: result: yes" >&5
9529echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009530else
9531 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009532sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009533
Benny Prijono0b462322008-03-12 22:44:24 +00009534cat >>confdefs.h <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009535#define PJ_EMULATE_RWMUTEX 1
9536_ACEOF
9537
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009538 ac_rwmutex="no"
Benny Prijono0b462322008-03-12 22:44:24 +00009539 echo "$as_me:$LINENO: result: no" >&5
9540echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009541fi
Benny Prijono0b462322008-03-12 22:44:24 +00009542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009543
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009544if test "$ac_rwmutex" = "no"; then
Benny Prijono0b462322008-03-12 22:44:24 +00009545 echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
9546echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009547 cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h. */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
9552/* end confdefs.h. */
9553#define _POSIX_READER_WRITER_LOCKS
9554 #include <pthread.h>
9555int
9556main ()
9557{
9558pthread_rwlock_t *x;
9559 ;
9560 return 0;
9561}
9562_ACEOF
9563rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag"
9573 || test ! -s conftest.err'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; } &&
9579 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009585 cat >>confdefs.h <<\_ACEOF
9586#define PJ_EMULATE_RWMUTEX 0
9587_ACEOF
9588
9589 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono0b462322008-03-12 22:44:24 +00009590 echo "$as_me:$LINENO: result: yes" >&5
9591echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009592else
9593 echo "$as_me: failed program was:" >&5
9594sed 's/^/| /' conftest.$ac_ext >&5
9595
Benny Prijono0b462322008-03-12 22:44:24 +00009596cat >>confdefs.h <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009597#define PJ_EMULATE_RWMUTEX 1
9598_ACEOF
9599
Benny Prijono0b462322008-03-12 22:44:24 +00009600 echo "$as_me:$LINENO: result: no" >&5
9601echo "${ECHO_T}no" >&6
9602fi
9603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009604fi
9605
Benny Prijono0b462322008-03-12 22:44:24 +00009606echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
9607echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009608cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614#include <pthread.h>
9615int
9616main ()
9617{
9618pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
9619 ;
9620 return 0;
9621}
9622_ACEOF
9623rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag"
9633 || test ! -s conftest.err'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest.$ac_objext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009645 cat >>confdefs.h <<\_ACEOF
9646#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
9647_ACEOF
9648
Benny Prijono0b462322008-03-12 22:44:24 +00009649 echo "$as_me:$LINENO: result: yes" >&5
9650echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009651else
9652 echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
Benny Prijono0b462322008-03-12 22:44:24 +00009655echo "$as_me:$LINENO: result: no" >&5
9656echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009657fi
Benny Prijono0b462322008-03-12 22:44:24 +00009658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009659
Benny Prijono0b462322008-03-12 22:44:24 +00009660echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
9661echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009662cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h. */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h. */
9668#include <pthread.h>
9669int
9670main ()
9671{
9672pthread_mutexattr_t attr;
9673 attr.recursive=1;
9674 ;
9675 return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag"
9688 || test ! -s conftest.err'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try='test -s conftest.$ac_objext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009700 cat >>confdefs.h <<\_ACEOF
9701#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
9702_ACEOF
9703
Benny Prijono0b462322008-03-12 22:44:24 +00009704 echo "$as_me:$LINENO: result: yes" >&5
9705echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009706else
9707 echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
Benny Prijono0b462322008-03-12 22:44:24 +00009710echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009712fi
Benny Prijono0b462322008-03-12 22:44:24 +00009713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009714
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009715
9716case $target in
9717 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00009718 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 +00009719 ;;
9720 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00009721 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"
9722 # UUID
9723 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9724 ac_os_objs="$ac_os_objs guid_uuid.o"
9725 else
9726 ac_os_objs="$ac_os_objs guid_simple.o"
9727 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009728 ;;
9729esac
9730
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009731
9732
9733
Benny Prijono4e48b512007-05-16 13:41:00 +00009734
Benny Prijono0b462322008-03-12 22:44:24 +00009735# Check whether --enable-sound or --disable-sound was given.
Benny Prijono1d971622006-09-10 22:27:40 +00009736if test "${enable_sound+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009737 enableval="$enable_sound"
9738 if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00009739 ac_pjmedia_snd=null
Benny Prijono0b462322008-03-12 22:44:24 +00009740 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
9741echo "${ECHO_T}Checking if sound is disabled... yes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00009742 fi
9743
Benny Prijono0b462322008-03-12 22:44:24 +00009744fi;
Benny Prijono1d971622006-09-10 22:27:40 +00009745
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009746
Benny Prijono27c98722007-04-09 21:28:15 +00009747if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009748 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9749echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009750if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752fi
Benny Prijono0b462322008-03-12 22:44:24 +00009753echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9754echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009755else
9756 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009757echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9758echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009759cat >conftest.$ac_ext <<_ACEOF
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h. */
9765$ac_includes_default
9766#include <sys/soundcard.h>
9767_ACEOF
9768rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9770 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009771 ac_status=$?
9772 grep -v '^ *+' conftest.er1 >conftest.err
9773 rm -f conftest.er1
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009776 (exit $ac_status); } &&
9777 { ac_try='test -z "$ac_c_werror_flag"
9778 || test ! -s conftest.err'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try='test -s conftest.$ac_objext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 (eval $ac_try) 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009790 ac_header_compiler=yes
9791else
9792 echo "$as_me: failed program was:" >&5
9793sed 's/^/| /' conftest.$ac_ext >&5
9794
Benny Prijono0b462322008-03-12 22:44:24 +00009795ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009796fi
Benny Prijono0b462322008-03-12 22:44:24 +00009797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9799echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009800
9801# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009802echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9803echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009804cat >conftest.$ac_ext <<_ACEOF
9805/* confdefs.h. */
9806_ACEOF
9807cat confdefs.h >>conftest.$ac_ext
9808cat >>conftest.$ac_ext <<_ACEOF
9809/* end confdefs.h. */
9810#include <sys/soundcard.h>
9811_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009819 (exit $ac_status); } >/dev/null; then
9820 if test -s conftest.err; then
9821 ac_cpp_err=$ac_c_preproc_warn_flag
9822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9823 else
9824 ac_cpp_err=
9825 fi
9826else
9827 ac_cpp_err=yes
9828fi
9829if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009830 ac_header_preproc=yes
9831else
9832 echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
9834
9835 ac_header_preproc=no
9836fi
9837rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9839echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009840
9841# So? What about this header?
9842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9843 yes:no: )
9844 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9845echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9847echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9848 ac_header_preproc=yes
9849 ;;
9850 no:yes:* )
9851 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9852echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9854echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9856echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9858echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9860echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9862echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009863 (
9864 cat <<\_ASBOX
9865## ------------------------------------ ##
9866## Report this to the pjproject lists. ##
9867## ------------------------------------ ##
9868_ASBOX
9869 ) |
9870 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009871 ;;
9872esac
Benny Prijono0b462322008-03-12 22:44:24 +00009873echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9874echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009875if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9879fi
Benny Prijono0b462322008-03-12 22:44:24 +00009880echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9881echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009882
9883fi
9884if test $ac_cv_header_sys_soundcard_h = yes; then
9885 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9886fi
9887
9888
9889if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009890 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9891echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009892if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894fi
Benny Prijono0b462322008-03-12 22:44:24 +00009895echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9896echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009897else
9898 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009899echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9900echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */
9907$ac_includes_default
9908#include <linux/soundcard.h>
9909_ACEOF
9910rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest.$ac_objext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009932 ac_header_compiler=yes
9933else
9934 echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
Benny Prijono0b462322008-03-12 22:44:24 +00009937ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009938fi
Benny Prijono0b462322008-03-12 22:44:24 +00009939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9941echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009942
9943# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009944echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9945echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009946cat >conftest.$ac_ext <<_ACEOF
9947/* confdefs.h. */
9948_ACEOF
9949cat confdefs.h >>conftest.$ac_ext
9950cat >>conftest.$ac_ext <<_ACEOF
9951/* end confdefs.h. */
9952#include <linux/soundcard.h>
9953_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009961 (exit $ac_status); } >/dev/null; then
9962 if test -s conftest.err; then
9963 ac_cpp_err=$ac_c_preproc_warn_flag
9964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9965 else
9966 ac_cpp_err=
9967 fi
9968else
9969 ac_cpp_err=yes
9970fi
9971if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009972 ac_header_preproc=yes
9973else
9974 echo "$as_me: failed program was:" >&5
9975sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 ac_header_preproc=no
9978fi
9979rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9981echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009982
9983# So? What about this header?
9984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9985 yes:no: )
9986 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9987echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
9989echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
9990 ac_header_preproc=yes
9991 ;;
9992 no:yes:* )
9993 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
9994echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
9996echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
9997 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
9998echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
9999 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10000echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
10002echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
10004echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010005 (
10006 cat <<\_ASBOX
10007## ------------------------------------ ##
10008## Report this to the pjproject lists. ##
10009## ------------------------------------ ##
10010_ASBOX
10011 ) |
10012 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +000010013 ;;
10014esac
Benny Prijono0b462322008-03-12 22:44:24 +000010015echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
10016echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010017if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019else
10020 ac_cv_header_linux_soundcard_h=$ac_header_preproc
10021fi
Benny Prijono0b462322008-03-12 22:44:24 +000010022echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
10023echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010024
10025fi
10026if test $ac_cv_header_linux_soundcard_h = yes; then
10027 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
10028fi
10029
10030
10031if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010032 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10033echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010034if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10036fi
Benny Prijono0b462322008-03-12 22:44:24 +000010037echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10038echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010039else
10040 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010041echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
10042echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010043cat >conftest.$ac_ext <<_ACEOF
10044/* confdefs.h. */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h. */
10049$ac_includes_default
10050#include <machine/soundcard.h>
10051_ACEOF
10052rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest.$ac_objext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +000010074 ac_header_compiler=yes
10075else
10076 echo "$as_me: failed program was:" >&5
10077sed 's/^/| /' conftest.$ac_ext >&5
10078
Benny Prijono0b462322008-03-12 22:44:24 +000010079ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +000010080fi
Benny Prijono0b462322008-03-12 22:44:24 +000010081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10083echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010084
10085# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010086echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
10087echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010088cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h. */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
10093/* end confdefs.h. */
10094#include <machine/soundcard.h>
10095_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010098 ac_status=$?
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010103 (exit $ac_status); } >/dev/null; then
10104 if test -s conftest.err; then
10105 ac_cpp_err=$ac_c_preproc_warn_flag
10106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10107 else
10108 ac_cpp_err=
10109 fi
10110else
10111 ac_cpp_err=yes
10112fi
10113if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010114 ac_header_preproc=yes
10115else
10116 echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_header_preproc=no
10120fi
10121rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10123echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010124
10125# So? What about this header?
10126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10127 yes:no: )
10128 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10129echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
10131echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
10132 ac_header_preproc=yes
10133 ;;
10134 no:yes:* )
10135 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
10136echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
10137 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
10138echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
10140echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10142echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
10144echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
10146echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010147 (
10148 cat <<\_ASBOX
10149## ------------------------------------ ##
10150## Report this to the pjproject lists. ##
10151## ------------------------------------ ##
10152_ASBOX
10153 ) |
10154 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +000010155 ;;
10156esac
Benny Prijono0b462322008-03-12 22:44:24 +000010157echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10158echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010159if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161else
10162 ac_cv_header_machine_soundcard_h=$ac_header_preproc
10163fi
Benny Prijono0b462322008-03-12 22:44:24 +000010164echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10165echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010166
10167fi
10168if test $ac_cv_header_machine_soundcard_h = yes; then
10169 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
10170fi
10171
10172
10173
Benny Prijono3e091672008-01-09 15:43:02 +000010174if test "x$ac_cv_c_bigendian" = "xyes"; then
10175 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
10176else
10177 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
10178fi
10179
Benny Prijono1d971622006-09-10 22:27:40 +000010180if test "$enable_sound" = "no"; then
10181 true;
10182else
10183 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +000010184 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000010185 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
10186 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010187 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000010188 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
10189 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono0b462322008-03-12 22:44:24 +000010190 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
10191echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010192 else
10193 ac_pjmedia_snd=pa_darwinos
Benny Prijono0b462322008-03-12 22:44:24 +000010194 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
10195echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010196 fi
Benny Prijonob466e232006-09-10 08:53:59 +000010197 ;;
10198 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010199 ac_pjmedia_snd=pa_win32
Benny Prijono0b462322008-03-12 22:44:24 +000010200 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
10201echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010202 ;;
10203 *rtems*)
10204 ac_pjmedia_snd=null
Benny Prijono0b462322008-03-12 22:44:24 +000010205 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
10206echo "${ECHO_T}Checking sound device backend... null sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010207 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010208 *)
Benny Prijono0b462322008-03-12 22:44:24 +000010209 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010210 if test "${ac_cv_header_alsa_version_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010211 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10212echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010213if test "${ac_cv_header_alsa_version_h+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010215fi
Benny Prijono0b462322008-03-12 22:44:24 +000010216echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10217echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010218else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010219 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010220echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
10221echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010222cat >conftest.$ac_ext <<_ACEOF
10223/* confdefs.h. */
10224_ACEOF
10225cat confdefs.h >>conftest.$ac_ext
10226cat >>conftest.$ac_ext <<_ACEOF
10227/* end confdefs.h. */
10228$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010229#include <alsa/version.h>
10230_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010231rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010234 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010235 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010236 rm -f conftest.er1
10237 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag"
10241 || test ! -s conftest.err'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest.$ac_objext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010253 ac_header_compiler=yes
10254else
10255 echo "$as_me: failed program was:" >&5
10256sed 's/^/| /' conftest.$ac_ext >&5
10257
Benny Prijono0b462322008-03-12 22:44:24 +000010258ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010259fi
Benny Prijono0b462322008-03-12 22:44:24 +000010260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10262echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010263
10264# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010265echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
10266echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010267cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h. */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h. */
10273#include <alsa/version.h>
10274_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010282 (exit $ac_status); } >/dev/null; then
10283 if test -s conftest.err; then
10284 ac_cpp_err=$ac_c_preproc_warn_flag
10285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10286 else
10287 ac_cpp_err=
10288 fi
10289else
10290 ac_cpp_err=yes
10291fi
10292if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010293 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010294else
10295 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010296sed 's/^/| /' conftest.$ac_ext >&5
10297
10298 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010299fi
10300rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10302echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010303
10304# So? What about this header?
10305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10306 yes:no: )
10307 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10308echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10309 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
10310echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
10311 ac_header_preproc=yes
10312 ;;
10313 no:yes:* )
10314 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
10315echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
10316 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
10317echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
10318 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
10319echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
10320 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
10321echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10322 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
10323echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
10324 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
10325echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010326 (
10327 cat <<\_ASBOX
10328## ------------------------------------ ##
10329## Report this to the pjproject lists. ##
10330## ------------------------------------ ##
10331_ASBOX
10332 ) |
10333 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010334 ;;
10335esac
Benny Prijono0b462322008-03-12 22:44:24 +000010336echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10337echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010338if test "${ac_cv_header_alsa_version_h+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340else
10341 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010342fi
Benny Prijono0b462322008-03-12 22:44:24 +000010343echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10344echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010345
10346fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010347if test $ac_cv_header_alsa_version_h = yes; then
10348 ac_pa_use_alsa=1
10349
10350 LIBS="$LIBS -lasound"
10351
10352else
10353 ac_pa_use_alsa=0
10354
10355fi
10356
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010357
Benny Prijono0b462322008-03-12 22:44:24 +000010358 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
10359echo "${ECHO_T}Checking sound device backend... unix" >&6
10360
10361 ac_pa_use_oss=1
10362
10363 # Check whether --enable-oss or --disable-oss was given.
10364if test "${enable_oss+set}" = set; then
10365 enableval="$enable_oss"
10366
10367 if test "$enable_oss" = "no"; then
10368 ac_pa_use_oss=0
10369 echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
10370echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6
10371 fi
10372
10373fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010374 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000010375 esac
10376fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010377
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010378
Benny Prijono0b462322008-03-12 22:44:24 +000010379# Check whether --enable-small-filter or --disable-small-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010380if test "${enable_small_filter+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010381 enableval="$enable_small_filter"
10382 if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010383 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010384 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
10385echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010386 fi
10387else
Benny Prijono0b462322008-03-12 22:44:24 +000010388 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
10389echo "${ECHO_T}Checking if small filter is disabled... no" >&6
10390fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010391
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010392
Benny Prijono0b462322008-03-12 22:44:24 +000010393# Check whether --enable-large-filter or --disable-large-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010394if test "${enable_large_filter+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010395 enableval="$enable_large_filter"
10396 if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010397 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010398 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
10399echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010400 fi
10401else
Benny Prijono0b462322008-03-12 22:44:24 +000010402 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
10403echo "${ECHO_T}Checking if large filter is disabled... no" >&6
10404fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010405
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010406
Benny Prijono0b462322008-03-12 22:44:24 +000010407# Check whether --enable-speex-aec or --disable-speex-aec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010408if test "${enable_speex_aec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010409 enableval="$enable_speex_aec"
10410 if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010411 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010412 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
10413echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010414 fi
10415else
Benny Prijono0b462322008-03-12 22:44:24 +000010416 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
10417echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
10418fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010419
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010420
Benny Prijono0b462322008-03-12 22:44:24 +000010421# Check whether --enable-g711-codec or --disable-g711-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010422if test "${enable_g711_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010423 enableval="$enable_g711_codec"
10424 if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010425 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010426 cat >>confdefs.h <<\_ACEOF
10427#define PJMEDIA_HAS_G711_CODEC 0
10428_ACEOF
10429
Benny Prijono0b462322008-03-12 22:44:24 +000010430 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
10431echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010432 fi
10433else
Benny Prijono0b462322008-03-12 22:44:24 +000010434 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
10435echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
10436fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010437
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010438
10439
Benny Prijono0b462322008-03-12 22:44:24 +000010440# Check whether --enable-l16-codec or --disable-l16-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010441if test "${enable_l16_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010442 enableval="$enable_l16_codec"
10443 if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010444 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010445 cat >>confdefs.h <<\_ACEOF
10446#define PJMEDIA_HAS_L16_CODEC 0
10447_ACEOF
10448
Benny Prijono0b462322008-03-12 22:44:24 +000010449 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
10450echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010451 fi
10452else
Benny Prijono0b462322008-03-12 22:44:24 +000010453 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
10454echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
10455fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010456
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010457
10458
Benny Prijono0b462322008-03-12 22:44:24 +000010459# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010460if test "${enable_gsm_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010461 enableval="$enable_gsm_codec"
10462 if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010463 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010464 cat >>confdefs.h <<\_ACEOF
10465#define PJMEDIA_HAS_GSM_CODEC 0
10466_ACEOF
10467
Benny Prijono0b462322008-03-12 22:44:24 +000010468 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
10469echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010470 fi
10471else
Benny Prijono0b462322008-03-12 22:44:24 +000010472 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
10473echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
10474fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010475
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010476
Benny Prijono0b462322008-03-12 22:44:24 +000010477# Check whether --enable-speex-codec or --disable-speex-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010478if test "${enable_speex_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010479 enableval="$enable_speex_codec"
10480 if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010481 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010482 cat >>confdefs.h <<\_ACEOF
10483#define PJMEDIA_HAS_SPEEX_CODEC 0
10484_ACEOF
10485
Benny Prijono0b462322008-03-12 22:44:24 +000010486 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
10487echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010488 fi
10489else
Benny Prijono0b462322008-03-12 22:44:24 +000010490 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
10491echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
10492fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010493
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010494
Benny Prijono0b462322008-03-12 22:44:24 +000010495# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010496if test "${enable_ilbc_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010497 enableval="$enable_ilbc_codec"
10498 if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010499 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010500 cat >>confdefs.h <<\_ACEOF
10501#define PJMEDIA_HAS_ILBC_CODEC 0
10502_ACEOF
10503
Benny Prijono0b462322008-03-12 22:44:24 +000010504 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
10505echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010506 fi
10507else
Benny Prijono0b462322008-03-12 22:44:24 +000010508 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
10509echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
10510fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010511
Benny Prijono0b462322008-03-12 22:44:24 +000010512# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
Benny Prijono550a1a62007-10-16 08:54:00 +000010513if test "${enable_libsamplerate+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010514 enableval="$enable_libsamplerate"
10515
10516echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
10517echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010518if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520else
10521 ac_check_lib_save_LIBS=$LIBS
10522LIBS="-lsamplerate $LIBS"
10523cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h. */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h. */
10529
Benny Prijono0b462322008-03-12 22:44:24 +000010530/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010531#ifdef __cplusplus
10532extern "C"
10533#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010534/* We use char because int might match the return type of a gcc2
10535 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010536char src_new ();
10537int
10538main ()
10539{
Benny Prijono0b462322008-03-12 22:44:24 +000010540src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000010541 ;
10542 return 0;
10543}
10544_ACEOF
10545rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10547 (eval $ac_link) 2>conftest.er1
Benny Prijono550a1a62007-10-16 08:54:00 +000010548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010553 (exit $ac_status); } &&
10554 { ac_try='test -z "$ac_c_werror_flag"
10555 || test ! -s conftest.err'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest$ac_exeext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
Benny Prijono550a1a62007-10-16 08:54:00 +000010567 ac_cv_lib_samplerate_src_new=yes
10568else
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
Benny Prijono0b462322008-03-12 22:44:24 +000010572ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000010573fi
Benny Prijono0b462322008-03-12 22:44:24 +000010574rm -f conftest.err conftest.$ac_objext \
Benny Prijono550a1a62007-10-16 08:54:00 +000010575 conftest$ac_exeext conftest.$ac_ext
10576LIBS=$ac_check_lib_save_LIBS
10577fi
Benny Prijono0b462322008-03-12 22:44:24 +000010578echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
10579echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010580if test $ac_cv_lib_samplerate_src_new = yes; then
10581 cat >>confdefs.h <<_ACEOF
10582#define HAVE_LIBSAMPLERATE 1
10583_ACEOF
10584
10585 LIBS="-lsamplerate $LIBS"
10586
10587fi
10588
10589else
Benny Prijono0b462322008-03-12 22:44:24 +000010590 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
10591echo "${ECHO_T}Skipping libsamplerate detection" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010592
Benny Prijono0b462322008-03-12 22:44:24 +000010593fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010594
10595
10596
10597
Benny Prijono0b462322008-03-12 22:44:24 +000010598# Check whether --enable-ssl or --disable-ssl was given.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010599if test "${enable_ssl+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010600 enableval="$enable_ssl"
10601
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010602 if test "$enable_ssl" = "no"; then
10603 ac_no_ssl=1
Benny Prijono0b462322008-03-12 22:44:24 +000010604 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
10605echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010606 fi
10607
10608else
10609
Benny Prijono0b462322008-03-12 22:44:24 +000010610 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
10611echo "${ECHO_T}checking for OpenSSL installations.." >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010612
10613
10614
10615 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010616 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10617echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010618if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620fi
Benny Prijono0b462322008-03-12 22:44:24 +000010621echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10622echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010623else
10624 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010625echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10626echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010627cat >conftest.$ac_ext <<_ACEOF
10628/* confdefs.h. */
10629_ACEOF
10630cat confdefs.h >>conftest.$ac_ext
10631cat >>conftest.$ac_ext <<_ACEOF
10632/* end confdefs.h. */
10633$ac_includes_default
10634#include <openssl/ssl.h>
10635_ACEOF
10636rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010644 (exit $ac_status); } &&
10645 { ac_try='test -z "$ac_c_werror_flag"
10646 || test ! -s conftest.err'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest.$ac_objext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010658 ac_header_compiler=yes
10659else
10660 echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
Benny Prijono0b462322008-03-12 22:44:24 +000010663ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010664fi
Benny Prijono0b462322008-03-12 22:44:24 +000010665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10667echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010668
10669# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010670echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10671echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h. */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h. */
10678#include <openssl/ssl.h>
10679_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010687 (exit $ac_status); } >/dev/null; then
10688 if test -s conftest.err; then
10689 ac_cpp_err=$ac_c_preproc_warn_flag
10690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10691 else
10692 ac_cpp_err=
10693 fi
10694else
10695 ac_cpp_err=yes
10696fi
10697if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010698 ac_header_preproc=yes
10699else
10700 echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
10703 ac_header_preproc=no
10704fi
10705rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10707echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010708
10709# So? What about this header?
10710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10711 yes:no: )
10712 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10713echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10715echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10716 ac_header_preproc=yes
10717 ;;
10718 no:yes:* )
10719 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10720echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10722echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10724echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10726echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10728echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10730echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010731 (
10732 cat <<\_ASBOX
10733## ------------------------------------ ##
10734## Report this to the pjproject lists. ##
10735## ------------------------------------ ##
10736_ASBOX
10737 ) |
10738 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010739 ;;
10740esac
Benny Prijono0b462322008-03-12 22:44:24 +000010741echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10742echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010743if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745else
10746 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10747fi
Benny Prijono0b462322008-03-12 22:44:24 +000010748echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10749echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010750
10751fi
10752if test $ac_cv_header_openssl_ssl_h = yes; then
10753 openssl_h_present=1
10754fi
10755
10756
Benny Prijono0b462322008-03-12 22:44:24 +000010757 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
10758echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010759if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762 ac_check_lib_save_LIBS=$LIBS
10763LIBS="-lssl $LIBS"
10764cat >conftest.$ac_ext <<_ACEOF
10765/* confdefs.h. */
10766_ACEOF
10767cat confdefs.h >>conftest.$ac_ext
10768cat >>conftest.$ac_ext <<_ACEOF
10769/* end confdefs.h. */
10770
Benny Prijono0b462322008-03-12 22:44:24 +000010771/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010772#ifdef __cplusplus
10773extern "C"
10774#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010775/* We use char because int might match the return type of a gcc2
10776 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010777char SSL_library_init ();
10778int
10779main ()
10780{
Benny Prijono0b462322008-03-12 22:44:24 +000010781SSL_library_init ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010782 ;
10783 return 0;
10784}
10785_ACEOF
10786rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10788 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag"
10796 || test ! -s conftest.err'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; } &&
10802 { ac_try='test -s conftest$ac_exeext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010808 ac_cv_lib_ssl_SSL_library_init=yes
10809else
10810 echo "$as_me: failed program was:" >&5
10811sed 's/^/| /' conftest.$ac_ext >&5
10812
Benny Prijono0b462322008-03-12 22:44:24 +000010813ac_cv_lib_ssl_SSL_library_init=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010814fi
Benny Prijono0b462322008-03-12 22:44:24 +000010815rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010816 conftest$ac_exeext conftest.$ac_ext
10817LIBS=$ac_check_lib_save_LIBS
10818fi
Benny Prijono0b462322008-03-12 22:44:24 +000010819echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
10820echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010821if test $ac_cv_lib_ssl_SSL_library_init = yes; then
10822 libssl_present=1 && LIBS="$LIBS -lssl"
10823fi
10824
Benny Prijono0b462322008-03-12 22:44:24 +000010825 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
10826echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010827if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829else
10830 ac_check_lib_save_LIBS=$LIBS
10831LIBS="-lcrypto $LIBS"
10832cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
10838
Benny Prijono0b462322008-03-12 22:44:24 +000010839/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010840#ifdef __cplusplus
10841extern "C"
10842#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010843/* We use char because int might match the return type of a gcc2
10844 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010845char ERR_load_BIO_strings ();
10846int
10847main ()
10848{
Benny Prijono0b462322008-03-12 22:44:24 +000010849ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010850 ;
10851 return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag"
10864 || test ! -s conftest.err'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest$ac_exeext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010876 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
10877else
10878 echo "$as_me: failed program was:" >&5
10879sed 's/^/| /' conftest.$ac_ext >&5
10880
Benny Prijono0b462322008-03-12 22:44:24 +000010881ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010882fi
Benny Prijono0b462322008-03-12 22:44:24 +000010883rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010884 conftest$ac_exeext conftest.$ac_ext
10885LIBS=$ac_check_lib_save_LIBS
10886fi
Benny Prijono0b462322008-03-12 22:44:24 +000010887echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
10888echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010889if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
10890 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
10891fi
10892
10893 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 +000010894 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
10895echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010896 cat >>confdefs.h <<\_ACEOF
10897#define PJSIP_HAS_TLS_TRANSPORT 1
10898_ACEOF
10899
10900 else
Benny Prijono0b462322008-03-12 22:44:24 +000010901 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
10902echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010903 fi
10904
Benny Prijono0b462322008-03-12 22:44:24 +000010905fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010906
10907
10908
10909
Benny Prijono0b462322008-03-12 22:44:24 +000010910echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
10911echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010912case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010913 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010914#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010915_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010916
Benny Prijono0b462322008-03-12 22:44:24 +000010917 echo "$as_me:$LINENO: result: yes" >&5
10918echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010919 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010920 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010921#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010922_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010923
Benny Prijono0b462322008-03-12 22:44:24 +000010924 echo "$as_me:$LINENO: result: no (default)" >&5
10925echo "${ECHO_T}no (default)" >&6
10926 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
10927echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010928 ;;
10929esac
10930
Benny Prijono0b462322008-03-12 22:44:24 +000010931echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
10932echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010933case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010934 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010935#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010936_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010937
Benny Prijono0b462322008-03-12 22:44:24 +000010938 echo "$as_me:$LINENO: result: yes" >&5
10939echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010940 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010941 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010942#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010943_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010944
Benny Prijono0b462322008-03-12 22:44:24 +000010945 echo "$as_me:$LINENO: result: no (default)" >&5
10946echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010947 ;;
10948esac
10949
Benny Prijono0b462322008-03-12 22:44:24 +000010950echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
10951echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010952case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010953 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010954#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010955_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010956
Benny Prijono0b462322008-03-12 22:44:24 +000010957 echo "$as_me:$LINENO: result: yes" >&5
10958echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010959 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010960 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010961#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010962_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010963
Benny Prijono0b462322008-03-12 22:44:24 +000010964 echo "$as_me:$LINENO: result: no (default)" >&5
10965echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010966 ;;
10967esac
10968
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010969case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010970 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010971 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010972#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010973_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010974
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010975 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010976 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010977#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010978_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010979
Benny Prijono0b462322008-03-12 22:44:24 +000010980 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
10981echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010982 ;;
10983esac
10984
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010985case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010986 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010987 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010988#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010989_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010990
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010991 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010992 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010993#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010994_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010995
Benny Prijono0b462322008-03-12 22:44:24 +000010996 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
10997echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010998 ;;
10999esac
11000
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011001
11002
11003
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011004if test "$build" = "$host"; then
11005 ac_cross_compile=
11006else
Benny Prijono5b818b22006-09-17 22:58:51 +000011007 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011008fi
11009ac_linux_poll=select
11010
11011ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011012
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011013
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011014case $target in
11015 *rtems*)
11016 ac_main_obj=main_rtems.o
11017 ;;
11018 *)
11019 ac_main_obj=main.o
11020 ;;
11021esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011022
11023cat >confcache <<\_ACEOF
11024# This file is a shell script that caches the results of configure
11025# tests run on this system so they can be shared between configure
11026# scripts and configure runs, see configure's option --config-cache.
11027# It is not useful on other systems. If it contains results you don't
11028# want to keep, you may remove or edit it.
11029#
11030# config.status only pays attention to the cache file if you give it
11031# the --recheck option to rerun configure.
11032#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011033# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011034# loading this file, other *unset* `ac_cv_foo' will be assigned the
11035# following values.
11036
11037_ACEOF
11038
11039# The following way of writing the cache mishandles newlines in values,
11040# but we know of no workaround that is simple, portable, and efficient.
Benny Prijono0b462322008-03-12 22:44:24 +000011041# So, don't put newlines in cache variables' values.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011042# Ultrix sh set writes to stderr and can't be redirected directly,
11043# and sets the high bit in the cache file unless we assign to the vars.
Benny Prijono0b462322008-03-12 22:44:24 +000011044{
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011045 (set) 2>&1 |
Benny Prijono0b462322008-03-12 22:44:24 +000011046 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11047 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011048 # `set' does not quote correctly, so add quotes (double-quote
11049 # substitution turns \\\\ into \\, and sed turns \\ into \).
11050 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011051 "s/'/'\\\\''/g;
11052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijono0b462322008-03-12 22:44:24 +000011053 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011054 *)
11055 # `set' quotes correctly as required by POSIX, so do not add quotes.
Benny Prijono0b462322008-03-12 22:44:24 +000011056 sed -n \
11057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011058 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011059 esac;
11060} |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011061 sed '
11062 t clear
Benny Prijono0b462322008-03-12 22:44:24 +000011063 : clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11065 t end
Benny Prijono0b462322008-03-12 22:44:24 +000011066 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11067 : end' >>confcache
11068if diff $cache_file confcache >/dev/null 2>&1; then :; else
11069 if test -w $cache_file; then
11070 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011071 cat confcache >$cache_file
11072 else
Benny Prijono0b462322008-03-12 22:44:24 +000011073 echo "not updating unwritable cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011074 fi
11075fi
11076rm -f confcache
11077
11078test "x$prefix" = xNONE && prefix=$ac_default_prefix
11079# Let make expand exec_prefix.
11080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11081
Benny Prijono0b462322008-03-12 22:44:24 +000011082# VPATH may cause trouble with some makes, so we remove $(srcdir),
11083# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11084# trailing colons and then remove the whole line if VPATH becomes empty
11085# (actually we leave an empty line to preserve line numbers).
11086if test "x$srcdir" = x.; then
11087 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11088s/:*\$(srcdir):*/:/;
11089s/:*\${srcdir}:*/:/;
11090s/:*@srcdir@:*/:/;
11091s/^\([^=]*=[ ]*\):*/\1/;
11092s/:*$//;
11093s/^[^=]*=[ ]*$//;
11094}'
11095fi
11096
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011097DEFS=-DHAVE_CONFIG_H
11098
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011099ac_libobjs=
11100ac_ltlibobjs=
11101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11102 # 1. Remove the extension, and $U if already installed.
Benny Prijono0b462322008-03-12 22:44:24 +000011103 ac_i=`echo "$ac_i" |
11104 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11105 # 2. Add them.
11106 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11107 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011108done
11109LIBOBJS=$ac_libobjs
11110
11111LTLIBOBJS=$ac_ltlibobjs
11112
11113
11114
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011115: ${CONFIG_STATUS=./config.status}
11116ac_clean_files_save=$ac_clean_files
11117ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011118{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011119echo "$as_me: creating $CONFIG_STATUS" >&6;}
11120cat >$CONFIG_STATUS <<_ACEOF
11121#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011122# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011123# Run this file to recreate the current configuration.
11124# Compiler output produced by configure, useful for debugging
11125# configure, is in config.log if it exists.
11126
11127debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011128ac_cs_recheck=false
11129ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011130SHELL=\${CONFIG_SHELL-$SHELL}
11131_ACEOF
11132
11133cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011134## --------------------- ##
11135## M4sh Initialization. ##
11136## --------------------- ##
11137
Benny Prijono0b462322008-03-12 22:44:24 +000011138# Be Bourne compatible
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011139if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11140 emulate sh
11141 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011142 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11143 # is contrary to our usage. Disable this feature.
11144 alias -g '${1+"$@"}'='"$@"'
Benny Prijono0b462322008-03-12 22:44:24 +000011145elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11146 set -o posix
11147fi
11148DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonofdafd402008-01-23 14:34:46 +000011149
Benny Prijono0b462322008-03-12 22:44:24 +000011150# Support unset when possible.
11151if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11152 as_unset=unset
11153else
11154 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011155fi
11156
11157
Benny Prijono0b462322008-03-12 22:44:24 +000011158# Work around bugs in pre-3.0 UWIN ksh.
11159$as_unset ENV MAIL MAILPATH
11160PS1='$ '
11161PS2='> '
11162PS4='+ '
11163
11164# NLS nuisances.
11165for as_var in \
11166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11168 LC_TELEPHONE LC_TIME
11169do
11170 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11171 eval $as_var=C; export $as_var
11172 else
11173 $as_unset $as_var
11174 fi
11175done
11176
11177# Required to use basename.
11178if expr a : '\(a\)' >/dev/null 2>&1; then
11179 as_expr=expr
11180else
11181 as_expr=false
11182fi
11183
11184if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11185 as_basename=basename
11186else
11187 as_basename=false
11188fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011189
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011190
Benny Prijono0b462322008-03-12 22:44:24 +000011191# Name of the executable.
11192as_me=`$as_basename "$0" ||
11193$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11194 X"$0" : 'X\(//\)$' \| \
11195 X"$0" : 'X\(/\)$' \| \
11196 . : '\(.\)' 2>/dev/null ||
11197echo X/"$0" |
11198 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11199 /^X\/\(\/\/\)$/{ s//\1/; q; }
11200 /^X\/\(\/\).*/{ s//\1/; q; }
11201 s/.*/./; q'`
11202
11203
11204# PATH needs CR, and LINENO needs CR and PATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011205# Avoid depending upon Character Ranges.
11206as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11208as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11209as_cr_digits='0123456789'
11210as_cr_alnum=$as_cr_Letters$as_cr_digits
11211
11212# The user is always right.
11213if test "${PATH_SEPARATOR+set}" != set; then
11214 echo "#! /bin/sh" >conf$$.sh
11215 echo "exit 0" >>conf$$.sh
11216 chmod +x conf$$.sh
11217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11218 PATH_SEPARATOR=';'
11219 else
11220 PATH_SEPARATOR=:
11221 fi
11222 rm -f conf$$.sh
11223fi
11224
11225
Benny Prijono0b462322008-03-12 22:44:24 +000011226 as_lineno_1=$LINENO
11227 as_lineno_2=$LINENO
11228 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11229 test "x$as_lineno_1" != "x$as_lineno_2" &&
11230 test "x$as_lineno_3" = "x$as_lineno_2" || {
11231 # Find who we are. Look in the path if we contain no path at all
11232 # relative or not.
11233 case $0 in
11234 *[\\/]* ) as_myself=$0 ;;
11235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011236for as_dir in $PATH
11237do
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11241done
11242
Benny Prijono0b462322008-03-12 22:44:24 +000011243 ;;
11244 esac
11245 # We did not find ourselves, most probably we were run as `sh COMMAND'
11246 # in which case we are not to be found in the path.
11247 if test "x$as_myself" = x; then
11248 as_myself=$0
Benny Prijonofdafd402008-01-23 14:34:46 +000011249 fi
Benny Prijono0b462322008-03-12 22:44:24 +000011250 if test ! -f "$as_myself"; then
11251 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11252echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11253 { (exit 1); exit 1; }; }
11254 fi
11255 case $CONFIG_SHELL in
11256 '')
11257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11259do
11260 IFS=$as_save_IFS
11261 test -z "$as_dir" && as_dir=.
11262 for as_base in sh bash ksh sh5; do
11263 case $as_dir in
11264 /*)
11265 if ("$as_dir/$as_base" -c '
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011266 as_lineno_1=$LINENO
11267 as_lineno_2=$LINENO
Benny Prijono0b462322008-03-12 22:44:24 +000011268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011269 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijono0b462322008-03-12 22:44:24 +000011270 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11271 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11272 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11273 CONFIG_SHELL=$as_dir/$as_base
11274 export CONFIG_SHELL
11275 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11276 fi;;
11277 esac
11278 done
11279done
11280;;
11281 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011282
11283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11284 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijono0b462322008-03-12 22:44:24 +000011285 # line-number line before each line; the second 'sed' does the real
11286 # work. The second script uses 'N' to pair each line-number line
11287 # with the numbered line, and appends trailing '-' during
11288 # substitution so that $LINENO is not a special case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijono0b462322008-03-12 22:44:24 +000011290 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11291 sed '=' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011292 sed '
11293 N
Benny Prijono0b462322008-03-12 22:44:24 +000011294 s,$,-,
11295 : loop
11296 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011297 t loop
Benny Prijono0b462322008-03-12 22:44:24 +000011298 s,-$,,
11299 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011300 ' >$as_me.lineno &&
Benny Prijono0b462322008-03-12 22:44:24 +000011301 chmod +x $as_me.lineno ||
11302 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11303echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011304 { (exit 1); exit 1; }; }
11305
11306 # Don't try to exec as it changes $[0], causing all sort of problems
11307 # (the dirname of $[0] is not the place where we might find the
Benny Prijono0b462322008-03-12 22:44:24 +000011308 # original and so on. Autoconf is especially sensible to this).
11309 . ./$as_me.lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011310 # Exit status is that of the last command.
11311 exit
11312}
11313
11314
Benny Prijono0b462322008-03-12 22:44:24 +000011315case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11316 *c*,-n*) ECHO_N= ECHO_C='
11317' ECHO_T=' ' ;;
11318 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11319 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011320esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011321
Benny Prijono0b462322008-03-12 22:44:24 +000011322if expr a : '\(a\)' >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011323 as_expr=expr
11324else
11325 as_expr=false
11326fi
11327
11328rm -f conf$$ conf$$.exe conf$$.file
11329echo >conf$$.file
11330if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijono0b462322008-03-12 22:44:24 +000011331 # We could just check for DJGPP; but this test a) works b) is more generic
11332 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11333 if test -f conf$$.exe; then
11334 # Don't use ln at all; we don't have any links
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011335 as_ln_s='cp -p'
Benny Prijono0b462322008-03-12 22:44:24 +000011336 else
11337 as_ln_s='ln -s'
11338 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011339elif ln conf$$.file conf$$ 2>/dev/null; then
11340 as_ln_s=ln
11341else
11342 as_ln_s='cp -p'
11343fi
Benny Prijono0b462322008-03-12 22:44:24 +000011344rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011345
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011346if mkdir -p . 2>/dev/null; then
11347 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000011348else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011349 test -d ./-p && rmdir ./-p
11350 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000011351fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011352
Benny Prijono0b462322008-03-12 22:44:24 +000011353as_executable_p="test -f"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011354
11355# Sed expression to map a string onto a valid CPP name.
11356as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11357
11358# Sed expression to map a string onto a valid variable name.
11359as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11360
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011361
Benny Prijono0b462322008-03-12 22:44:24 +000011362# IFS
11363# We need space, tab and new line, in precisely that order.
11364as_nl='
11365'
11366IFS=" $as_nl"
11367
11368# CDPATH.
11369$as_unset CDPATH
11370
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011371exec 6>&1
11372
Benny Prijono0b462322008-03-12 22:44:24 +000011373# Open the log real soon, to keep \$[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011374# report actual input values of CONFIG_FILES etc. instead of their
Benny Prijono0b462322008-03-12 22:44:24 +000011375# values after options handling. Logging --version etc. is OK.
11376exec 5>>config.log
11377{
11378 echo
11379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11380## Running $as_me. ##
11381_ASBOX
11382} >&5
11383cat >&5 <<_CSEOF
11384
Benny Prijono1c5f4e42008-02-07 13:11:39 +000011385This file was extended by pjproject $as_me 0.8, which was
Benny Prijono0b462322008-03-12 22:44:24 +000011386generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011387
11388 CONFIG_FILES = $CONFIG_FILES
11389 CONFIG_HEADERS = $CONFIG_HEADERS
11390 CONFIG_LINKS = $CONFIG_LINKS
11391 CONFIG_COMMANDS = $CONFIG_COMMANDS
11392 $ $0 $@
11393
Benny Prijono0b462322008-03-12 22:44:24 +000011394_CSEOF
11395echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11396echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011397_ACEOF
11398
11399# Files that config.status was made for.
Benny Prijono0b462322008-03-12 22:44:24 +000011400if test -n "$ac_config_files"; then
11401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11402fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011403
Benny Prijono0b462322008-03-12 22:44:24 +000011404if test -n "$ac_config_headers"; then
11405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11406fi
11407
11408if test -n "$ac_config_links"; then
11409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11410fi
11411
11412if test -n "$ac_config_commands"; then
11413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11414fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011415
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011416cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011417
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011418ac_cs_usage="\
11419\`$as_me' instantiates files from templates according to the
11420current configuration.
11421
11422Usage: $0 [OPTIONS] [FILE]...
11423
11424 -h, --help print this help, then exit
Benny Prijono0b462322008-03-12 22:44:24 +000011425 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011426 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011427 -d, --debug don't remove temporary files
11428 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011429 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011430 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011431 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011432 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011433
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011434Configuration files:
11435$config_files
11436
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011437Configuration headers:
11438$config_headers
11439
11440Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonofdafd402008-01-23 14:34:46 +000011441_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011442
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011443cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011444ac_cs_version="\\
Benny Prijono1c5f4e42008-02-07 13:11:39 +000011445pjproject config.status 0.8
Benny Prijono0b462322008-03-12 22:44:24 +000011446configured by $0, generated by GNU Autoconf 2.59,
11447 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011448
Benny Prijono0b462322008-03-12 22:44:24 +000011449Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011450This config.status script is free software; the Free Software Foundation
11451gives unlimited permission to copy, distribute and modify it."
Benny Prijono0b462322008-03-12 22:44:24 +000011452srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011453_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011454
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011455cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011456# If no file are specified by the user, then we need to provide default
11457# value. By we need to know if files were specified by the user.
11458ac_need_defaults=:
11459while test $# != 0
11460do
11461 case $1 in
11462 --*=*)
Benny Prijono0b462322008-03-12 22:44:24 +000011463 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11464 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011465 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011466 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011467 -*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011468 ac_option=$1
11469 ac_optarg=$2
11470 ac_shift=shift
11471 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011472 *) # This is not an option, so the user has probably given explicit
11473 # arguments.
11474 ac_option=$1
11475 ac_need_defaults=false;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011476 esac
11477
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011478 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011479 # Handling of the options.
Benny Prijono0b462322008-03-12 22:44:24 +000011480_ACEOF
11481cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011483 ac_cs_recheck=: ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011484 --version | --vers* | -V )
11485 echo "$ac_cs_version"; exit 0 ;;
11486 --he | --h)
11487 # Conflict between --help and --header
11488 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11489Try \`$0 --help' for more information." >&5
11490echo "$as_me: error: ambiguous option: $1
11491Try \`$0 --help' for more information." >&2;}
11492 { (exit 1); exit 1; }; };;
11493 --help | --hel | -h )
11494 echo "$ac_cs_usage"; exit 0 ;;
11495 --debug | --d* | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011496 debug=: ;;
11497 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011498 $ac_shift
11499 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011500 ac_need_defaults=false;;
11501 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011502 $ac_shift
11503 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011504 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11506 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11507 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011508
11509 # This is an error.
Benny Prijono0b462322008-03-12 22:44:24 +000011510 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11511Try \`$0 --help' for more information." >&5
11512echo "$as_me: error: unrecognized option: $1
11513Try \`$0 --help' for more information." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011514 { (exit 1); exit 1; }; } ;;
11515
Benny Prijono0b462322008-03-12 22:44:24 +000011516 *) ac_config_targets="$ac_config_targets $1" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011517
11518 esac
11519 shift
11520done
11521
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011522ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011523
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011524if $ac_cs_silent; then
11525 exec 6>/dev/null
11526 ac_configure_extra_args="$ac_configure_extra_args --silent"
11527fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011528
11529_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011530cat >>$CONFIG_STATUS <<_ACEOF
11531if \$ac_cs_recheck; then
Benny Prijono0b462322008-03-12 22:44:24 +000011532 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11533 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011534fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011535
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011536_ACEOF
11537
Benny Prijono0b462322008-03-12 22:44:24 +000011538
11539
11540
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011541
11542cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011543for ac_config_target in $ac_config_targets
11544do
Benny Prijono0b462322008-03-12 22:44:24 +000011545 case "$ac_config_target" in
11546 # Handling of arguments.
11547 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
11548 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
11549 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
11550 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
11551 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
11552 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
11553 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
11554 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
11555 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
11556 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
11557 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
11558 "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
11559 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011560 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011561echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11562 { (exit 1); exit 1; }; };;
11563 esac
11564done
11565
11566# If the user did not use the arguments to specify the items to instantiate,
11567# then the envvar interface is used. Set only those that are not.
11568# We use the long form for the default assignment because of an extremely
11569# bizarre bug on SunOS 4.1.3.
11570if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11573fi
11574
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011575# Have a temporary directory for convenience. Make it in the build tree
Benny Prijono0b462322008-03-12 22:44:24 +000011576# simply because there is no reason to put it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011577# creating and moving files from /tmp can sometimes cause problems.
Benny Prijono0b462322008-03-12 22:44:24 +000011578# Create a temporary directory, and hook for its removal unless debugging.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011579$debug ||
11580{
Benny Prijono0b462322008-03-12 22:44:24 +000011581 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011582 trap '{ (exit 1); exit 1; }' 1 2 13 15
11583}
Benny Prijono0b462322008-03-12 22:44:24 +000011584
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011585# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011586
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011587{
Benny Prijono0b462322008-03-12 22:44:24 +000011588 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011589 test -n "$tmp" && test -d "$tmp"
11590} ||
11591{
Benny Prijono0b462322008-03-12 22:44:24 +000011592 tmp=./confstat$$-$RANDOM
11593 (umask 077 && mkdir $tmp)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011594} ||
11595{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011596 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011597 { (exit 1); exit 1; }
11598}
11599
Benny Prijono0b462322008-03-12 22:44:24 +000011600_ACEOF
11601
11602cat >>$CONFIG_STATUS <<_ACEOF
11603
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011604#
Benny Prijono0b462322008-03-12 22:44:24 +000011605# CONFIG_FILES section.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011606#
11607
11608# No need to generate the scripts if there are no CONFIG_FILES.
11609# This happens for instance when ./config.status config.h
Benny Prijono0b462322008-03-12 22:44:24 +000011610if test -n "\$CONFIG_FILES"; then
11611 # Protect against being on the right side of a sed subst in config.status.
11612 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11613 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11614s,@SHELL@,$SHELL,;t t
11615s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11616s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11617s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11618s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11619s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11620s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11621s,@exec_prefix@,$exec_prefix,;t t
11622s,@prefix@,$prefix,;t t
11623s,@program_transform_name@,$program_transform_name,;t t
11624s,@bindir@,$bindir,;t t
11625s,@sbindir@,$sbindir,;t t
11626s,@libexecdir@,$libexecdir,;t t
11627s,@datadir@,$datadir,;t t
11628s,@sysconfdir@,$sysconfdir,;t t
11629s,@sharedstatedir@,$sharedstatedir,;t t
11630s,@localstatedir@,$localstatedir,;t t
11631s,@libdir@,$libdir,;t t
11632s,@includedir@,$includedir,;t t
11633s,@oldincludedir@,$oldincludedir,;t t
11634s,@infodir@,$infodir,;t t
11635s,@mandir@,$mandir,;t t
11636s,@build_alias@,$build_alias,;t t
11637s,@host_alias@,$host_alias,;t t
11638s,@target_alias@,$target_alias,;t t
11639s,@DEFS@,$DEFS,;t t
11640s,@ECHO_C@,$ECHO_C,;t t
11641s,@ECHO_N@,$ECHO_N,;t t
11642s,@ECHO_T@,$ECHO_T,;t t
11643s,@LIBS@,$LIBS,;t t
11644s,@build@,$build,;t t
11645s,@build_cpu@,$build_cpu,;t t
11646s,@build_vendor@,$build_vendor,;t t
11647s,@build_os@,$build_os,;t t
11648s,@host@,$host,;t t
11649s,@host_cpu@,$host_cpu,;t t
11650s,@host_vendor@,$host_vendor,;t t
11651s,@host_os@,$host_os,;t t
11652s,@target@,$target,;t t
11653s,@target_cpu@,$target_cpu,;t t
11654s,@target_vendor@,$target_vendor,;t t
11655s,@target_os@,$target_os,;t t
11656s,@CC@,$CC,;t t
11657s,@CFLAGS@,$CFLAGS,;t t
11658s,@LDFLAGS@,$LDFLAGS,;t t
11659s,@CPPFLAGS@,$CPPFLAGS,;t t
11660s,@ac_ct_CC@,$ac_ct_CC,;t t
11661s,@EXEEXT@,$EXEEXT,;t t
11662s,@OBJEXT@,$OBJEXT,;t t
11663s,@CXX@,$CXX,;t t
11664s,@CXXFLAGS@,$CXXFLAGS,;t t
11665s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11666s,@ac_pjdir@,$ac_pjdir,;t t
11667s,@CPP@,$CPP,;t t
11668s,@EGREP@,$EGREP,;t t
11669s,@ac_os_objs@,$ac_os_objs,;t t
11670s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
11671s,@ac_pa_cflags@,$ac_pa_cflags,;t t
11672s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
11673s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t
11674s,@ac_no_small_filter@,$ac_no_small_filter,;t t
11675s,@ac_no_large_filter@,$ac_no_large_filter,;t t
11676s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
11677s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
11678s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
11679s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
11680s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
11681s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
11682s,@ac_no_ssl@,$ac_no_ssl,;t t
11683s,@openssl_h_present@,$openssl_h_present,;t t
11684s,@libssl_present@,$libssl_present,;t t
11685s,@libcrypto_present@,$libcrypto_present,;t t
11686s,@ac_cross_compile@,$ac_cross_compile,;t t
11687s,@ac_linux_poll@,$ac_linux_poll,;t t
11688s,@ac_host@,$ac_host,;t t
11689s,@ac_main_obj@,$ac_main_obj,;t t
11690s,@LIBOBJS@,$LIBOBJS,;t t
11691s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11692CEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011693
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011694_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011695
Benny Prijono0b462322008-03-12 22:44:24 +000011696 cat >>$CONFIG_STATUS <<\_ACEOF
11697 # Split the substitutions into bite-sized pieces for seds with
11698 # small command number limits, like on Digital OSF/1 and HP-UX.
11699 ac_max_sed_lines=48
11700 ac_sed_frag=1 # Number of current file.
11701 ac_beg=1 # First line for current file.
11702 ac_end=$ac_max_sed_lines # Line after last line for current file.
11703 ac_more_lines=:
11704 ac_sed_cmds=
11705 while $ac_more_lines; do
11706 if test $ac_beg -gt 1; then
11707 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11708 else
11709 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11710 fi
11711 if test ! -s $tmp/subs.frag; then
11712 ac_more_lines=false
11713 else
11714 # The purpose of the label and of the branching condition is to
11715 # speed up the sed processing (if there are no `@' at all, there
11716 # is no need to browse any of the substitutions).
11717 # These are the two extra sed commands mentioned above.
11718 (echo ':t
11719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11720 if test -z "$ac_sed_cmds"; then
11721 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11722 else
11723 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11724 fi
11725 ac_sed_frag=`expr $ac_sed_frag + 1`
11726 ac_beg=$ac_end
11727 ac_end=`expr $ac_end + $ac_max_sed_lines`
11728 fi
11729 done
11730 if test -z "$ac_sed_cmds"; then
11731 ac_sed_cmds=cat
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011732 fi
11733fi # test -n "$CONFIG_FILES"
11734
Benny Prijono0b462322008-03-12 22:44:24 +000011735_ACEOF
11736cat >>$CONFIG_STATUS <<\_ACEOF
11737for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11739 case $ac_file in
11740 - | *:- | *:-:* ) # input from stdin
11741 cat >$tmp/stdin
11742 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11744 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11746 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011747 esac
11748
Benny Prijono0b462322008-03-12 22:44:24 +000011749 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11750 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011751$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11752 X"$ac_file" : 'X\(//\)[^/]' \| \
11753 X"$ac_file" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +000011754 X"$ac_file" : 'X\(/\)' \| \
11755 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011756echo X"$ac_file" |
Benny Prijono0b462322008-03-12 22:44:24 +000011757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11759 /^X\(\/\/\)$/{ s//\1/; q; }
11760 /^X\(\/\).*/{ s//\1/; q; }
11761 s/.*/./; q'`
11762 { if $as_mkdir_p; then
11763 mkdir -p "$ac_dir"
11764 else
11765 as_dir="$ac_dir"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011766 as_dirs=
Benny Prijono0b462322008-03-12 22:44:24 +000011767 while test ! -d "$as_dir"; do
11768 as_dirs="$as_dir $as_dirs"
11769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11771 X"$as_dir" : 'X\(//\)[^/]' \| \
11772 X"$as_dir" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +000011773 X"$as_dir" : 'X\(/\)' \| \
11774 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011775echo X"$as_dir" |
Benny Prijono0b462322008-03-12 22:44:24 +000011776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11778 /^X\(\/\/\)$/{ s//\1/; q; }
11779 /^X\(\/\).*/{ s//\1/; q; }
11780 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011781 done
Benny Prijono0b462322008-03-12 22:44:24 +000011782 test ! -n "$as_dirs" || mkdir $as_dirs
11783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11784echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011785 { (exit 1); exit 1; }; }; }
Benny Prijono0b462322008-03-12 22:44:24 +000011786
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011787 ac_builddir=.
11788
Benny Prijono0b462322008-03-12 22:44:24 +000011789if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0b462322008-03-12 22:44:24 +000011791 # A "../" for each directory in $ac_dir_suffix.
11792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11793else
11794 ac_dir_suffix= ac_top_builddir=
11795fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011796
11797case $srcdir in
Benny Prijono0b462322008-03-12 22:44:24 +000011798 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011799 ac_srcdir=.
Benny Prijono0b462322008-03-12 22:44:24 +000011800 if test -z "$ac_top_builddir"; then
11801 ac_top_srcdir=.
11802 else
11803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11804 fi ;;
11805 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011806 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0b462322008-03-12 22:44:24 +000011807 ac_top_srcdir=$srcdir ;;
11808 *) # Relative path.
11809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011811esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011812
Benny Prijono0b462322008-03-12 22:44:24 +000011813# Do not use `cd foo && pwd` to compute absolute paths, because
11814# the directories may not exist.
11815case `pwd` in
11816.) ac_abs_builddir="$ac_dir";;
11817*)
11818 case "$ac_dir" in
11819 .) ac_abs_builddir=`pwd`;;
11820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11821 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11822 esac;;
Benny Prijonofdafd402008-01-23 14:34:46 +000011823esac
Benny Prijono0b462322008-03-12 22:44:24 +000011824case $ac_abs_builddir in
11825.) ac_abs_top_builddir=${ac_top_builddir}.;;
11826*)
11827 case ${ac_top_builddir}. in
11828 .) ac_abs_top_builddir=$ac_abs_builddir;;
11829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11831 esac;;
11832esac
11833case $ac_abs_builddir in
11834.) ac_abs_srcdir=$ac_srcdir;;
11835*)
11836 case $ac_srcdir in
11837 .) ac_abs_srcdir=$ac_abs_builddir;;
11838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11840 esac;;
11841esac
11842case $ac_abs_builddir in
11843.) ac_abs_top_srcdir=$ac_top_srcdir;;
11844*)
11845 case $ac_top_srcdir in
11846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11849 esac;;
11850esac
Benny Prijonofdafd402008-01-23 14:34:46 +000011851
Benny Prijono0b462322008-03-12 22:44:24 +000011852
11853
11854 if test x"$ac_file" != x-; then
11855 { echo "$as_me:$LINENO: creating $ac_file" >&5
11856echo "$as_me: creating $ac_file" >&6;}
11857 rm -f "$ac_file"
11858 fi
11859 # Let's still pretend it is `configure' which instantiates (i.e., don't
11860 # use $as_me), people would be surprised to read:
11861 # /* config.h. Generated by config.status. */
11862 if test x"$ac_file" = x-; then
11863 configure_input=
11864 else
11865 configure_input="$ac_file. "
11866 fi
11867 configure_input=$configure_input"Generated from `echo $ac_file_in |
11868 sed 's,.*/,,'` by configure."
11869
11870 # First look for the input files in the build tree, otherwise in the
11871 # src tree.
11872 ac_file_inputs=`IFS=:
11873 for f in $ac_file_in; do
11874 case $f in
11875 -) echo $tmp/stdin ;;
11876 [\\/$]*)
11877 # Absolute (can't be DOS-style, as IFS=:)
11878 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11879echo "$as_me: error: cannot find input file: $f" >&2;}
11880 { (exit 1); exit 1; }; }
11881 echo "$f";;
11882 *) # Relative
11883 if test -f "$f"; then
11884 # Build tree
11885 echo "$f"
11886 elif test -f "$srcdir/$f"; then
11887 # Source tree
11888 echo "$srcdir/$f"
11889 else
11890 # /dev/null tree
11891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11892echo "$as_me: error: cannot find input file: $f" >&2;}
11893 { (exit 1); exit 1; }; }
11894 fi;;
11895 esac
11896 done` || { (exit 1); exit 1; }
11897_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011898cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011899 sed "$ac_vpsub
11900$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011901_ACEOF
11902cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011903:t
11904/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono0b462322008-03-12 22:44:24 +000011905s,@configure_input@,$configure_input,;t t
11906s,@srcdir@,$ac_srcdir,;t t
11907s,@abs_srcdir@,$ac_abs_srcdir,;t t
11908s,@top_srcdir@,$ac_top_srcdir,;t t
11909s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11910s,@builddir@,$ac_builddir,;t t
11911s,@abs_builddir@,$ac_abs_builddir,;t t
11912s,@top_builddir@,$ac_top_builddir,;t t
11913s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11914" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11915 rm -f $tmp/stdin
11916 if test x"$ac_file" != x-; then
11917 mv $tmp/out $ac_file
11918 else
11919 cat $tmp/out
11920 rm -f $tmp/out
11921 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011922
Benny Prijono0b462322008-03-12 22:44:24 +000011923done
11924_ACEOF
11925cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011926
Benny Prijono0b462322008-03-12 22:44:24 +000011927#
11928# CONFIG_HEADER section.
11929#
11930
11931# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11932# NAME is the cpp macro being defined and VALUE is the value it is being given.
11933#
11934# ac_d sets the value in "#define NAME VALUE" lines.
11935ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11936ac_dB='[ ].*$,\1#\2'
11937ac_dC=' '
11938ac_dD=',;t'
11939# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11940ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11941ac_uB='$,\1#\2define\3'
11942ac_uC=' '
11943ac_uD=',;t'
11944
11945for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11946 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011947 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +000011948 - | *:- | *:-:* ) # input from stdin
11949 cat >$tmp/stdin
11950 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11951 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11952 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11954 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011955 esac
Benny Prijono0b462322008-03-12 22:44:24 +000011956
11957 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11958echo "$as_me: creating $ac_file" >&6;}
11959
11960 # First look for the input files in the build tree, otherwise in the
11961 # src tree.
11962 ac_file_inputs=`IFS=:
11963 for f in $ac_file_in; do
11964 case $f in
11965 -) echo $tmp/stdin ;;
11966 [\\/$]*)
11967 # Absolute (can't be DOS-style, as IFS=:)
11968 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11969echo "$as_me: error: cannot find input file: $f" >&2;}
11970 { (exit 1); exit 1; }; }
11971 # Do quote $f, to prevent DOS paths from being IFS'd.
11972 echo "$f";;
11973 *) # Relative
11974 if test -f "$f"; then
11975 # Build tree
11976 echo "$f"
11977 elif test -f "$srcdir/$f"; then
11978 # Source tree
11979 echo "$srcdir/$f"
11980 else
11981 # /dev/null tree
11982 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11983echo "$as_me: error: cannot find input file: $f" >&2;}
11984 { (exit 1); exit 1; }; }
11985 fi;;
11986 esac
11987 done` || { (exit 1); exit 1; }
11988 # Remove the trailing spaces.
11989 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11990
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011991_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011992
Benny Prijono0b462322008-03-12 22:44:24 +000011993# Transform confdefs.h into two sed scripts, `conftest.defines' and
11994# `conftest.undefs', that substitutes the proper values into
11995# config.h.in to produce config.h. The first handles `#define'
11996# templates, and the second `#undef' templates.
11997# And first: Protect against being on the right side of a sed subst in
11998# config.status. Protect against being in an unquoted here document
11999# in config.status.
12000rm -f conftest.defines conftest.undefs
12001# Using a here document instead of a string reduces the quoting nightmare.
12002# Putting comments in sed scripts is not portable.
12003#
12004# `end' is used to avoid that the second main sed command (meant for
12005# 0-ary CPP macros) applies to n-ary macro definitions.
12006# See the Autoconf documentation for `clear'.
12007cat >confdef2sed.sed <<\_ACEOF
12008s/[\\&,]/\\&/g
12009s,[\\$`],\\&,g
12010t clear
12011: clear
12012s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12013t end
12014s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12015: end
12016_ACEOF
12017# If some macros were called several times there might be several times
12018# the same #defines, which is useless. Nevertheless, we may not want to
12019# sort them, since we want the *last* AC-DEFINE to be honored.
12020uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12021sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12022rm -f confdef2sed.sed
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012023
Benny Prijono0b462322008-03-12 22:44:24 +000012024# This sed command replaces #undef with comments. This is necessary, for
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012025# example, in the case of _POSIX_SOURCE, which is predefined and required
12026# on some systems where configure will not decide to define it.
Benny Prijono0b462322008-03-12 22:44:24 +000012027cat >>conftest.undefs <<\_ACEOF
12028s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Benny Prijonofdafd402008-01-23 14:34:46 +000012029_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000012030
12031# Break up conftest.defines because some shells have a limit on the size
12032# of here documents, and old seds have small limits too (100 cmds).
12033echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12034echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12035echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12036echo ' :' >>$CONFIG_STATUS
12037rm -f conftest.tail
12038while grep . conftest.defines >/dev/null
12039do
12040 # Write a limited-size here document to $tmp/defines.sed.
12041 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12042 # Speed up: don't consider the non `#define' lines.
12043 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12044 # Work around the forget-to-reset-the-flag bug.
12045 echo 't clr' >>$CONFIG_STATUS
12046 echo ': clr' >>$CONFIG_STATUS
12047 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012048 echo 'CEOF
Benny Prijono0b462322008-03-12 22:44:24 +000012049 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12050 rm -f $tmp/in
12051 mv $tmp/out $tmp/in
12052' >>$CONFIG_STATUS
12053 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012054 rm -f conftest.defines
12055 mv conftest.tail conftest.defines
12056done
Benny Prijono0b462322008-03-12 22:44:24 +000012057rm -f conftest.defines
12058echo ' fi # grep' >>$CONFIG_STATUS
12059echo >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012060
Benny Prijono0b462322008-03-12 22:44:24 +000012061# Break up conftest.undefs because some shells have a limit on the size
12062# of here documents, and old seds have small limits too (100 cmds).
12063echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12064rm -f conftest.tail
12065while grep . conftest.undefs >/dev/null
12066do
12067 # Write a limited-size here document to $tmp/undefs.sed.
12068 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12069 # Speed up: don't consider the non `#undef'
12070 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12071 # Work around the forget-to-reset-the-flag bug.
12072 echo 't clr' >>$CONFIG_STATUS
12073 echo ': clr' >>$CONFIG_STATUS
12074 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12075 echo 'CEOF
12076 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12077 rm -f $tmp/in
12078 mv $tmp/out $tmp/in
12079' >>$CONFIG_STATUS
12080 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12081 rm -f conftest.undefs
12082 mv conftest.tail conftest.undefs
12083done
12084rm -f conftest.undefs
12085
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012086cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000012087 # Let's still pretend it is `configure' which instantiates (i.e., don't
12088 # use $as_me), people would be surprised to read:
12089 # /* config.h. Generated by config.status. */
12090 if test x"$ac_file" = x-; then
12091 echo "/* Generated by configure. */" >$tmp/config.h
12092 else
12093 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12094 fi
12095 cat $tmp/in >>$tmp/config.h
12096 rm -f $tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012097 if test x"$ac_file" != x-; then
Benny Prijono0b462322008-03-12 22:44:24 +000012098 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012099 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012100echo "$as_me: $ac_file is unchanged" >&6;}
12101 else
Benny Prijono0b462322008-03-12 22:44:24 +000012102 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12103$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12104 X"$ac_file" : 'X\(//\)[^/]' \| \
12105 X"$ac_file" : 'X\(//\)$' \| \
12106 X"$ac_file" : 'X\(/\)' \| \
12107 . : '\(.\)' 2>/dev/null ||
12108echo X"$ac_file" |
12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12111 /^X\(\/\/\)$/{ s//\1/; q; }
12112 /^X\(\/\).*/{ s//\1/; q; }
12113 s/.*/./; q'`
12114 { if $as_mkdir_p; then
12115 mkdir -p "$ac_dir"
12116 else
12117 as_dir="$ac_dir"
12118 as_dirs=
12119 while test ! -d "$as_dir"; do
12120 as_dirs="$as_dir $as_dirs"
12121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12123 X"$as_dir" : 'X\(//\)[^/]' \| \
12124 X"$as_dir" : 'X\(//\)$' \| \
12125 X"$as_dir" : 'X\(/\)' \| \
12126 . : '\(.\)' 2>/dev/null ||
12127echo X"$as_dir" |
12128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12130 /^X\(\/\/\)$/{ s//\1/; q; }
12131 /^X\(\/\).*/{ s//\1/; q; }
12132 s/.*/./; q'`
12133 done
12134 test ! -n "$as_dirs" || mkdir $as_dirs
12135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12136echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12137 { (exit 1); exit 1; }; }; }
12138
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012139 rm -f $ac_file
Benny Prijono0b462322008-03-12 22:44:24 +000012140 mv $tmp/config.h $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012141 fi
12142 else
Benny Prijono0b462322008-03-12 22:44:24 +000012143 cat $tmp/config.h
12144 rm -f $tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012145 fi
Benny Prijono0b462322008-03-12 22:44:24 +000012146done
12147_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012148
Benny Prijono0b462322008-03-12 22:44:24 +000012149cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012150
12151{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012152_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012153chmod +x $CONFIG_STATUS
12154ac_clean_files=$ac_clean_files_save
12155
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012156
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012157# configure is writing to config.log, and then calls config.status.
12158# config.status does its own redirection, appending to config.log.
12159# Unfortunately, on DOS this fails, as config.log is still kept open
12160# by configure, so config.status won't be able to write to it; its
12161# output is simply discarded. So we exec the FD to /dev/null,
12162# effectively closing config.log, so it can be properly (re)opened and
12163# appended to by config.status. When coming back to configure, we
12164# need to make the FD available again.
12165if test "$no_create" != yes; then
12166 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012167 ac_config_status_args=
12168 test "$silent" = yes &&
12169 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012170 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012172 exec 5>>config.log
12173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12174 # would make configure fail if this is the last instruction.
12175 $ac_cs_success || { (exit 1); exit 1; }
12176fi
12177
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012178
Benny Prijonod9627842007-04-18 09:24:31 +000012179
Benny Prijono0b462322008-03-12 22:44:24 +000012180echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000012181
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012182Configurations 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 +000012183
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012184Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012185 - 'user.mak'
12186 - 'pjlib/include/pj/config_site.h'
12187
12188The next step now is to run 'make dep' and 'make'.
12189" >&5
12190echo "${ECHO_T}
12191
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012192Configurations 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 +000012193
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012194Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012195 - 'user.mak'
12196 - 'pjlib/include/pj/config_site.h'
12197
12198The next step now is to run 'make dep' and 'make'.
Benny Prijono0b462322008-03-12 22:44:24 +000012199" >&6
Benny Prijonod9627842007-04-18 09:24:31 +000012200